HI all,
I am creating a plugin and in the plugin i need to retrieve Revenue amount do some calculation and then put it in another currency text field.
Below is the way I am doing it.
//Get the Exchange Rate
decExchangeRate = (Decimal)(a.Attributes["exchangerate"]);
//Getting the VatAmount
decVatAmmount = ((Money)(a.Attributes["new_vatamount"])).Value;
//do some calculation
decBaesVat = (decVatAmmount / decExchangeRate);
//Place the calculated amount in a currency field on the form
entProductLines.Attributes.Add("new_estvatamount", decBaesVat);
Can anyone help me how to convert the decBaseVat and place it in the attribute?
Many Thanks
Regards
Vinay