#1023 claim.detail cantidad total parecer ser erronea

This commit is contained in:
Gerard 2019-01-22 12:24:19 +01:00
parent 668da9ac12
commit b24f0a9442
2 changed files with 3 additions and 2 deletions

View File

@ -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">

View File

@ -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