From b24f0a944215488c7c31a0a20399efd1abf6ab08 Mon Sep 17 00:00:00 2001 From: Gerard Date: Tue, 22 Jan 2019 12:24:19 +0100 Subject: [PATCH] #1023 claim.detail cantidad total parecer ser erronea --- modules/claim/front/detail/index.html | 1 - modules/claim/front/detail/index.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/claim/front/detail/index.html b/modules/claim/front/detail/index.html index 2c62a5abb..63cab4f8b 100644 --- a/modules/claim/front/detail/index.html +++ b/modules/claim/front/detail/index.html @@ -47,7 +47,6 @@ diff --git a/modules/claim/front/detail/index.js b/modules/claim/front/detail/index.js index bec5e8c3d..69edb7f39 100644 --- a/modules/claim/front/detail/index.js +++ b/modules/claim/front/detail/index.js @@ -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