Sync - Site Details is Not Updated After Syncing Credit Memo and Invoice

Issue No: TM-2802
Created 3/14/2018 12:10:41 AM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 17.3
Description [https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket?ticket=HDTN-210338]   {color:#0f0f0f}A delive{color}{color:#0f0f0f}ry was made on 2/6/2018 and Synced on 2/8 and put the tank to 80%.{color}   Then on 3/2 the site got a credit memo and re-bill. This reverted the last delivery to 12/6 estimated % full. Which is why they showed up on the Generate Orders for the manager on 3/5.     *Steps* :   1. Prepare the first invoice to sync. Sync to customer site.   2. Prepare the 2nd batch to sync. It should include invoice and credit memo that will offset the first synced invoice. Make sure that the credit memo's invoice # comes first vs. on the invoice that was first synced and it should have the same date and customer site.   3. Open Synchronize Delivevery History and click Sync. Should be successfully synced to customer site.   4. Open the site, Site tab > check burn rate details.   5. Navigate to Delivery Details tab. It reverted the previous delivery details before the first invoice was synced.   *Issue* : Consumption site detail is not updated or detail is reverted when syncing a credit memo with previously synced invoice with the same date.   *Acceptance* : Should update and not revert the details of invoice when syncing an invoice and credit memo on the same date.