Mobile Billing is still not handling contracts correctly

Issue No: TM-3368
Created 5/17/2022 11:55:52 PM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 20.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-275244 - UAP automation run on Webster & Garner then update TE to 20.1 newest version|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-275244]   *Issue:* Mobile Billing is still not handling contracts correctly on dispatched orders. I created an order in Tank Management and applied the contract in i21. I then dispatched it to Jesse Brown, which is the driver I am using for testing. I open the order in Mobile Billing and create an invoice. It applies the correct price from the contract, but it doesn't print the contract number on the invoice, it doesn't apply those gallons to the contract in i21, and when I deliver more gallons than what is remaining on the contract there is no error, it applies the contract price to the entire delivery. See attached invoices for the following examples:     1. Dale Loveland, contract #11234 has 500 remaining gallons at $2.149. I entered a delivery for 650 gallons. Mobile Billing created an invoice for 650 gallons at $2.149 and did not apply any of those gallons to the contract.     2. Normand Soulliere, contract #11237 has 500 gallons remaining at $1.699. I entered a delivery for 600 gallons. Mobile Billing created an invoice for 600 gallons at $1.699 and did not apply those gallons to the contract.     This is not an issue for deliveries that are entered using the customer search function. It seems like if an order is dispatched, Mobile Billing is only looking at the price from the tank management order and using that price, not looking at the actual contract. If a customer wants a fill, we don't know how many gallons that will be so we don't know if it will use the remaining contract gallons or not when we create the order.     I was able to successfully retransmit an invoice that didn't show up in i21, so that's good!     *Steps to replicate:*   *[http://jira.irelyserver.com/secure/Tests.jspa#/testCase/WEB-T147]*     *Acceptance:*   * Contract should be saving on intContractDetailId - TM * Contract number and price should be printed on invoice (PDF), and displaying correctly on Mobile Invoice and AR Invoice - MBIL