Jump to content

Tax rules are not applying correctly?


Shivam Shukla
 Share

Recommended Posts

Hi 

I am currently working on Blesta Version 5.0.3

While working i have noticed a bug but i am not sure about it that it is the part of blesta functionality or really a bug.

I am explaining with the example.

Lets Assume i have created the Tax rules in the following way.
1. Create a rule where country is (India) and state is All. Tax type: Inclusive, Name: All, Amount: 40, Tax Level 1

2. Create a rule where country is (India) and state is Punjab. Tax type: Inclusive, Name: Punjab 1, Amount: 20, Tax Level 1

3. Create a rule where country is (India) and state is Punjab. Tax type: Inclusive, Name: Punjab 2, Amount: 20, Tax Level 2

Now according to me if rule for a specific country and state exist so it will be applied by default. Like if client is from state Punjab Rule name "Punjab 1" and "Punjab 2" will be applied but it is applying the Rule Name: "All" and "Punjab 2" because Rule "All" is created first in the table `taxes`.

if I create the rule "All" in the last it picks the in the correct way "Punjab 1" and "Punjab 2"

It is picking the first entry ascending to `id` column of table `taxes`.

I am not sure i have explained clearly but tried the best to explain.

If have any doubt please let me know.

Link to comment
Share on other sites

  • Shivam Shukla changed the title to Tax rules are not applying correctly?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...