| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class OwnerStoreOutFeeReport extends Model
- {
- use ModelLogChanging;
- public $fillable = [
- 'owner_bill_report_id',
- 'counting_month',
- 'step', //阶梯
- 'unit_id',
- 'unit_price',//单价
- 'amount', //数量
- 'owner_id',
- 'work_name',//作业名称
- 'fee',//费用
- 'model_id',//计费模型
- 'tax_fee',//税费
- ];
- public $timestamps = false;
- public function ownerBillReport(): BelongsTo
- {
- return $this->belongsTo(OwnerBillReport::class);
- }
- public function unit(): BelongsTo
- {
- return $this->belongsTo(Unit::class);
- }
- public function owner(): BelongsTo
- {
- return $this->belongsTo(Owner::class);
- }
- public function model(): BelongsTo
- {
- return $this->belongsTo(OwnerPriceOperation::class, 'model_id', 'id');
- }
- }
|