diff --git a/pay-api/src/pay_api/services/payment.py b/pay-api/src/pay_api/services/payment.py index 08548080d..5bcad3169 100644 --- a/pay-api/src/pay_api/services/payment.py +++ b/pay-api/src/pay_api/services/payment.py @@ -378,7 +378,8 @@ def generate_payment_report(content_type, report_name, results, template_name, **kwargs): # pylint: disable=too-many-locals """Prepare data and generate payment report by calling report api.""" labels = ['Transaction', 'Transaction Details', 'Folio Number', 'Initiated By', 'Date', 'Purchase Amount', - 'GST', 'Statutory Fee', 'BCOL Fee', 'Status', 'Corp Number', 'Invoice Reference Number'] + 'GST', 'Statutory Fee', 'BCOL Fee', 'Status', 'Corp Number', 'Transaction ID', + 'Invoice Reference Number'] # Use the status_code_description instead of status_code. invoice_status_codes = CodeService.find_code_values_by_type(Code.INVOICE_STATUS.value) @@ -479,6 +480,7 @@ def _prepare_csv_data(results): service_fee, invoice.get('status_code'), invoice.get('business_identifier'), + invoice.get('id'), invoice.get('invoice_number') ] cells.append(row_value)