purchase order value must match booking total up to 2 decimal

This commit is contained in:
omair saleh
2021-05-25 10:44:47 +08:00
parent 4cef3d530a
commit b9697ba890
2 changed files with 3 additions and 2 deletions
@@ -51,7 +51,7 @@
<input type="text" class="form-control fs-10 b-rad-none text-center" placeholder="Quantity" v-model.lazy="product.quantity" v-mask="'#########'"/>
</div>
<div class="col text-center p-r-5 p-l-5">
<input type="text" class="form-control fs-10 b-rad-none text-center" placeholder="Unit Price" v-model.lazy="product.unit_price" v-money="money" />
<input type="text" class="form-control fs-10 b-rad-none text-center" placeholder="Unit Price" v-model.lazy="product.unit_price" v-money="productPrice" />
</div>
<div class="col-1 text-center p-r-5 p-l-5">
<div class="font-heading all-caps fs-10">{{data.fixed_currency.short_code}}</div>
@@ -101,7 +101,7 @@
</div>
<div class="row">
<div class="col-7">
<div class="row" v-if="poTotal > data.amount">
<div class="row" v-if="(Math.round((poTotal + Number.EPSILON) * 100) / 100).toFixed(2) > (Math.round((data.amount + Number.EPSILON) * 100) / 100).toFixed(2)">
<div class="col">
<div class="alert alert-warning padding-15" role="alert">
<div class="font-heading fs-12 all-caps bold m-b-15">Can't Complete Your Purchase Order ?</div>
+1
View File
@@ -28,6 +28,7 @@ export default {
isLoading: false,
error: '',
money: {decimal: '.',thousands: ',', precision: 2},
productPrice: {decimal: '.',thousands: ',', precision: 3},
exchangeRate: {decimal: '.', thousands: '', precision: 5},
percentage: {decimal: '.', thousands: '', precision: 2, suffix: '%'},
integer: {decimal: '', thousands: '', precision: 0},