HDTN-332024 - Mobile Billing not processing contract overages correctly.

Issue No: MBIL-1684
Created 2/22/2024 9:24:46 AM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 20.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-332024 - Mobile Billing not processing contract overages correctly.|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-332024]     {color:#323232}Mobile Billing is applying total delivery gallons to contract instead of remaining gallons, and then also applying the overage to a separate line item.{color}     Contract had 75 remaining gallons when order was entered:   !https://helpdesk.irely.com/iRelyi21live/Export/CRM/fbc550db-dd55-4d98-affc-00807863108f.png!   Order dispatched for 300 gallons (system calculated from % left in tank)   !https://helpdesk.irely.com/iRelyi21live/Export/CRM/34f62aed-908e-4a12-bc3f-c8036e4b599b.png!   Driver pumped 310 gallons. When he selects the order in Mobile Billing, it comes up with two lines. The first line item shows the contract price and 290 gallons, which was what was previousloy on the meter. That number changes to 0 when the driver resets it. The second line shows 225 gallons which is the contract overage based on the dispatched order.   !https://helpdesk.irely.com/iRelyi21live/Export/CRM/0f423e41-1823-4732-a988-c1d4e9066e87.png|width=847!   Then the driver pumped 310 gallons and the first line (which should be the contract gallons of 75) changes to 310 and the second line (the contract overage) remains at 225 gallons.   !https://helpdesk.irely.com/iRelyi21live/Export/CRM/d4226e81-b238-469a-a60f-a3c3afd2ffd9.png|width=945!   The invoice is for 535 gallons. 310 at contract price which should only be 75, and 225 contract overage which should be 235.   !https://helpdesk.irely.com/iRelyi21live/Export/CRM/5e94717a-6dd1-4be5-994a-ef593bf2ae8b.png!