Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| WaybillPayoff | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| waybill | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| class WaybillPayoff extends Model | |
| { | |
| protected $fillable=[ | |
| 'waybill_id','total_expense','total_receivable','gross_margin','gross_profit_rate' | |
| ]; | |
| public function waybill(){ | |
| return $this->belongsTo('App\Waybill','waybill_id','id'); | |
| } | |
| } |