
Hi
I want to validate that an invoice hasn't already been inserted into AX (I am using X++ code to insert a PO invoice).
PS Are the DB tables used, the same for NON PO Invoice as those for PO Invoice (when inserting an invoice header)?
*This post is locked for comments
I have the same question (0)Need more details on this question.
You should not be inserting a record into VendInvoiceJour on its own. You should be calling the proper invoicing classes. For example PurchFormLetter.
As far as checking for duplicates, you should be able to bounce the PurchId field off of the table but make sure you realize that you can post multiple invoices per PO.
Best.