Merge branch 'master' into frontend-performance-improvements

This commit is contained in:
Darko Gjorgjijoski
2025-05-05 02:24:27 +02:00
committed by GitHub
257 changed files with 30966 additions and 11128 deletions

View File

@@ -118,7 +118,7 @@
<template #left="slotProps">
<BaseIcon
v-if="!isSaving"
name="SaveIcon"
name="ArrowDownOnSquareIcon"
:class="slotProps.class"
/>
</template>
@@ -191,7 +191,12 @@ const taxes = computed({
return {
...tax,
tax_type_id: tax.id,
tax_name: tax.name + ' (' + tax.percent + '%)',
tax_name: `${tax.name} (${tax.calculation_type === 'fixed'
? new Intl.NumberFormat(undefined, {
style: 'currency',
currency: companyStore.selectedCompanyCurrency.code
}).format(tax.fixed_amount / 100)
: `${tax.percent}%`})`,
}
}
}),
@@ -211,7 +216,12 @@ const getTaxTypes = computed(() => {
return {
...tax,
tax_type_id: tax.id,
tax_name: tax.name + ' (' + tax.percent + '%)',
tax_name: `${tax.name} (${tax.calculation_type === 'fixed'
? new Intl.NumberFormat(undefined, {
style: 'currency',
currency: companyStore.selectedCompanyCurrency.code
}).format(tax.fixed_amount / 100)
: `${tax.percent}%`})`,
}
})
})
@@ -287,7 +297,9 @@ async function submitItem() {
data.taxes = itemStore.currentItem.taxes.map((tax) => {
return {
tax_type_id: tax.tax_type_id,
amount: price.value * tax.percent,
calculation_type: tax.calculation_type,
fixed_amount: tax.fixed_amount,
amount: tax.calculation_type === 'fixed' ? tax.fixed_amount : price.value * tax.percent,
percent: tax.percent,
name: tax.name,
collective_tax: 0,

View File

@@ -18,9 +18,9 @@
<BaseIcon
v-if="!showFilters"
:class="slotProps.class"
name="FilterIcon"
name="FunnelIcon"
/>
<BaseIcon v-else name="XIcon" :class="slotProps.class" />
<BaseIcon v-else name="XMarkIcon" :class="slotProps.class" />
</template>
</BaseButton>