Fix invoice creation with charges. Fix including discounts in invoices
This commit is contained in:
@@ -160,7 +160,7 @@ class InvoiceItem extends Model
|
||||
*/
|
||||
public function getSubTotalAttribute(): float
|
||||
{
|
||||
return sprintf('%3.2f',$this->quantity * $this->price_base);
|
||||
return sprintf('%3.2f',$this->quantity * $this->price_base - $this->discount_amt);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user