Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Unanswered

Tax Details Updation in Dynamics GP.

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

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans