Skip to content

Commit

Permalink
removed zeros and ccd for quarterly reports
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWardle committed Sep 21, 2023
1 parent d82cc86 commit 5c7d068
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion billing-report-utility/summarize_charges.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,13 @@ def create_quarterly_excel(billing_group_totals, quarterly_output_file):
ws["A1"] = "Billing Group"
ws["B1"] = "Total Spend (CAD)"

# NOTE: in this case billing_group = account_coding because for quarterly reports GROUP_TYPE = account_coding
for billing_group, total in billing_group_totals.items():
row = (billing_group, total)

if billing_group == "000000000000000000000000":
row = ("CPF. Pay direct via Service Order. No JV needed.", total)
else:
row = (billing_group, total)
ws.append(row)

wb.save(f"{quarterly_output_file}")
Expand Down
2 changes: 1 addition & 1 deletion terraform/operations-account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ resource "aws_cloudwatch_event_target" "billing_reports_quarterly_target" {
},
{
"name" = "CARBON_COPY",
"value" = ""
"value" = "Rosemarie.Segura@gov.bc.ca"
},
{
"name" = "ATHENA_QUERY_OUTPUT_BUCKET",
Expand Down

0 comments on commit 5c7d068

Please sign in to comment.