Announcements
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
André Arnaud de Cal...
294,060
Super User 2025 Season 1
Martin Dráb
232,858
Most Valuable Professional
nmaenpaa
101,158
Moderator