LeaderBoard

Confirm a Sales Order through code

 

Over the next few days I am going to post code that walks through the sales life cycle. To start below is code that will take a given SalesId and confirm it.
public boolean confirmSalesOrder(SalesId _salesId)
{
SalesFormletter SalesFormletter;
SalesTable SalesTable;
;
SalesFormletter =
SalesFormletter::construct(DocumentStatus::Confirmation,true);
SalesTable.clear();
SalesTable = SalesTable::find(_salesId);
SalesFormletter.update(SalesTable,
systemDateGet(),
SalesUpdate::All,
AccountOrder::None,
false,
false);
}

No comments:

Post a Comment