Skip to content

Commit

Permalink
17836 - pay api transaction id (#1278)
Browse files Browse the repository at this point in the history
* 17836_part2 - PAY-API Added Transaction ID to CSV export

Signed-off-by: AbrahamRostampoor <Mohammadebrahim.Rostampoor@gov.bc.ca>

* 17836_part2 - corrected syntax error

Signed-off-by: AbrahamRostampoor <Mohammadebrahim.Rostampoor@gov.bc.ca>

---------

Signed-off-by: AbrahamRostampoor <Mohammadebrahim.Rostampoor@gov.bc.ca>
  • Loading branch information
AbrahamRostampoor authored Oct 11, 2023
1 parent 9936f94 commit 0333fe1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pay-api/src/pay_api/services/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0333fe1

Please sign in to comment.