From 3a00ab30b58a7958561e347c99ae76335beac234 Mon Sep 17 00:00:00 2001 From: Aaron Kitzmiller Date: Mon, 19 Aug 2024 19:07:23 -0400 Subject: [PATCH] Add a PUP note when a zero charge billing record is removed --- coldfront/plugins/ifx/calculator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/coldfront/plugins/ifx/calculator.py b/coldfront/plugins/ifx/calculator.py index d722f5097..7ada73842 100644 --- a/coldfront/plugins/ifx/calculator.py +++ b/coldfront/plugins/ifx/calculator.py @@ -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