diff --git a/src/Common/Document.php b/src/Common/Document.php index ea48a0b00..057d7ae08 100755 --- a/src/Common/Document.php +++ b/src/Common/Document.php @@ -226,7 +226,7 @@ abstract class Document extends Model implements ReferenceInterface, DocumentInt */ public function getMarginePercentualeAttribute() { - return ($this->imponibile && $this->spesa) ? (($this->totale_imponibile / $this->spesa) - 1) * 100 : 100; + return ($this->totale_imponibile && $this->spesa) ? (($this->totale_imponibile / $this->spesa) - 1) * 100 : 100; } public function delete()