static void AutoAllocateCharges_beforeConfirmPO(Args _args)
{
PurchTable purchTable;
PurchFormLetter purchFormLetter;
Args args = new Args();
MarkupAllocation markupAllocation;
select firstOnly purchTable where purchTable.PurchId=='1016-PO-14-000191';
args.record(purchTable);
//auto allocate charges
markupAllocation = MarkupAllocation::newMarkupAllocation(args.record());
markupAllocation.run(args.parmObject());
purchFormLetter = PurchFormLetter::construct(DocumentStatus::PurchaseOrder);
purchFormLetter.update(purchTable, purchTable.PurchId);
}
Like this:
Like Loading...
Related