HOW TO GENERATE PRODUCTION ORDER AS PER SALES ORDER NUMBER OF LINES (1 Viewer)

Kamayo Ako

Member
Local time
Today, 17:41
Joined
May 23, 2022
Messages
89
Have a good day to all

I have to Tables
- Sale Order Table
- Production Order Table

What is the best way to generate production order as per Sales Order line. As per image below shows we have 3 lines in Sales Order, when i click generate it will add to the Production Order Table.




1687240539945.png



thank you for continuing support

God Bless you All

Kamayo Ako
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 22:41
Joined
May 7, 2009
Messages
19,245
Don't you think you need Sales Order Number for reference of which SO is being
produced for a particular production order.

You can also use 1 Production Order for each corresponding SO and make the traceability simple.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 10:41
Joined
Feb 19, 2002
Messages
43,275
The code behind the Generate button should use DAO and .AddNew to add the production order record. Then using the new ProductionOrderID, the code should run an append query that copies the order details using the SalesOrderID as criteria and appends to the ProductionOrderDetails table using the new ProductionOrderID as the FK.
 

Kamayo Ako

Member
Local time
Today, 17:41
Joined
May 23, 2022
Messages
89
The code behind the Generate button should use DAO and .AddNew to add the production order record. Then using the new ProductionOrderID, the code should run an append query that copies the order details using the SalesOrderID as criteria and appends to the ProductionOrderDetails table using the new ProductionOrderID as the FK.
I will do that sir. Thank you so much.
 

Users who are viewing this thread

Top Bottom