static void createTransferOrder(Args _args)
{
inventTransferTable inventTransferTable;
inventTransferLine inventTransferLine;
numberSequenceReference numberSequenceReference;
numberSeq numberSeq;
;
inventTransferTable.clear();
inventTransferTable.initValue();
numberSequenceReference = InventParameters::numRefTransferId();
numberSeq = numberSeq::newGetNumFromCode(numberSequenceReference.numberSequenceTable().NumberSequence);
inventTransferTable.TransferId = numberSeq.num();
inventTransferTable.InventLocationIdFrom = "21";
inventTransferTable.modifiedField(fieldNum(InventTransferTable,InventLocationIdFrom));
inventTransferTable.InventLocationIdTo = "22";
inventTransferTable.modifiedField(fieldNum(InventTransferTable,InventLocationIdTo));
inventTransferTable.TransferStatus = InventTransferStatus::Created;
inventTransferTable.insert();
inventTransferLine.clear();
inventTransferLine.ItemId = "1234";
inventTransferLine.initFromInventTable(InventTable::find("1234"));
inventTransferLine.initFromInventTransferTable(inventTransferTable,NoYes::Yes);
inventTransferLine.QtyTransfer = 100;
inventTransferLine.QtyShipNow = 100;
inventTransferLine.QtyReceiveNow = 100;
inventTransferLine.insert();
}
{
inventTransferTable inventTransferTable;
inventTransferLine inventTransferLine;
numberSequenceReference numberSequenceReference;
numberSeq numberSeq;
;
inventTransferTable.clear();
inventTransferTable.initValue();
numberSequenceReference = InventParameters::numRefTransferId();
numberSeq = numberSeq::newGetNumFromCode(numberSequenceReference.numberSequenceTable().NumberSequence);
inventTransferTable.TransferId = numberSeq.num();
inventTransferTable.InventLocationIdFrom = "21";
inventTransferTable.modifiedField(fieldNum(InventTransferTable,InventLocationIdFrom));
inventTransferTable.InventLocationIdTo = "22";
inventTransferTable.modifiedField(fieldNum(InventTransferTable,InventLocationIdTo));
inventTransferTable.TransferStatus = InventTransferStatus::Created;
inventTransferTable.insert();
inventTransferLine.clear();
inventTransferLine.ItemId = "1234";
inventTransferLine.initFromInventTable(InventTable::find("1234"));
inventTransferLine.initFromInventTransferTable(inventTransferTable,NoYes::Yes);
inventTransferLine.QtyTransfer = 100;
inventTransferLine.QtyShipNow = 100;
inventTransferLine.QtyReceiveNow = 100;
inventTransferLine.insert();
}
No comments:
Post a Comment