Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Dynamics CRM 2013 - Convert String to Money.

$
0
0

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



Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>