1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 00:06:14 +01:00
@loviuz Prova a testare nuovamente il comportamento precedente.
This commit is contained in:
Thomas Zilio 2019-03-22 11:49:38 +01:00
parent d0e3e267ef
commit 26298a1978

View File

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