Files
Kent-logistics-Laravel/app/Models/InvoiceChargeGroup.php
Utkarsh Khedkar ff4c006ca4 Gst Updates
2026-03-11 20:02:43 +05:30

32 lines
555 B
PHP

<?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',
'tax_type',
'gst_percent',
'total_with_gst',
];
public function invoice()
{
return $this->belongsTo(Invoice::class);
}
public function items()
{
return $this->hasMany(InvoiceChargeGroupItem::class, 'group_id');
}
}