Today i am going to show you how to conform sales order through code
static void confirmSalesOrder (Args _args)
{
SalesTable salesTable;
SalesFormLetter salesFormLetter ;
SalesTable = SalesTable::find('SO-ASC0001');
salesFormLetter = SalesFormLetter::construct(DocumentStatus::Confirmation);
salesFormLetter.update(salesTable);
now run this code,
No comments:
Post a Comment