logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Tuesday, July 5, 2022 8:50:32 AM(UTC)
Joe Payne2

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.
thanks 1 user thanked Joe Payne2 for this useful post.
sweeperqb on 7/5/2022(UTC)

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyar  
#2 Posted : Tuesday, July 5, 2022 9:56:02 AM(UTC)
shaharyar

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.
thanks 1 user thanked shaharyar for this useful post.
Joe Payne2 on 7/8/2022(UTC)
sweeperqb  
#3 Posted : Tuesday, July 5, 2022 11:41:03 AM(UTC)
sweeperqb

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.
Katie S  
#4 Posted : Friday, July 8, 2022 12:23:09 PM(UTC)
Katie S

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
thanks 1 user thanked Katie S for this useful post.
Joe Payne2 on 7/8/2022(UTC)
nadeem  
#5 Posted : Friday, July 8, 2022 12:46:18 PM(UTC)
nadeem

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.
thanks 1 user thanked nadeem for this useful post.
Joe Payne2 on 7/8/2022(UTC)
Users browsing this topic
Guest
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.