mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-05-25 12:44:55 +00:00
Move base-select into base
This commit is contained in:
@@ -141,7 +141,7 @@ import BaseIcon from '@/scripts/components/base/BaseIcon.vue'
|
||||
import BaseButton from '@/scripts/components/base/BaseButton.vue'
|
||||
import BaseTextarea from '@/scripts/components/base/BaseTextarea.vue'
|
||||
import BaseInputGroup from '@/scripts/components/base/BaseInputGroup.vue'
|
||||
import BaseMultiselect from '@/scripts/components/base-select/BaseMultiselect.vue'
|
||||
import BaseMultiselect from '@/scripts/components/base/base-select/BaseMultiselect.vue'
|
||||
import BaseMoney from '@/scripts/components/base/BaseMoney.vue'
|
||||
import BaseInput from '@/scripts/components/base/BaseInput.vue'
|
||||
import BaseInputGrid from '@/scripts/components/base/BaseInputGrid.vue'
|
||||
@@ -217,15 +217,15 @@ const v$ = useVuelidate(
|
||||
|
||||
const getTaxTypes = computed(() => {
|
||||
return taxTypeStore.taxTypes.map((tax) => {
|
||||
const amount = tax.calculation_type === 'fixed'
|
||||
const amount = tax.calculation_type === 'fixed'
|
||||
? new Intl.NumberFormat(undefined, {
|
||||
style: 'currency',
|
||||
currency: companyStore.selectedCompanyCurrency.code
|
||||
}).format(tax.fixed_amount / 100)
|
||||
: `${tax.percent}%`
|
||||
|
||||
return {
|
||||
...tax,
|
||||
|
||||
return {
|
||||
...tax,
|
||||
tax_name: `${tax.name} (${amount})`
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user