One of our Customer would like to cancel and delete a Production Order against which certain consumption and output postings have been carried out. However, all the consumption and output entries have been reversed.
Is there any standard functionality to delete or a workaround?
The standard way to do this is to finish the production order and reverse the entries from it. You cannot simply delete a production order with recorded entries due to the information already captured.
I’ve done this before. Not in NAV way, but in SQL way,because in our case the Production Order Has been posted and Finsished and Affect the G/L warehourse.
It is a difficult job,depends on where you you have been processed. In my cas, there are 31 table in the background was affected. I can give you the list of tables:
G_L Entry]
G_L Register]
Vendor Ledger Entry]
Posted Approval Entry]
Value Entry]
Warehouse Entry]
Posted Whse_ Receipt Line]
Posted Whse_ Receipt Header]
Purch_ Inv_ Line]
Purch_ Inv_ Header]
Purch_ Rcpt_ Line]
Purch_ Rcpt_ Header]
Item Ledger Entry]
Capacity Ledger Entry]
Production Document Dimension]
Prod_ Order Routing Line]
Prod_ Order Line]
Prod_ Order Component]
Production Order]
Item Register]
Item Entry Relation]
G_L - Item Ledger Relation]
Handled IC Outbox Purch_ Hdr]
Handled IC Outbox Purch_ Line]
Handled IC Outbox Trans_]
Warehouse Activity Header]
Warehouse Activity Line]
Detailed Vendor Ledg_ Entry]
Item Application Entry]
G_L - Item Ledger Relation]
G_L Register]
Before you do this backup your database, to it in the test enivorment
Please tell us that you just didn’t go in thru SQL and delete the data from those tables. If you did then someone needs to haul you to the “woodshed” and then keep you away from NAV until you learn some basic accounting principals. This is not the NAV way. It is THE WAY.
I’m sorry to say Yes, I did that through SQL, 'cause I’m a DBA and softerware developper(Not NAV)!
I do have no idea of accounting. but the thing is at that moment We had a wrong Production order(Totally wrong) and entered to our system accidently(it should in test but someone put in to production) and posted finished and affected the other tables everywhere.
I’m happy with someone could tell me how to blow these bad info away from our database by using NAV way. But there was no ansower at that time.
If you can let me know how to do this in NAV WAY. I’m very happy 'cause it was really a difficult job and took me a lot time
It looks like I was dangrous:P I was before,'cause at that time I and my manage didn’t realize how serious it is, when we did delete the first record from DB, we knew that, but no way to reverse, we had to go on. Luckly we fininaly clear all the thing relate to that production order.