AX Code Exchange Rates



static void ExchRates(Args _args){     ExchRate  ex,ex1;     date      df = mkdate(1,1, 2019);     amount    amount;     ;     //ex = ExchRates::exchRateCache().exchRate('USB', systemdateget());
     //Back Date 1 day Ref: Date Confirmation
     ex = ExchRates::exchRateCache().exchRate('USB', df)/100;
           //ExchRates::find(_currencyCode, _exchRateDate, 0).ExchRate;     ex1 = ExchRates::find('USB', today(), 0).ExchRate/100;     amount = (171.40*ex)-(1/100);     info(strfmt('%1',amount));     info(strfmt('%1 ,  %2',df,ex));     info(strfmt('%1 ,  %2',systemdateget(),ex1));

}

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

เริ่ม ต้นเขียนโปรแกรมกับ กับ X++

date Functions Axapta X++