WaybillPayoff.php 331 B

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