Import from origin - inserts multiple line item even though there only 1 line on the invoice

Issue No: AR-14356
Created 2/24/2022 10:02:22 AM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 20.1
Description *.Steps:*   Follow this test case link for more detailed steps: [http://jira.irelyserver.com/secure/Tests.jspa#/testCase/UNO-T72]     *Issues:*     i1. - “ *the import create multiple line in 21 even though there only 1 line on the invoice in i21* . So the invoice total is incorrect”.   # _- looks like a bug in A/R import script.. found out what causes this is the referencing of entity location.. I think this is added to get the default taxgroup of the customer/entity ._ _, I think query should have a filter for the specific location to be used in invoice, not sure if there is or what field from the origin (ticket table) can be used for that , if there is none.. Im thinking we can just add checking for default location of the entity._     _[ *uspARImportInvoiceFromPTTICMST* ] - count of_ entity location multplies the items to be insert.   !pastedImage_d180461_0.png|height=153,width=406!     2. Ensure these Sis have a Source of “Tank Delivery”, so they are easier to identify later.   # _-aside from the SI's source.. the important data we need is the *tank/site id* , currently *importing does not get that info* from the ticket master table, so we also need to fix that._   _3. Tax details are not being imported._     Requirements.. Petro database (for this issue United Oil was used)   _Steps_   _- Import Invoice from Origin_     *Acceptance:*   Taxes should be included when importing invoices from the origin