
In D365 Finance & Operations, free text invoices generate the correct XML, but project invoices do not. When printing/sending a project invoice, the generated XML incorrectly references the first invoice ever created instead of the current invoice being posted.
Expected:
The XML should show the current project invoice number and details.
Actual:
The XML pulls invoice identifiers from the first historical invoice, causing incorrect invoice references in the output (i.e. if we are in project invoice SI817-012345, and print/send this, the XML generated will be for invoice SI817-000001).
Notes:
Issue only occurs for project invoices; free text invoices work correctly.
Question for the community:
Has anyone seen this issue where project invoice XML binds to the first historical invoice instead of the current one?
Is there guidance on what needs to be done to fix this?