Closed daniel-geiselhart closed 5 years ago
I am also encountering this issue.
This has become an issue for us too, especially pushing large invoices with 100's of lines it is critical the order remains the same.
It looks like it is because of the code in ObjectItems.cs
where it does the ordering on line 106, this is not a safe order, it will cause the order to be randomly jumbled.
I altered the code a bit so it keeps the correct order with a PR.
After double checking the fix, the reason this was happening was because the sorting mechanism was unstable. Using OrderBy
makes the sort stable.
Thanks for the fix.
Fixed with e4f237f5417ceb21a7fc3c4bbad937b46f8dc2bd Released as 2.0.1
Some items are getting reordered by InvoiceAdd.InvoiceLineAdd. Unable to see why this is happening