33 lines
650 B
PHP
33 lines
650 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class BillingItemType extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'sql_acc_code',
|
|
'nett_contribution',
|
|
'fee_type',
|
|
'type',
|
|
'campaign_type',
|
|
];
|
|
|
|
protected $casts = [
|
|
'nett_contribution' => 'boolean',
|
|
];
|
|
|
|
public function paymentItems(): HasMany
|
|
{
|
|
return $this->hasMany(ClientInvoicePaymentItem::class, 'billing_item_types_id');
|
|
}
|
|
}
|