RE: Enter a wrong document and then delete it - delete tracks everywhere in the system
deleting the posted documents does not solve the issue, although one could think it should. ;-) dynamics nav creates, when posting documents, many other data, so called ledger entries (value entries, item ledger entries G/L entries, etc.). these additional data is relevant for calculating the balance values and is not automatically deleted when removing the posted documents..
to reverse the complete activity (creating sales order, posting, therefore creating posted sales shipment doc. and posted sales invoice, creating of the ledger entries, ...) it's needed to create a sales credit memo, set the same sell-to customer no. as in the posted sales shipment, then click on "get posted document lines to reverse", select "posted shipments" from dropdown, select the posted shipment line(s) you want to reverse, ok, the lines are inserted to the credit memo, post it. after that, balance should be correct again.
other possibilities to reverse such activities is: open posted sales shipment document, click on Functions button above the sales lines, then select "undo shipment" to remove the shipment activities for that line. but ... only works, if the line is not invoiced.
follow
msdn.microsoft.com/.../hh168338(v=nav.70).aspx
msdn.microsoft.com/.../hh173655(v=nav.70).aspx