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();