AbleCommerce Forums
»
AbleCommerce
»
AbleCommerce 9 Bug Reports
»
9.0.6 AvaTax logs errors referencing wrong object name
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Look in AvaTaxProvider.cs Find the private decimal Calculate(Order order, bool save) method
All the logger.Error() messages mention 'tax for basket'. And they are referencing the order.Id value which isn't a basket object.
It should be saying 'order', not 'basket'. And it should be referencing order.OrderNumber, not order.Id in the message.
|
1 user thanked Joe Payne2 for this useful post.
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Thanks for pointing this out. This has been fixed under the recent changes. Will be the part of next release.
|
1 user thanked shaharyar for this useful post.
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
Is there an ETA on the next release, or can we get a hotfix or code to patch ourselves? Is a big deal for us because we frequently amend orders. Being able to find the orders in Avalara by Order # is important.
|
|
|
|
Rank: Advanced Member
Groups: System, Administrators, Developers, Registered, HelpDesk Joined: 10/29/2018(UTC) Posts: 472
Thanks: 4 times Was thanked: 34 time(s) in 33 post(s)
|
Hi,
The next release will still be a few months out, so we're going to try and get you the code changes to patch it.
The soonest will be mid to late next week.
Thank you for your patience. |
Thanks for your support!
Katie Secure eCommerce Software and Hosting |
1 user thanked Katie S for this useful post.
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 times Was thanked: 18 time(s) in 18 post(s)
|
Quote:Is there an ETA on the next release, or can we get a hotfix or code to patch ourselves? Is a big deal for us because we frequently amend orders. Being able to find the orders in Avalara by Order # is important.
If you have the full source code, Please find and replace the below code in the Calculate function inside /IntegratedProviders/Avalara/AvaTaxProvider.cs file 1. Locate Code:Logger.Error("AvaTax threw an exception while calculating tax for basket " + order.Id + ": " + ex.Message, ex);
and replace with Code:
Logger.Error("AvaTax threw an exception while calculating tax for order " + order.OrderNumber + ": " + ex.Message, ex);
2. Locate Code:Logger.Warn("AvaTax returned a warning while calculating tax for basket " + order.Id + "." + warningMessage.ToString());
and replace with Code:Logger.Warn("AvaTax returned a warning while calculating tax for order " + order.OrderNumber + "." + warningMessage.ToString());
3. Locate Code:Logger.Error("AvaTax returned an error while calculating tax for basket " + order.Id + "." + warningMessage.ToString());
and replace with Code:Logger.Error("AvaTax returned an error while calculating tax for order " + order.OrderNumber + "." + warningMessage.ToString());
Make sure to recompile the AaTax plugin code and redeploy it to your website and restart the app pool to reflect the new updates.
|
1 user thanked nadeem for this useful post.
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
AbleCommerce 9 Bug Reports
»
9.0.6 AvaTax logs errors referencing wrong object name
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close