| Code Coverage
| Classes and Traits | Functions and Methods | Lines
Total | 100.00% covered (success) | 100.00% | 1 / 1 | 100.00% covered (success) | 100.00% | 1 / 1 | CRAP | 100.00% covered (success) | 100.00% | 1 / 1
WaybillPayoff | 100.00% covered (success) | 100.00% | 1 / 1 | 100.00% covered (success) | 100.00% | 1 / 1 | 1 | 100.00% covered (success) | 100.00% | 1 / 1
waybill | 100.00% covered (success) | 100.00% | 1 / 1 | 1 | 100.00% covered (success) | 100.00% | 1 / 1

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