Hello,
I am trying to write a query that will show blanket orders in the system to include Item, Quantity,Remaining Quantity and a few other things.
I have been able to show everything with the exception of the remaining quantity.
the Sales Order Table shows the original S.O. and the type as blanket, but when a item is sold a new sales order is created that has a column that references the original sales order. this new Sales Order creates a line in the Sales Order Line table for the Item and the quantity but I cannot figure out how to tie the original sales order to the one created when part of the blanket order is filled.
Here is the information of the blanket and a partial fill of the order creating a new Sales Order number.
SONumber Type Item BlanketSONumber
30846 BLNKET 69843
30847 RELEAS 69843 30846
If someone can get me from the original S.O. Number to where I can reference the new S.O. Number I should be good to go.
Thanks,
DWG23
I am trying to write a query that will show blanket orders in the system to include Item, Quantity,Remaining Quantity and a few other things.
I have been able to show everything with the exception of the remaining quantity.
the Sales Order Table shows the original S.O. and the type as blanket, but when a item is sold a new sales order is created that has a column that references the original sales order. this new Sales Order creates a line in the Sales Order Line table for the Item and the quantity but I cannot figure out how to tie the original sales order to the one created when part of the blanket order is filled.
Here is the information of the blanket and a partial fill of the order creating a new Sales Order number.
SONumber Type Item BlanketSONumber
30846 BLNKET 69843
30847 RELEAS 69843 30846
If someone can get me from the original S.O. Number to where I can reference the new S.O. Number I should be good to go.
Thanks,
DWG23