Hi dear community!
I'm facing this issue where I'm unable to display the pending invoice created through x++ until I click on "Recover invoice" on the prompt form that appears when I click on "Edit" on the pending invoice.
I have a .NET application that can generate a pending invoice in D365 by using a custom service.
I have a custom D365 service that will create the pending invoice by filling VendInvoiceInfoTable, VendInvoiceInfoLine tables and using PurchFormLetterInvoiceContract, PurchFormletterParmDataInvoice classes.
I can see the invoice listed in the "Vendor Pending Invoices" screen, but when I click on "Edit", a side form will pop up saying "One or more invoices are in use".
Please look at the following screenshot:
I can only access the invoice once, I click on "Recover invoices".
What am I missing here?
Are there records causing this issue that needs to be deleted after creating the pending invoice?
I'm not sure how this pop up form is doing the validation to consider this pending invoice as being in use.
Also I'm not sure what this Recover invoices button does actually.
I hope you can enlighten me what is causing this error and how does this pop form work (how it validate and what the recover invoices button do).
Any advice is appreciated !
Thanks in advance !