2026-02-27 10:51:26 +05:30
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class InvoiceChargeGroup extends Model
|
|
|
|
|
{
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'invoice_id',
|
|
|
|
|
'group_name',
|
|
|
|
|
'basis_type',
|
|
|
|
|
'basis_value',
|
|
|
|
|
'rate',
|
|
|
|
|
'total_charge',
|
2026-03-11 20:02:43 +05:30
|
|
|
|
|
|
|
|
'tax_type',
|
|
|
|
|
'gst_percent',
|
|
|
|
|
'total_with_gst',
|
2026-02-27 10:51:26 +05:30
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function invoice()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Invoice::class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function items()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasMany(InvoiceChargeGroupItem::class, 'group_id');
|
|
|
|
|
}
|
|
|
|
|
}
|