Skip to content

Commit

Permalink
Merge pull request bcgov#2390 from jig-patel/tfrs--2347
Browse files Browse the repository at this point in the history
fix for director not able to accept report
  • Loading branch information
AlexZorkin authored Jun 21, 2023
2 parents 953a90c + ace5273 commit 5a9ac2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/services/ComplianceReportService.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def create_director_transactions(compliance_report, creating_user):
# Code 26C is used to identify credits that must be refunded to the supplier.
# This occurs when our debit position decreases and we have already spent credits.
# In such cases, any excess credits must be returned to the supplier.
if is_supplemental and Decimal(lines['26C']) > 0:
if is_supplemental and Decimal(lines.get('26C', 0)) > 0:
print("*** DIRECTOR 26C Increase to Credits ***")
required_credit_transaction = Decimal(lines['26C'])

Expand Down

0 comments on commit 5a9ac2e

Please sign in to comment.