DynDeveloper.com

DynDeveloper.com

Sign Up Now!Log In
snikic 7/9/2019 6:27:00 PM

tax problem with creating PO using GP dynamic web Service

Hello :)

I am trying to create a PO using GP dynamic web Service. I found that the tax amount is zero (TAXAMNT field in both pop10100 and pop10110).

I tried to set the tax amount for each purchase line separately but the total tax amount for the header is zero and not calculated automatically.

For example: 

PurchaseOrderLine.TaxAmount = new MoneyAmount();
PurchaseOrderLine.TaxAmount.Value = 0.22M;
PurchaseOrderLine.TaxAmount.Currency = "CAD";

 

Version: GP 2013, GP 2010
Section: Dynamics GP, Web Services