MCP: Invoice posting with validation message has GL entries

Issue No: AR-13094
Created 3/25/2021 2:06:01 AM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 19.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-257244 - In-Transit amounts wrong on Inventory Valuation Summary|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-257244]   *Steps:*   1. Create and Save invoice, with Inventory Items. (don't post it yet) 2. Take note of the Invoice Number from the invoice created in step #1. 3. Download and open the script attached above: Posting Test.sql 3.1. Change the invoice number in line #3 of the script. 3.2. Run the script. 4. Create another invoice and save. 5. Go to General Ledger > Fiscal year > 2021 5.1. Close the Fiscal year of Sales for the month of March 2021 5.2. Save 6. Create another invoice, set the invoice date and post date to March 2021. 7. Go to Batch posting, post invoices created in Step #1, #4 and #6.   *Issue* : GL entries were created even if validation message is not empty.   !pastedImage_d156593_0.png|height=863,width=1056!   {color:#0f0f0f} *Expected* : If invoice postig throws a validation message, GL entries should not be created.{color}