Hi Martin,
Thanks for the advice. I create this method. should be sufficient as I tested.
public static server str InvoiceAmountMST()
{
str InvoiceAmountField = SysComputedColumn::returnField(
tablestr(XYZProjInvoiceHeaderEntity),
identifierStr(ProjInvoiceJour), fieldStr(ProjInvoiceJour,InvoiceAmount));
str ExchangeRateField = SysComputedColumn::returnField(
tablestr(XYZProjInvoiceHeaderEntity),
identifierStr(ProjInvoiceJour), fieldStr(ProjInvoiceJour, ExchRate));
return strFmt('%1 * isnull(%2,100)/100', InvoiceAmountField, ExchangeRateField);
}
Regards,