Shivam Shukla Posted July 19, 2021 Report Posted July 19, 2021 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. Quote
Paul Posted July 23, 2021 Report Posted July 23, 2021 You have 2 overlapping rules, so the first matching level 1 rule is applied. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.