Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

Problem inserting Amount, numeric field in AX webservices from Silverlight (.NET)

$
0
0

Hi All,

I am facing problem inserting Numeric and Amount field in AX 2012 from .NET application through AX 2012 web services.

 I have written folloing code for the same :

trx[0].NetAmount = decimal.Parse("-20.00",CultureInfo.GetCultureInfo("en-us"));

trx[0].GrossAmount = decimal.Parse("-20.00", CultureInfo.GetCultureInfo("en-us"));
trx[0].CostAmount = decimal.Parse("-20.00", CultureInfo.GetCultureInfo("en-us"));
trx[0].PaymentAmount = decimal.Parse("-20.00", CultureInfo.GetCultureInfo("en-us"));
trx[0].NumberOfItems = 1;
 
trx[0] is the object of an AX 2012 RetailTranTable.
Please advice.
Thanks and Regards,
Arindam

Viewing all articles
Browse latest Browse all 73760

Trending Articles



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