fix purchase order input bug

This commit is contained in:
omair saleh
2021-12-19 19:55:08 +08:00
parent e162db274b
commit d228940938
@@ -11,8 +11,8 @@
<div class="row m-b-10">
<div class="col">
<validation-wrapper-component :validator="$v.parameters.fix_amount">
<label class="muted">Booking Amount ({{parameters.fixed_currency.short_code}})</label>
<input type="text" class="form-control" v-model="(Math.round((parameters.fix_amount + Number.EPSILON) * 100) / 100).toFixed(2)" v-money="money">
<label class="muted">Booking Amount ({{data.fixed_currency.short_code}})</label>
<input type="text" class="form-control" v-model="parameters.fix_amount" v-money="money">
</validation-wrapper-component>
</div>
</div>
@@ -43,7 +43,7 @@
return {
error: '',
parameters: {
fix_amount: this.data.amount
fix_amount: (Math.round((this.data.amount + Number.EPSILON) * 100) / 100).toFixed(2)
}
}
},
@@ -54,7 +54,7 @@
},
watch: {
'data': function() {
this.parameters.fix_amount = this.data.amount;
this.parameters.fix_amount = (Math.round((this.data.amount + Number.EPSILON) * 100) / 100).toFixed(2);
}
},
methods: {