创建转移单并过帐 job

Posted xtwkh1973

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了创建转移单并过帐 job相关的知识,希望对你有一定的参考价值。

static void createTransferOrder(Args _args)
InventJournalTable journalTable;
InventJournalTrans journalTrans;
InventJournalTableData journalTableData;
InventJournalTransData journalTransData;
InventTable inventTable;
InventDim inventDim;
InventJournalCheckPost journalCheckPost = new InventJournalCheckPost();
;
journalTableData = JournalTableData::newTable(journalTable);
journalTransData = journalTableData.journalStatic().newJournalTransData(journalTrans, journalTableData);
// Init journalTable
journalTable.clear();
journalTable.JournalId = journalTableData.nextJournalId();
journalTable.JournalType = InventJournalType::Transfer;
journalTable.JournalNameId = journalTableData.journalStatic().standardJournalNameId(journalTable.JournalType);
journalTableData.initFromJournalName(journalTableData.journalStatic().findJournalName(journalTable.JournalNameId));
journalTrans.clear();
journalTransData.initFromJournalTable();
journalTrans.TransDate = systemdateget();
journalTrans.initFromInventTable(InventTable::find("bx1025-wrnp"));
journalTrans.Qty = 10;
inventDim.clear();
// inventDim.inventSiteId = ‘1‘;
inventDim.InventLocationId = ‘1‘;
journalTrans.InventDimId = InventDim::findOrCreate(inventDim).inventDimId;
inventDim.clear();
// inventDim.InventSiteId = ‘2‘;
inventDim.InventLocationId = ‘ship‘;
journalTrans.ToInventDimId = InventDim::findOrCreate(inventDim).inventDimId;
journalTransData.create();
journalTable.insert();
// post
// if (InventJournalCheckPost::newPostJournal(journalTable).validate())
//
// inventJournalCheckPost::newPostJournal(journalTable).run();
//

以上是关于创建转移单并过帐 job的主要内容,如果未能解决你的问题,请参考以下文章

AX 2009:需要在发票过帐前打印形式发票

elastic-job详解:失效转移

ebs标准程序过账卡住

oracle数据库创建的job不自动执行

oracle中如何创建一个job

oracle job 创建及异步提交job---可以测试并发