akaunting 3.0 (the last dance)
This commit is contained in:
@ -207,7 +207,7 @@ trait Import
|
||||
|
||||
public function getCategoryIdFromName($row, $type)
|
||||
{
|
||||
$category_id = Category::where('name', $row['category_name'])->pluck('id')->first();
|
||||
$category_id = Category::withSubCategory()->where('name', $row['category_name'])->pluck('id')->first();
|
||||
|
||||
if (!empty($category_id)) {
|
||||
return $category_id;
|
||||
|
Reference in New Issue
Block a user