added default item type

This commit is contained in:
Denis Duliçi 2023-06-01 13:34:38 +03:00
parent 77fb7145c6
commit 315e10bb78

View File

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