Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation of taxes logic has a "bug" #1712

Closed
1bigidea opened this issue Dec 18, 2014 · 6 comments
Closed

Calculation of taxes logic has a "bug" #1712

1bigidea opened this issue Dec 18, 2014 · 6 comments
Assignees
Milestone

Comments

@1bigidea
Copy link
Contributor

In my client site, we force country/state (since all orders are picked up on site). With the upgrade to 3.9.1 - our tax calculation stopped working.

I have tracked it down to lines 150 & 183 in /wpsc-taxes/controllers/taxes_controller.class.php - the logic tests for the presence of a meta field "wpec_taxes_taxable". It does not however check the value of the field.

No amount of jumping up and down on my product will make the wpec_taxes_taxable disappear from the meta - the value merely toggles from "on" to ""(empty).

It seems that we should be testing the value also.

I'll attach a pull request shortly for review.

@JustinSainton JustinSainton added this to the 3.9.2 milestone Dec 18, 2014
@JustinSainton JustinSainton self-assigned this Dec 19, 2014
@JustinSainton
Copy link
Member

Confirmed - have had several reports of this, actually. Seems adding an || empty() check does the trick . Is that pretty much what you were thinking?

Was introduced in 8b013fd.

@jbeales
Copy link
Member

jbeales commented Mar 12, 2015

So, who do I yell at for this not being released, at least as some sort of 3.9.1.1 urgent bug-fix or something?

This is the kind of thing that causes accounting nightmares for store owners, and causes developers to loose lots of time tracking down a known, and fixed 3 months ago, but not released, bug.

@JustinSainton
Copy link
Member

@jbeales
Copy link
Member

jbeales commented Mar 12, 2015

I figured it was you ;) Maybe there should be a discussion around frequent bug-fix releases, especially ones that affect accounting.

@instinct
Copy link
Member

Agreed. It's good for community but we need you to help keep an eye on things too :)

Sent from my iPhone

On 12/03/2015, at 3:09 pm, John Beales notifications@github.com wrote:

I figured it was you ;) Maybe there should be a discussion around frequent bug-fix releases, especially ones that affect accounting.


Reply to this email directly or view it on GitHub.

@JustinSainton
Copy link
Member

👍 to any discussion around bug-fix frequency.

JustinSainton added a commit that referenced this issue Mar 21, 2015
… meta. Regression from 3.9.1 caused taxes to break. Fixes #1712.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants