inventJorunalTransFirst.clear();
inventJorunalTransFirst.data(inventJorunalTrans);
inventJorunalTransFirst.JournalId = headerTb.JournalId;
inventJorunalTransFirst.RecId = 0;
inventJorunalTransFirst.InventTransId = '';
//inventJorunalTransFirst.LineNum = InventJournalTrans::lastLineNum(journalId)+1;
inventJorunalTransFirst.insert();
update_recordset prodJournalBOM setting IWS_InventJournalId = headerTb.JournalId,IWS_InventTransId = inventJorunalTransFirst.InventTransId
    where prodJournalBOM.IWS_InventJournalId == inventJorunalTrans.JournalId     
        && prodJournalBOM.IWS_InventTransId == inventJorunalTrans.InventTransId;
inventJorunalTrans.doDelete();
InventUpd_Reservation::newMovement(inventJorunalTransFirst.inventMovement(),inventJorunalTransFirst.Qty,true).updateNow();

标签: none

添加新评论