[SUPP-5] Fix balance truncation in AUTH module #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix/supp-5-auto-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Automated Fix
Ticket: SUPP-5
Issue: Fix balance truncation in AUTH module
Root Cause Analysis
WS-AVAILABLE-BALANCE field is declared as PIC 9(9)V99 which can only hold values up to 9,999,999.99. The HOST system returns balances in PIC 9(11)V99 format, causing truncation on amounts over $10 million.
The AUTH.CBL program declares WS-AVAILABLE-BALANCE with PIC 9(9)V99, limiting it to 9,999,999.99. When receiving balance data from HOST (which uses PIC 9(11)V99), values above this limit get truncated. For example, a balance of 150,000,000.00 would be truncated to 0,000,000.00, causing false 'insufficient funds' responses. The fix is to align the field size with the HOST response format.
Changes Made
src/cobol/AUTH.CBL05 WS-AVAILABLE-BALANCE PIC 9(9)V99.
To:
05 WS-AVAILABLE-BALANCE PIC 9(11)V99.
Confidence
92%
This PR was automatically generated by JIRA AI Fixer
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.