From a39b44899a88ba93b3c66dfd40b2679a376fd05a Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Thu, 4 Jan 2018 17:03:20 +0100 Subject: [PATCH] Fix #90 --- templates/fatture/body.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/fatture/body.php b/templates/fatture/body.php index a57b5dbbb..f48047fd3 100644 --- a/templates/fatture/body.php +++ b/templates/fatture/body.php @@ -132,11 +132,11 @@ foreach ($righe as $r) { // Imponibile echo " - ".(empty($r['subtotale']) ? '' : Translator::numberToLocale($r['subtotale'])).' €'; + ".(empty($r['subtotale']) ? '' : Translator::numberToLocale($r['subtotale'] - $r['sconto'])).' €'; if ($r['sconto'] > 0) { echo " -
- ".tr('sconto _TOT_ _TYPE_', [ +
".tr('sconto di _TOT_ _TYPE_', [ '_TOT_' => Translator::numberToLocale($r['sconto']), '_TYPE_' => '€', ]).'';