Adding Flat Tax support with fixed amount (#253)

* Possibility to set a fixed amount on tax types settings

* Pint and manage flat taxes on items

* Fix display errors and handle global taxes

* Tests

* Pint with PHP 8.2 cause with PHP 8.3 version it cause workflow error

* Merging percent and fixed amount into one column

* Now display the currency on SelectTaxPopup on fixed taxes
This commit is contained in:
mchev
2025-05-04 02:24:56 +02:00
committed by GitHub
parent 546f75d3a6
commit bf5b544ca3
22 changed files with 306 additions and 39 deletions

View File

@@ -15,7 +15,9 @@ export const useTaxTypeStore = (useWindow = false) => {
currentTaxType: {
id: null,
name: '',
calculation_type: 'percentage',
percent: 0,
fixed_amount: 0,
description: '',
compound_tax: false,
collective_tax: 0,
@@ -31,7 +33,9 @@ export const useTaxTypeStore = (useWindow = false) => {
this.currentTaxType = {
id: null,
name: '',
calculation_type: 'percentage',
percent: 0,
fixed_amount: 0,
description: '',
compound_tax: false,
collective_tax: 0,