Invoice: Site Number is deleted when date is changed on invoice

Issue No: AR-11671
Created 3/24/2020 12:29:50 PM
Type Bug
Priority Major
Status Closed
Resolution Fixed
Fixed Version 19.1
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-243273 - Site Number is deleted when date is changed on invoice|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-243273]     + *Issue:* +   For invoices where the 'Site No' field = 1 or 2, when un-posting the invoice and changing the date field, the 'Site No' field does not change   * This behavior is correct ** TB-DR 006093 (Site No 0001) ** TB-WL2004445 (Site No 0002)   For invoices where the 'Site No' field is greater than 2, when un-posting the invoice and changing the date field, the 'Site No' field is wiped.   * This behavior is not correct. See the attached video. ** TB-RMO010615 (site no 0005) ** TB-DR 006088 (site no 0003)       + *Steps to replicate:* +     1. Pull up invoice invoice with source = tank delivery and a site that is greater than 2.   2. Un-post if posted.   * If the invoice is linked to payment, delete the payment to unpost the invoice.   3. Change the invoice date.     *To Do:*   1. Correct programming so that when the date is changed for invoices with site numbers greater than 2, the site number is not removed.