This commit is contained in:
@@ -26,17 +26,17 @@
|
||||
xl="3"
|
||||
>
|
||||
<gz-decimal
|
||||
v-model="obj.taxA"
|
||||
v-model="obj.taxAPct"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('TaxCodeTaxA')"
|
||||
ref="taxA"
|
||||
data-cy="taxA"
|
||||
ref="taxAPct"
|
||||
data-cy="taxAPct"
|
||||
:rules="[
|
||||
form().decimalValid(this, 'taxA'),
|
||||
form().required(this, 'taxA')
|
||||
form().decimalValid(this, 'taxAPct'),
|
||||
form().required(this, 'taxAPct')
|
||||
]"
|
||||
:error-messages="form().serverErrors(this, 'taxA')"
|
||||
@input="fieldValueChanged('taxA')"
|
||||
:error-messages="form().serverErrors(this, 'taxAPct')"
|
||||
@input="fieldValueChanged('taxAPct')"
|
||||
></gz-decimal>
|
||||
</v-col>
|
||||
|
||||
@@ -48,17 +48,17 @@
|
||||
xl="3"
|
||||
>
|
||||
<gz-decimal
|
||||
v-model="obj.taxB"
|
||||
v-model="obj.taxBPct"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('TaxCodeTaxB')"
|
||||
ref="taxB"
|
||||
data-cy="taxB"
|
||||
ref="taxBPct"
|
||||
data-cy="taxBPct"
|
||||
:rules="[
|
||||
form().decimalValid(this, 'taxB'),
|
||||
form().required(this, 'taxB')
|
||||
form().decimalValid(this, 'taxBPct'),
|
||||
form().required(this, 'taxBPct')
|
||||
]"
|
||||
:error-messages="form().serverErrors(this, 'taxB')"
|
||||
@input="fieldValueChanged('taxB')"
|
||||
:error-messages="form().serverErrors(this, 'taxBPct')"
|
||||
@input="fieldValueChanged('taxBPct')"
|
||||
></gz-decimal>
|
||||
</v-col>
|
||||
|
||||
@@ -242,8 +242,8 @@ export default {
|
||||
wiki: null,
|
||||
customFields: "{}",
|
||||
tags: [],
|
||||
taxA: 0.05,
|
||||
taxB: 0.0,
|
||||
taxAPct: 0.05,
|
||||
taxBPct: 0.0,
|
||||
taxOnTax: false
|
||||
},
|
||||
formState: {
|
||||
|
||||
Reference in New Issue
Block a user