web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :

Create an Intercompany sales order using X++ code in AX 2012

Community Member Profile Picture Community Member
public void interCompanySO(Args _args)
{

    SalesTable  salesTable,salesTableLocal;
    salesTableLocal= args.record();

    salesTable= SalesTable::findRecId(salesTableLocal.RecId, true);

    ttsBegin;
    if (salesTable.SalesType == SalesType::Journal)
    {
        salesTable.SalesType = SalesType::Sales;
        salesTable.Update();
    }
    ttsCommit;

    // code to create a intercompany Sales Order  and purchase order.
    TradeInterCompany::autoCreateOrder(salesTable);

}

This was originally posted here.

Comments

*This post is locked for comments