Skip to content

Commit

Permalink
17836:PAY-API Added Invoice Reference Number to the csv export (#1277)
Browse files Browse the repository at this point in the history
Signed-off-by: AbrahamRostampoor <Mohammadebrahim.Rostampoor@gov.bc.ca>
  • Loading branch information
AbrahamRostampoor authored Oct 11, 2023
1 parent 1199d65 commit 9936f94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pay-api/src/pay_api/services/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ 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']
'GST', 'Statutory Fee', 'BCOL Fee', 'Status', 'Corp Number', '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)
Expand Down Expand Up @@ -478,7 +478,8 @@ def _prepare_csv_data(results):
total_fees - service_fee, # TODO
service_fee,
invoice.get('status_code'),
invoice.get('business_identifier')
invoice.get('business_identifier'),
invoice.get('invoice_number')
]
cells.append(row_value)
return cells
Expand Down

0 comments on commit 9936f94

Please sign in to comment.