| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class OwnerFeeTotal extends Model
- {
- use ModelLogChanging;
- public $fillable = [
- 'owner_id',//货主
- 'counting_month',//结算月
- 'discount_fee',//优惠费
- 'discount_remark',//优惠备注
- 'information',//仓储,入库出库费
- 'fee',//总费用
- 'logistic_fee',//物流费
- 'logistic_tax_fee',//物流税费
- 'express_fee',//快递费
- 'express_tax_fee',//快递税费
- 'process_fee',//加工费
- 'process_tax_fee',//加工税费
- 'system_fee',//系统使用费
- 'system_tax_fee',//系统使用税费
- 'sundry_information',//杂项费
- 'tax_rate',//税率
- 'indemnity_fee',//理赔费
- 'packing_material_fee',//包材费
- 'unload_fee',//卸货费
- ];
- public $casts = [
- 'information'=>'array',
- 'sundry_information'=>'array',
- ];
- public function owner(): BelongsTo
- {
- return $this->belongsTo(Owner::class);
- }
- }
|