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);
}
Welcome to Dynamics Ax blog for learning, sharing and transferring dynamics AX knowledge and all related topics to AX
Confirm a Sales Order through code
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment