From 1a53c600829e80037f7b85dd85ebf88ead4a0d4d Mon Sep 17 00:00:00 2001 From: denisdulici Date: Sun, 8 Oct 2017 23:22:05 +0300 Subject: [PATCH] fixed item-tax relationship --- app/Models/Item/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Item/Item.php b/app/Models/Item/Item.php index 9bfa68285..9694eea1e 100644 --- a/app/Models/Item/Item.php +++ b/app/Models/Item/Item.php @@ -44,9 +44,9 @@ class Item extends Model 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()