So I have Sales Invoice number 123, which I want to delete. I get the first message 'there will be a gap in the numbering series', I click Yes I want to proceed. Then the next message 'do you want to print' I click no I don't want to print. When it gives me back the form it gives me an error message "Sales Header does not exist. Type=Invoice No.=123", which is the number that I just deleted.
Anybody have a good tip on how to get rid of that message?
0
Comments
http://www.BiloBeauty.com
http://www.autismspeaks.org
It seems to be related to having the same numbering series for invoices and posted invoices. With the DELETE and COMMIT in place, and setting up a different numbering series for posted invoices also makes the error go away, but then again, it doesn't go into printing the empty invoice either.
Additional information: At some point in the OnDelete of the Sales Header table, it does DELETE and COMMIT, right before it tries to print the 'empty invoice'. Commenting out those two lines seems to fix the problem (i.e. not getting the error again), but surely that code is there for a reason.
RIS Plus, LLC
We never used the sames # series for order/invoice/credit and posted order/invoice/credit perhaps that's why we've never seen that message.
http://www.BiloBeauty.com
http://www.autismspeaks.org
I did the same too in commenting out the piece of code.
RIS Plus, LLC