From 315e10bb784a54d86817a12a2619db0b4f92cbd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Thu, 1 Jun 2023 13:34:38 +0300 Subject: [PATCH] added default item type --- app/Traits/Import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Traits/Import.php b/app/Traits/Import.php index 129baf2d7..da1719998 100644 --- a/app/Traits/Import.php +++ b/app/Traits/Import.php @@ -323,7 +323,7 @@ trait Import return $contact->id; } - public function getItemIdFromName($row, $type) + public function getItemIdFromName($row, $type = 'product') { $item_id = Item::type($type)->where('name', $row['item_name'])->pluck('id')->first();