added default item type
This commit is contained in:
parent
77fb7145c6
commit
315e10bb78
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user