OwnerStoreOutFeeReport.php 858 B

12345678910111213141516171819202122232425262728293031323334353637
  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 OwnerStoreOutFeeReport extends Model
  7. {
  8. use ModelLogChanging;
  9. public $fillable = ['owner_bill_report_id', 'owner_price_operation_id', 'counting_month', 'step', 'unit_id', 'unit_price', 'amount', 'fee', 'owner_id'];
  10. public $timestamps = false;
  11. public function ownerBillReport(): BelongsTo
  12. {
  13. return $this->belongsTo(OwnerBillReport::class);
  14. }
  15. public function ownerPriceOperation(): BelongsTo
  16. {
  17. return $this->belongsTo(OwnerPriceOperation::class);
  18. }
  19. public function unit(): BelongsTo
  20. {
  21. return $this->belongsTo(Unit::class);
  22. }
  23. public function owner(): BelongsTo
  24. {
  25. return $this->belongsTo(Owner::class);
  26. }
  27. }