Energy Trac Import - Error due to unavailable contract amount

Issue No: IET-230
Created 1/8/2018 10:15:18 AM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 17.3
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-208182 - Contracts are not importing|http://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-208182]   *Steps:*   Integration is Energy Trac   1. Energy Trac > Import   2. Select Transaction for import and click process   *Issue:*   Import failing on BH & BD file for a driver. Console shows Internal Server Error.     !pastedImage_d89459_0.png!   SD File imported correctly. BH & BD file appear to import OK for other drivers.   Failure was because sales amount was more than available contract balance.   ExceptionMessage=Available quantity for the contract 000997 and sequence 1 is 689.300000, which is insufficient to Save/Post a quantity of 755.100000 therefore could not Save/Post this transaction. The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction.   On import, we should evaluate each invoice in the files individually, and not the file as a whole.   *Acceptance:*   Importing of BH/BD file should not have console error and should not create transaction where contract has insufficient available quantity