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