Fixes for invoice rounding, where invoice total was different from reporting
This commit is contained in:
@@ -422,7 +422,7 @@ class Invoice extends Model implements IDs
|
||||
*/
|
||||
public function getDueAttribute(): float
|
||||
{
|
||||
return sprintf('%3.2f',$this->getTotalAttribute()-$this->getPaidAttribute());
|
||||
return round($this->getTotalAttribute()-$this->getPaidAttribute(),2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user