OwnerFeeTotal.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\ModelLogChanging;
  5. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  6. class OwnerFeeTotal extends Model
  7. {
  8. use ModelLogChanging;
  9. public $fillable = [
  10. 'owner_id',//货主
  11. 'counting_month',//结算月
  12. 'discount_fee',//优惠费
  13. 'discount_remark',//优惠备注
  14. 'information',//仓储,入库出库费
  15. 'fee',//总费用
  16. 'logistic_fee',//物流费
  17. 'logistic_tax_fee',//物流税费
  18. 'express_fee',//快递费
  19. 'express_tax_fee',//快递税费
  20. 'process_fee',//加工费
  21. 'process_tax_fee',//加工税费
  22. 'system_fee',//系统使用费
  23. 'system_tax_fee',//系统使用税费
  24. 'sundry_information',//杂项费
  25. 'tax_rate',//税率
  26. 'indemnity_fee',//理赔费
  27. 'packing_material_fee',//包材费
  28. 'unload_fee',//卸货费
  29. ];
  30. public $casts = [
  31. 'information'=>'array',
  32. 'sundry_information'=>'array',
  33. ];
  34. public function owner(): BelongsTo
  35. {
  36. return $this->belongsTo(Owner::class);
  37. }
  38. }