Monday, October 10, 2022
1 change · master
New functionality added to Odoo
Adds a tax calculation option that compares a percentage-based tax with a quantity-based fixed amount and applies whichever is higher. This helps businesses comply with tax rules that require minimum per-quantity tax amounts while still using percentage tax when it produces a larger value, including in Point of Sale.
Original PR description
In this commit, we add a new type that does tax calculation in fixed/percent and takes the higher one. Tax is 21% or 4170 INR per 1000 qty which is high Product | QTY | Unit Price | Total without tax…
In this commit, we add a new type that does tax calculation in fixed/percent and takes the higher one. Tax is 21% or 4170 INR per 1000 qty which is high Product | QTY | Unit Price | Total without tax | Tax amount ========|=====|============|===================|=========== A | 10 | 100.0 | 1000.0 | 417.0 B | 50 | 100.0 | 5000.0 | 1050.0 In first-line tax calculation is 21% of 1000 = 210.0 100(QTY) * 4.17 = 417.0 Tax value is 417.0 (based on qty because the value is higher than the percentage calculation) In second-line tax calculation is 21% of 5000 = 1050.0 100(QTY) * 4.17 = 417.0 Tax value is 1050.0 (based on percentage because the value is higher than qty base calculation) task-2741537 PR: #84518 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr