@loviuz Prova a testare nuovamente il comportamento precedente.
This commit is contained in:
parent
d0e3e267ef
commit
26298a1978
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue