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:
@@ -233,14 +233,14 @@
|
||||
};
|
||||
},
|
||||
updateProduct(product, index){
|
||||
console.log(product);
|
||||
this.products[index] = {
|
||||
stockCode: product.stockCode,
|
||||
description: product.description,
|
||||
quantity: product.quantity,
|
||||
unit_price: parseFloat((product.unit_price).toString().replace(',', '')),
|
||||
total: this.productTotal
|
||||
total: product.quantity * parseFloat((product.unit_price).toString().replace(',', ''))
|
||||
};
|
||||
console.log(this.productTotal);
|
||||
},
|
||||
removeProduct(index){
|
||||
this.products.splice(index, 1);
|
||||
|
||||
Reference in New Issue
Block a user