WaybillPayoff.php 388 B

12345678910111213141516171819
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\ModelTimeFormat;
  5. class WaybillPayoff extends Model
  6. {
  7. use ModelTimeFormat;
  8. protected $fillable=[
  9. 'waybill_id','total_expense','total_receivable','gross_margin','gross_profit_rate'
  10. ];
  11. public function waybill(){
  12. return $this->belongsTo('App\Waybill','waybill_id','id');
  13. }
  14. }