public static void main(Args _args)
{
SalesTable salesTable;
RetailSalesTable retailSalesTable;
OMInternalOrganization internalOrganization;
salesTable = SalesTable::find("SalesOrderNumber");
select firstonly Name, RecId from internalOrganization
where internalOrganization.Name == RetailChannelTable::findByRecId(salesTable.RetailChannelTable).name();
ttsbegin;
retailSalesTable.RetailChannel = salesTable.RetailChannelTable;
retailSalesTable.OMInternalOrganization = internalOrganization.RecId;
salesTable.packRetailSalesTable(retailSalesTable);
retailSalesTable.insert();
ttscommit;
}
|
That is all.
No comments:
Post a Comment