| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class OwnerStoreOutFeeDetail extends Model
- {
- use ModelLogChanging;
- public $fillable = [
- 'owner_fee_detail_id',//
- 'commodity_id',//
- 'owner_id',//
- 'source_bill', // 上游单号
- 'owner_price_operation_id', //
- 'unit_price', //价格
- 'unit_id', //
- 'amount',//数量
- 'step',//阶梯
- 'price_remark',//价格描述
- ];
- public function ownerFeeDetail(): BelongsTo
- {
- return $this->belongsTo(OwnerFeeDetail::class);
- }
- public function commodity(): BelongsTo
- {
- return $this->belongsTo(Commodity::class);
- }
- public function owner(): BelongsTo
- {
- return $this->belongsTo(Owner::class);
- }
- public function unit(): BelongsTo
- {
- return $this->belongsTo(Unit::class);
- }
- public function ownerPriceOperation(): BelongsTo
- {
- return $this->belongsTo(OwnerPriceOperation::class);
- }
- }
|