web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Tax Details Updation in Dynamics GP.

(0) ShareShare
ReportReport
Posted on by 208

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.

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans