Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

14847 - AP non-gov disbursement for BCA. #1122

Merged
merged 18 commits into from
Feb 25, 2023
Merged

14847 - AP non-gov disbursement for BCA. #1122

merged 18 commits into from
Feb 25, 2023

Conversation

seeker25
Copy link
Collaborator

Issue #:
bcgov/entity#14847

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).

Verified

This commit was signed with the committer’s verified signature.
rouault Even Rouault

Verified

This commit was signed with the committer’s verified signature.
rouault Even Rouault
@seeker25 seeker25 added the enhancement New feature or request label Feb 23, 2023
@seeker25
Copy link
Collaborator Author

seeker25 commented Feb 23, 2023

I've submitted a feedback file for BCA on TEST using oc tag for payment-jobs and payment-reconciliation (Low risk, not
pay-api changes). I'm waiting to see the results tomorrow before we move this into Ready for Review.

@codecov
Copy link

codecov bot commented Feb 23, 2023

Codecov Report

Merging #1122 (620e37e) into main (28ff797) will increase coverage by 0.02%.
The diff coverage is 91.70%.

@@            Coverage Diff             @@
##             main    #1122      +/-   ##
==========================================
+ Coverage   91.54%   91.57%   +0.02%     
==========================================
  Files         153      162       +9     
  Lines        9842    10868    +1026     
==========================================
+ Hits         9010     9952     +942     
- Misses        832      916      +84     
Flag Coverage Δ
payapi 93.88% <23.07%> (-0.03%) ⬇️
paymentjobs 79.93% <94.50%> (+0.97%) ⬆️
paymentreconciliationsqueue 91.64% <100.00%> (?)

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

Impacted Files Coverage Δ
pay-api/src/pay_api/models/payment.py 97.05% <ø> (+0.79%) ⬆️
pay-api/src/pay_api/services/payment.py 97.09% <ø> (+0.02%) ⬆️
pay-api/src/pay_api/services/bcol_service.py 84.44% <9.09%> (-3.80%) ⬇️
jobs/payment-jobs/tasks/common/cgi_ap.py 88.59% <88.46%> (-2.20%) ⬇️
jobs/payment-jobs/tasks/ap_task.py 96.03% <96.03%> (ø)
jobs/payment-jobs/tasks/common/dataclasses.py 100.00% <100.00%> (ø)
...ayment-jobs/tasks/ejv_partner_distribution_task.py 99.13% <100.00%> (ø)
pay-api/src/pay_api/resources/account.py 93.44% <100.00%> (ø)
pay-api/src/pay_api/utils/enums.py 100.00% <100.00%> (ø)
...iations/src/reconciliations/cgi_reconciliations.py 93.17% <100.00%> (ø)
... and 21 more

@seeker25 seeker25 temporarily deployed to dev February 24, 2023 20:52 — with GitHub Actions Inactive
@seeker25 seeker25 temporarily deployed to dev February 24, 2023 21:18 — with GitHub Actions Inactive
@sonarqubecloud
Copy link

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

@seeker25 seeker25 temporarily deployed to dev February 24, 2023 22:56 — with GitHub Actions Inactive
@seeker25 seeker25 marked this pull request as ready for review February 24, 2023 23:10
Copy link
Collaborator

@kialj876 kialj876 left a comment

Choose a reason for hiding this comment

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

Nice work 👍

return

# 250 MAX is all the transactions the feeder can take per batch.
for invoices in batched(total_invoices, 250):
Copy link
Collaborator

Choose a reason for hiding this comment

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

cool

ap_line = APLine.from_invoice_and_line_item(inv, line_item, line_number + 1, bca_distribution)
ap_content = f'{ap_content}{cls.get_ap_invoice_line(ap_line)}'
line_number += 1
control_total += line_number
Copy link
Collaborator

Choose a reason for hiding this comment

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

so control_total is 1 + the number of lineItems? Is that correct or should it be == number of lineItems?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

control_total gets incremented when an AP line is created, I'm just adding the number of payment_line_items to the control_total because we need a control line each time a payment line item is added.

@seeker25 seeker25 merged commit e57bed2 into bcgov:main Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants