From 1d92e57766d74daf81a420ca6e1687004a35e9d1 Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Wed, 28 Feb 2024 12:49:26 -0800 Subject: [PATCH] Add in initializer for details --- pay-api/src/pay_api/services/receipt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pay-api/src/pay_api/services/receipt.py b/pay-api/src/pay_api/services/receipt.py index c2c575361..3cc5a108e 100644 --- a/pay-api/src/pay_api/services/receipt.py +++ b/pay-api/src/pay_api/services/receipt.py @@ -214,6 +214,7 @@ def get_nsf_receipt_details(payment_id): receipt_details['receiptNumber'] = nsf_invoice.receipts[0].receipt_number receipt_details['paymentMethodDescription'] = 'Credit Card' non_nsf_invoices = [inv for inv in invoices if inv.id != nsf_invoice.id] + nsf_invoice.details = [] for invoice in non_nsf_invoices: nsf_invoice.payment_line_items.extend(invoice.payment_line_items) nsf_invoice.total += invoice.total