Posts

Showing posts from February, 2020

Find Price in sales order line (Trade Agreements)

class SMJ_SalesPriceTest {        public static void main( Args _args)     {         Amount retPrice;         PriceDiscParameters parameters = PriceDiscParameters ::construct();                 parameters.parmModuleType( ModuleInventPurchSales ::Sales);         parameters.parmItemId( "1000" );         //parameters.parmInventDim(InventDim::find());         parameters.parmUnitID( "ea" );         parameters.parmPriceDiscDate(systemDateGet());         parameters.parmQty( 50 );         parameters.parmAccountNum( "000001" );        ...