Cannot distribute ticket. Total Scheduled Quantity cannot be less than zero

Issue No: CT-2481
Created 8/20/2018 10:24:00 AM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 18.1, 18.3
Description Getting error in Live when trying to distribute ticket     I'm working with Satya and Emerson to make sure what quantity that was on the ticket is applied to the contract if the balance of the contract is more that what is being applied.   Example:   50 ton contract, two schedule loads of 25 each.   Ticket 1, 26 tons, scheduled will be reduced by 25 but 26 will be applied to the contract.   Leaving 1 load left to apply which is scheduled of 25 tons.   Second ticket 2 is 26 tons   Scheduled is reduced by 25, apply 24 to the contact and the other 2 tons will follow the normal auto apply of quantity to another contract or spot.     # Contract 10007 have two seq (1 & 2) # For Seq 1, already 4 Load's are scheduled (LS-1,LS-2,LS-3,LS-4) # Each Load has got qty of 25 Tons. # For the above mentioned Loads, we have the following scale tickets: ## *LS-1 - Ticket # 6 - Net Units 27.35 Ton* ## *LS-2 - Ticket # 10 - Net Units 26.45 Ton* ## *LS-3 - Ticket # 14 - Net Units 26.57 Ton* ## *LS-4 - Ticket # 15 - Net Units 26.45 Ton* # Hence, the delivered qty in the Load is as per the net units that has been delivered.   Upon checking the history of the Contract 10007, Seq 1 it looks like the Balance in the contract is 23.55. But for Ticket # 15, we need 26.45 Tons. Hence, while trying to distribute the ticket, it is throwing the error.     !pastedImage_d103472_0.png!