Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

18510 - Add extra step to set transactions to REFUNDED if billable = 'f' #1321

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

seeker25
Copy link
Collaborator

@seeker25 seeker25 commented Nov 8, 2023

Issue #:
bcgov/entity#18510

Description of changes:
Should fix: bcgov/entity#17772

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-pay license (Apache 2.0).

@seeker25 seeker25 requested review from Jxio and ochiu as code owners November 8, 2023 20:36
Copy link

sonarqubecloud bot commented Nov 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -76,6 +77,8 @@ def process_cfs_refund(self, invoice: InvoiceModel) -> str: # pylint:disable=un
2.1 Return REFUND_REQUESTED
"""
current_app.logger.info(f'Received JV refund for invoice {invoice.id}, {invoice.invoice_status_code}')
if not payment_account.billable:
Copy link
Collaborator Author

@seeker25 seeker25 Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only non-billable account we have is for EJV - for SBC_STAFF

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #1321 (f9cc83f) into main (79924ce) will increase coverage by 2.30%.
Report is 38 commits behind head on main.
The diff coverage is 93.35%.

@@            Coverage Diff             @@
##             main    #1321      +/-   ##
==========================================
+ Coverage   91.45%   93.76%   +2.30%     
==========================================
  Files         186      136      -50     
  Lines       11319     8702    -2617     
==========================================
- Hits        10352     8159    -2193     
+ Misses        967      543     -424     
Flag Coverage Δ
bcolapi ?
eventlistenerqueue ?
payapi 93.76% <93.35%> (+0.02%) ⬆️
paymentjobs ?
paymentreconciliationsqueue ?
reportapi ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pay-api/src/pay_api/models/__init__.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/eft_credit.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/eft_file.py 100.00% <100.00%> (ø)
...-api/src/pay_api/models/eft_process_status_code.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/eft_short_names.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/eft_transaction.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/invoice.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/payment.py 95.87% <ø> (ø)
pay-api/src/pay_api/models/payment_account.py 97.72% <100.00%> (+0.05%) ⬆️
pay-api/src/pay_api/models/statement.py 97.67% <100.00%> (+0.05%) ⬆️
... and 22 more

... and 56 files with indirect coverage changes

@seeker25 seeker25 merged commit d1a7fea into bcgov:main Nov 8, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PAY - EJV - REFUND_REQUESTED transactions that can be stuck
2 participants