HDTN-329556 - Cannot post invoice due to contract insufficient gallons

Issue No: CT-10174
Created 2/2/2024 4:37:39 PM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 22.1, 22.1.Maint-040524
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-330901 - DB Copy Request -S wink Oil|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-330901]   *This issue relates to i21 Help Desk ticket:* [ HDTN-329556 - Cannot post invoice due to contract insufficient gallons|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-329556]   In company 02 - Invoice SI-33359 will not post due to insufficient gallons remaking on contract. However, the invoice is for 53.6 and the remaining contract is 56.1. Please see more below:   Issue: Values shown in the prompt is incorrect. Please check why 56.100000 is showing when the Available balance in the contract is fully consumed.     *Steps for Existing Contract*   1. Go to Invoice and search for SI-33359   2. Try to post the invoice and you'll get below prompt.     *Issue:* Incorrect message thrown   !pastedImage_4_5_2024__13_38_18_937.png|height=351,width=453!   !pastedImage_4_5_2024__13_37_50_648.png|height=569,width=1180!     3. Check the contract available balance.   !pastedImage_d254049_2.jpg|height=501,width=1180!   *Acceptance: I* f the available qty of the contract is fully consumed, correct values must be shown in the prompt: "_Available quantity for the contract and sequence is which is insufficient to SAVE/POST a quantity of therefore could not Save/Post this transaction."_     *Steps for New Contract*   1. Create a contract   2. Create TM Order (partial)   3. Process Energy Trac   4. Post the Invoice   5. Create a TM Order for the remaining   6. Process Energy Trac   7. Post the Invoice   8. Create TM Order - *Acceptance* : Completed Contracts will no longer be available for new orders to prevent the posting issue on invoice   9. Re-process file in Energy Trac - *Acceptance* : Also not allowed since contract is already completed