From 26298a19784928344b9eb6f6f54156d6ae7c59d5 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Fri, 22 Mar 2019 11:49:38 +0100 Subject: [PATCH] Fix 316799b91f5a82429718ae54aaa18c107f30dfe0 @loviuz Prova a testare nuovamente il comportamento precedente. --- include/src/Components/Row.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/src/Components/Row.php b/include/src/Components/Row.php index 669ae881d..29f5f3fd1 100644 --- a/include/src/Components/Row.php +++ b/include/src/Components/Row.php @@ -39,11 +39,11 @@ abstract class Row extends Description */ public function getImponibileScontatoAttribute() { - $result = $this->prezzo_unitario_vendita > 0 ? $this->imponibile : -$this->imponibile; + $result = $this->prezzo_unitario_vendita >= 0 ? $this->imponibile : -$this->imponibile; $result -= $this->sconto; - return $result; + return $this->prezzo_unitario_vendita >= 0 ? $result : -$result; } /**