fix: handle field change for float, percent & currency

This commit is contained in:
Shariq Ansari 2025-05-12 16:34:48 +05:30
parent 74ef956638
commit 960ebdc727

View File

@ -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'"