Description |
During testing we discovered that duplicate invoices are getting created. We should store the InvoiceOriginId on our side and make sure that we don't overwrite or create a new invoice for existing FOE invoices.
In other words, ignore duplicates based on the InvoiceOriginId field.
!pastedImage_d123281_0.png|height=170,width=295!
Steps to reproduce:
1. Open command prompt
2. Import invoices.json
3. Log in to i21
4. Go to Sales \| Activities \| Invoices
5. Open imported invoices
Expected result: Invoices from json file should be imported without error
Actual result: As expected
6. Return to CMD
7. Import the same invoices.json file
Expected result: Duplicate invoices (based on InvoiceOriginId) should not be imported
Actual result: Duplicate invoices (same InvoiceOriginId) is imported
|