标签:Oday rod tab hit value out rap lin dac
ProdQty qty = 100;
ItemId item = "ItemCode";
ProdTable prodtable;
InventTable inventTable;
InventDim inventDim;
;
inventTable = inventTable::find(item);
inventDim.initFromInventTable(inventTable);
prodtable.initValue();
prodtable.initFromInventTable(inventTable);
prodtable.ItemId = inventTable.ItemId;
prodtable.DlvDate = today();
prodtable.QtySched = qty;
prodtable.RemainInventPhysical = qty;
prodtable.BOMId = BOMVersion::findActive(prodtable.ItemId,
prodtable.BOMDate,
prodtable.QtySched,
inventDim).BOMId;
prodtable.RouteId = RouteVersion::findActive(prodtable.ItemId,
prodtable.BOMDate,
prodtable.QtySched,
inventDim).RouteId;
prodtable.initBOMVersion();
prodtable.initRouteVersion();
prodtable.type().insert();
创建工单Job
标签:Oday rod tab hit value out rap lin dac
原文地址:https://www.cnblogs.com/xtwkh1973/p/10990275.html