OwnerFeeTotal.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. ];
  27. public $casts = [
  28. 'information'=>'array',
  29. 'sundry_information'=>'array',
  30. ];
  31. public function owner(): BelongsTo
  32. {
  33. return $this->belongsTo(Owner::class);
  34. }
  35. }