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:
@@ -42,19 +42,15 @@
|
||||
data(){
|
||||
return {
|
||||
error: '',
|
||||
parameters: {
|
||||
fix_amount: (Math.round((this.data.amount + Number.EPSILON) * 100) / 100).toFixed(2)
|
||||
}
|
||||
fix_amount: (Math.round((this.data.amount + Number.EPSILON) * 100) / 100).toFixed(2)
|
||||
}
|
||||
},
|
||||
validations: {
|
||||
parameters: {
|
||||
fix_amount: { required }
|
||||
},
|
||||
fix_amount: { required }
|
||||
},
|
||||
watch: {
|
||||
'data': function() {
|
||||
this.parameters.fix_amount = (Math.round((this.data.amount + Number.EPSILON) * 100) / 100).toFixed(2);
|
||||
this.fix_amount = (Math.round((this.data.amount + Number.EPSILON) * 100) / 100).toFixed(2);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -240,7 +240,6 @@
|
||||
unit_price: parseFloat((product.unit_price).toString().replace(',', '')),
|
||||
total: product.quantity * parseFloat((product.unit_price).toString().replace(',', ''))
|
||||
});
|
||||
console.log(this.poTotal);
|
||||
},
|
||||
removeProduct(index){
|
||||
this.products.splice(index, 1);
|
||||
|
||||
Reference in New Issue
Block a user