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)
|
If a merchant is using the Avalara tax gateway, the Recalculate button on the Items tab will have no effect on taxes. You guys never wrote the code. In fact, it was this way since the gateway was originally built several years ago. Merchants make changes all the time to orders. With the recent push nationwide for internet taxing, the ability to recalculate taxes is more important than it's ever been. Code:
/// <summary>
/// Calculates and applies taxes for the given order
/// </summary>
/// <param name="basket">The order to calculate taxes on.</param>
/// <returns>The total amount of tax applied.</returns>
/// <remarks>Any pre-existing tax line items must be removed from the order before the calculation.</remarks>
public override decimal Recalculate(Order order)
{
// DO NOT CALCULATE IF TAX CALCULATION IS DISABLED
if (!this.EnableTaxCalculation) return 0M;
if (!ProvinceIsTaxable(order)) return 0M;
// TODO: Implement tax recalculation (cancel then commit?)
return base.Recalculate(order);
}
|
|
|
|
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)
|
I'll open up a report on this issue.
Thanks for pointing this out!
|
1 user thanked shaharyar for this useful post.
|
|
|
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