I was using WebServices for Dynamics GP.
When i call the method CreatePurchaseOrder i'm having this error: Input number of decimal exceeds setup for currency decimal places.
This is the code that i wrote:
MoneyAmount ma = new MoneyAmount();
ma.Currency = "USD";
ma.DecimalDigits = 2;
ma.Value = 12.66789;
purchaseOrderLine.UnitCost =ma ;
Do I have to round the number before pass to the object?
Does GP have a method to round numbers?
i don't want to use the method Math.Round because I donĀ“t want to lose some decimals. Instead, I would like GP do it for me.