Optimise Invoice

This commit is contained in:
2024-07-09 20:17:30 +10:00
parent 29bccbf72f
commit f561139d45
11 changed files with 146 additions and 185 deletions

View File

@@ -125,7 +125,7 @@ class InvoiceItem extends Model
*/
public function getSubTotalAttribute(): float
{
return sprintf('%3.2f',$this->quantity * $this->price_base - $this->discount_amt);
return sprintf('%3.2f',$this->quantity * ($this->price_base - $this->discount_amt));
}
/**