feat: add legacy PDF generation support and invoice discount fields
This commit is contained in:
@@ -9,12 +9,13 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class InvoiceItem extends Model
|
||||
{
|
||||
protected $fillable = ['invoice_id', 'description', 'quantity', 'unit_price', 'total', 'is_taxable'];
|
||||
protected $fillable = ['invoice_id', 'description', 'quantity', 'unit_price', 'total', 'is_taxable', 'is_discountable'];
|
||||
|
||||
protected $casts = [
|
||||
'unit_price' => 'decimal:2',
|
||||
'total' => 'decimal:2',
|
||||
'is_taxable' => 'boolean',
|
||||
'unit_price' => 'decimal:2',
|
||||
'total' => 'decimal:2',
|
||||
'is_taxable' => 'boolean',
|
||||
'is_discountable' => 'boolean',
|
||||
];
|
||||
|
||||
public function invoice(): BelongsTo
|
||||
|
||||
Reference in New Issue
Block a user