CLONE - POS: Sales discounts are going to purchase discount GL when account is populated from company location

Issue No: AR-10384
Created 5/23/2019 7:08:51 AM
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-231046 - Sales discounts are going to purchase discount GL|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-231046]           v18.3.0517.892     + *Steps to reproduce:* +   1. Go to common info > company locations > GL accounts tab. Make sure that purchase discount is populated.   2. Login to POS and process a sale with discount. See comment.   3. Open the invoice post history from sales > invoices.   + *Actual result:* +   Sales discounts are going to purchase discount GL instead of sales discount.   4. Repeat the same process but this time remove the purchase discount of company location. See comment for result.