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 Axapta forum for learning, sharing and transferring dynamics AX knowledge and all related topics to Dynamics AX for example Business Intelligence (SSRS & SSAS), SQL, Workflow, SharePoint, ALL Dynamics AX Reporting tools, AX Integration ( AIF, Web Service, ...)
LeaderBoard
Confirm a Sales Order through code
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment