static void PostMovement(Args _args)
{
InventJournalTable
inventJournalTable;
InventJournalName
xInventJournalName;
InventJournaltrans
inventJournaltrans;
InventJournalCheckPost inventJournalCheckPost;
;
xInventJournalName
= InventJournalName::find(InventParameters::find().MovementJournalNameId);
info(strfmt("%1",
xInventJournalName.JournalType));
inventJournalTable.initFromInventJournalName(xInventJournalName);
inventJournalTable.JournalNameId = 'IMov';
inventJournalTable.insert();
inventJournaltrans.JournalId =
InventJournalTable.JournalId;
info(strfmt("%1",
inventJournaltrans.JournalId));
inventJournaltrans.Voucher = '8000_999';
inventJournaltrans.ItemId = '1005';
inventJournaltrans.InventDimId = '00000465_069';
inventJournaltrans.Qty = 1000;
inventJournaltrans.TransDate = mkdate(1,10,2009);
inventJournaltrans.insert();
inventJournalCheckPost = InventJournalCheckPost::newJournalCheckPost(JournalCheckPostType::Check,inventJournalTable);
inventJournalCheckPost.run();
//
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น