#1023 claim.detail cantidad total parecer ser erronea
This commit is contained in:
parent
668da9ac12
commit
b24f0a9442
|
@ -47,7 +47,6 @@
|
|||
<vn-td number>
|
||||
<vn-textfield
|
||||
vn-focus
|
||||
id="claimedQuantity"
|
||||
model="saleClaimed.quantity"
|
||||
on-change="$ctrl.setClaimedQuantity(saleClaimed.id, saleClaimed.quantity)"
|
||||
type="text">
|
||||
|
|
|
@ -92,7 +92,9 @@ class Controller {
|
|||
}
|
||||
|
||||
getSaleTotal(sale) {
|
||||
return (sale.quantity * sale.price) - ((100 - sale.discount) / 100);
|
||||
let total = 0.0;
|
||||
total += sale.quantity * sale.price - ((sale.discount * (sale.quantity * sale.price)) / 100);
|
||||
return total;
|
||||
}
|
||||
|
||||
// Item Descriptor
|
||||
|
|
Loading…
Reference in New Issue