Skip to content

Commit

Permalink
Merge pull request #320 from fasrc/ajk_note_zeros
Browse files Browse the repository at this point in the history
Add a PUP note when a zero charge billing record is removed
  • Loading branch information
aaronk authored Aug 19, 2024
2 parents 1725b85 + 3a00ab3 commit c4764b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coldfront/plugins/ifx/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ def generate_billing_records_for_allocation_user(self, year, month, user, organi
result.append(br)
else:
br.delete()
self.update_product_usage_processing(product_usage, resolved=True, message='Zero charge billing record discarded')
if self.verbosity > 0:
logger.info(f'Charge for {product_usage} was essentially zero and therefore discarded.')
return result
Expand Down

0 comments on commit c4764b1

Please sign in to comment.