Jubal1234
asked on
Post packingslip with multiple salesOrders using X++
Hi All,
I'm looking for some example code on how the post multiple orders on a packingslip (or invoice) using X++. I know how to post 1 order. Example:
SalesFormLetter letter=SalesFormLetter::co nstruct(Do cumentStat us::Invoic e);
SalesTable sale = SalesTable::find('ORDR0000 0229');
;
ttsBegin;
letter.update(sale, systemDateGet(), SalesUpdate::PickingList, AccountOrder::None, true, true);
ttsCommit;
But this is just one order. What if I want to post multiple orders at the same time ?
Thanks,
Gerard
I'm looking for some example code on how the post multiple orders on a packingslip (or invoice) using X++. I know how to post 1 order. Example:
SalesFormLetter letter=SalesFormLetter::co
SalesTable sale = SalesTable::find('ORDR0000
;
ttsBegin;
letter.update(sale, systemDateGet(), SalesUpdate::PickingList, AccountOrder::None, true, true);
ttsCommit;
But this is just one order. What if I want to post multiple orders at the same time ?
Thanks,
Gerard
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.