Troubleshooting - How do I void an Invoice?
Problem Description:
How do I void an Invoice? and How do I query for invoices that have been voided? I don't see any kind of indicator in the Invoice table.
Solution:
You can use SP_VOID just like you would use DELETE. It will void the invoice instead of deleting it.
For Example:
SP_VOID FROM Invoice WHERE TxnID = '1B03F-1513346399'
You can use below query to get a list of Voided Invoice.
select RefNumber, CustomerRefFullName, Memo from Invoice WHERE Memo like 'VOID:%'
If no InvoiceLines are returned you can resync your optimized InvoiceLine table by running: