fixed item-tax relationship

This commit is contained in:
denisdulici 2017-10-08 23:22:05 +03:00
parent 64bf8c78b2
commit 1a53c60082

View File

@ -44,9 +44,9 @@ class Item extends Model
return $this->belongsTo('App\Models\Setting\Category'); return $this->belongsTo('App\Models\Setting\Category');
} }
public function taxes() public function tax()
{ {
return $this->hasMany('App\Models\Setting\Tax'); return $this->belongsTo('App\Models\Setting\Tax');
} }
public function bills() public function bills()