mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-14 08:26:43 +01:00
Fix minore calcolo margine percentuale
This commit is contained in:
parent
9f908971ea
commit
144b223b64
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user