XeroAPI / Xero-NetStandard

A wrapper of the Xero API in the .NetStandard 2.0 framework. Supports Accounting, Payroll AU/US, and Files
MIT License
126 stars 124 forks source link

CreateInvoicesAsync results are not coming back in the order they were sent #532

Closed oaktechnology closed 1 month ago

oaktechnology commented 1 month ago

SDK you're using (please complete the following information):

Describe the bug Before this update when sending a BATCH of invoices using CreateInvoicesAsync the returning result (list of invoices) were in the order that they were sent (matching the source list order).
It would now appear that the returning result is in date order which means I have no way of knowing which invoice matches what was sent. Is it possible to revert this back to how it was in previous versions as I am now unable to match invoice posting with the source data.

To Reproduce Steps to reproduce the behavior: Batch send invoices in a random date order and the posted results return in date order and not the original sent order.

Expected behavior Batch posted invoices return results in the order that they were sent.

If there was a way of knowing the GUID of an invoice before it was posted I could use this but this appears to only get created when the posting is done which by then the result order is lost.

github-actions[bot] commented 1 month ago

PETOSS-539

github-actions[bot] commented 1 month ago

Thanks for raising an issue, a ticket has been created to track your request

oaktechnology commented 1 month ago

Please close for now as I have something working I believe. Will reopen if still a problem,