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);
}
{
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);
}
No comments:
Post a Comment