Skip to main content
Microsoft Dynamics GP forum
Unanswered

Tax Details Updation in Dynamics GP.

editSubscribe (0) ShareShare
ReportReport
Posted on by 180

Hi All,

I want to update the Tax amount through econnect. But GP is not allow to update the Amount and it throws an error as 

"Tax detail already exists" (or) Manual Tax details are not supported ( if i uncomment the comment code )

Process :

I placed the order with the Tax Amount 50$,then again if i change the Shipping address to some other State or country.then the Tax amount may increase or decrease based on Shipping address. now Tax amount is 100$.

My Tax Code is below.

taSopLineIvcTaxInsert_ItemsTaSopLineIvcTaxInsert[] taxLine = new taSopLineIvcTaxInsert_ItemsTaSopLineIvcTaxInsert[1];
//tasopHdrInvInsert.TAXSCHID = "TAX 1";
taxLine[0] = new taSopLineIvcTaxInsert_ItemsTaSopLineIvcTaxInsert();
taxLine[0].SOPTYPE = 2);
taxLine[0].TAXDTLID = "TAX 1";
taxLine[0].CUSTNMBR = "CUST123";
taxLine[0].STAXAMNT = 100$;              //orderEntity.TaxAmount

taxLine[0].SALESAMT = "540$"; //Sales amount
//if (!Equals(orderEntity.TaxAmount, Convert.ToDouble(0)))
//{
// taxLine[0].TDTTXSLS = tasopHdrInvInsert.DOCAMNT - decimal.Parse(orderEntity.TaxAmount.ToString(), CultureInfo.CurrentCulture); //Total taxable sales
// taxLine[0].TDTTXSLSSpecified = true;
//}
taxLine[0].TXDTOTTX = tasopHdrInvInsert.DOCAMNT;
taxLine[0].TXDTOTTXSpecified = true;
taxLine[0].SOPNUMBE = orderEntity.TargetOrderId;

tasopHdrInvInsert.TAXAMNT = Convert.ToDecimal(orderEntity.TaxAmount);
tasopHdrInvInsert.CREATETAXES = 0;
tasopHdrInvInsert.USINGHEADERLEVELTAXES = 1;

mySopTransactionType.taSopLineIvcTaxInsert_Items = taxLine;

Can i override that TAX for the Same order in GP ?.

Please suggest me .

Thanks in advance.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans