Origin Sync - Credit Memos not applying correctly to Delivery History

Issue No: TM-2704
Created 1/15/2018 8:35:57 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-207728 - Gallons on a Credit Memo added gallons to customer's site|http://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-207728]     *Steps* :   1. Prepare a credit memo to sync.   2. Check site values before sync. Credit memo date should alao.exist in clock reading.   3. Synchrinize Delivery menu, click Sync button. Credit memo should sync.   4. Open the site and check the delivery details values.   5. Delivery details should.not update. Credit Memo should be inserted to delivery history with negative qty.     *Issues:*   When syncing Credit Memos, the gallons is put into history as a positive delivery.     !pastedImage_d89972_0.png!   A credit would be returning or reversing a previous delivery, so it should be negative gallons.   It also appears that the degree days and other Site info were updated when it should not be. For credit memos we should only put the entry into Deliveries history. No other degree day information should be updated.   *Acceptance* : Should sync credit memo and update below:   - YTD Gals and Sales only.   - Insetrt Credit Memo to Delivery Histry   - Qty Delivered should be negative.