Below is a block of code that we can use for copying the existing sales line or selected SalesLine details on the same SalesOrder or another SalesOrder. Basically is it the same as CopyLine functionality in Sales Order.
salesLineUpdate.clear();
salesLineUpdate.initFromSalesTable([FromSalesTable]);
salesLineUpdate.initFromSalesLine([FromSalesLineTable]);
ttsbegin;
salesLineUpdate.createLine(NoYes::Yes, // Validate
NoYes::Yes, // initFromSalesTable
NoYes::Yes, // initFromInventTable
NoYes::Yes, // calcInventQty
NoYes::Yes, // searchMarkup
NoYes::Yes);
ttscommit;
thank you
Keep Daxing :)
No comments:
Post a Comment