mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix purchase order input bug
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user