From 009dcd0860977271f7a5ebd997805deed4196f96 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Thu, 20 Feb 2020 16:08:57 +0000 Subject: [PATCH] Update the fetch_monthly_billing_for year to only update ft_billing for the notification types the service as permission to send to. --- app/dao/fact_billing_dao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dao/fact_billing_dao.py b/app/dao/fact_billing_dao.py index c9811967f..93dca2d61 100644 --- a/app/dao/fact_billing_dao.py +++ b/app/dao/fact_billing_dao.py @@ -245,7 +245,7 @@ def fetch_monthly_billing_for_year(service_id, year): if year_end_date >= today: yesterday = today - timedelta(days=1) for day in [yesterday, today]: - data = fetch_billing_data_for_day(process_day=day, service_id=service_id) + data = fetch_billing_data_for_day(process_day=day, service_id=service_id, check_permissions=True) for d in data: update_fact_billing(data=d, process_day=day)