feat: add calc vat into product (will be calc in quotation)

This commit is contained in:
Methapon Metanipat 2024-10-16 16:22:45 +07:00
parent 08254d1b9f
commit 6c10c82fcc
5 changed files with 27 additions and 0 deletions

View file

@ -6,6 +6,7 @@ const serviceCharge = defineModel<number>('serviceCharge');
const agentPrice = defineModel<number>('agentPrice');
const price = defineModel<number>('price');
const vatIncluded = defineModel<boolean>('vatIncluded');
const calcVat = defineModel<boolean>('calcVat');
const price4Show = ref('');
const agentPrice4Show = ref('');
@ -154,6 +155,22 @@ withDefaults(
}
"
/>
<section class="q-px-md q-mx-xs">
<input
id="input-calc-vat"
type="checkbox"
v-model="calcVat"
:disabled="readonly"
/>
<label
class="q-pl-sm"
for="input-calc-vat"
:style="{ opacity: readonly ? '.5' : undefined }"
>
{{ $t('general.calculateVat') }}
</label>
</section>
</div>
</div>
</template>