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; } /**