fix: handle field change for float, percent & currency
This commit is contained in:
parent
74ef956638
commit
960ebdc727
@ -192,7 +192,7 @@
|
|||||||
variant="outline"
|
variant="outline"
|
||||||
:value="getFormattedFloat(field.fieldname, row)"
|
:value="getFormattedFloat(field.fieldname, row)"
|
||||||
:disabled="Boolean(field.read_only)"
|
:disabled="Boolean(field.read_only)"
|
||||||
@change="row[field.fieldname] = flt($event.target.value)"
|
@change="fieldChange(flt($event.target.value), field, row)"
|
||||||
/>
|
/>
|
||||||
<FormControl
|
<FormControl
|
||||||
v-else-if="field.fieldtype === 'Percent'"
|
v-else-if="field.fieldtype === 'Percent'"
|
||||||
@ -201,7 +201,7 @@
|
|||||||
variant="outline"
|
variant="outline"
|
||||||
:value="getFormattedPercent(field.fieldname, row)"
|
:value="getFormattedPercent(field.fieldname, row)"
|
||||||
:disabled="Boolean(field.read_only)"
|
:disabled="Boolean(field.read_only)"
|
||||||
@change="row[field.fieldname] = flt($event.target.value)"
|
@change="fieldChange(flt($event.target.value), field, row)"
|
||||||
/>
|
/>
|
||||||
<FormControl
|
<FormControl
|
||||||
v-else-if="field.fieldtype === 'Currency'"
|
v-else-if="field.fieldtype === 'Currency'"
|
||||||
@ -212,7 +212,7 @@
|
|||||||
getFormattedCurrency(field.fieldname, row, parentDoc)
|
getFormattedCurrency(field.fieldname, row, parentDoc)
|
||||||
"
|
"
|
||||||
:disabled="Boolean(field.read_only)"
|
:disabled="Boolean(field.read_only)"
|
||||||
@change="row[field.fieldname] = flt($event.target.value)"
|
@change="fieldChange(flt($event.target.value), field, row)"
|
||||||
/>
|
/>
|
||||||
<FormControl
|
<FormControl
|
||||||
v-else-if="field.fieldtype === 'Select'"
|
v-else-if="field.fieldtype === 'Select'"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user