Query Fixed

This commit is contained in:
devansh bawari 2021-03-15 20:06:58 +05:30
parent 078d7e39dc
commit b5b1b0453c
1 changed files with 1 additions and 1 deletions

View File

@ -836,7 +836,7 @@ class ProductRepository extends Repository
->selectRaw('SUM(' . DB::getTablePrefix() . 'product_inventories.qty)')
->from('product_flat')
->leftJoin('product_inventories', 'product_inventories.product_id', '=', 'product_flat.product_id')
->whereRaw(DB::getTablePrefix() . 'product_flat.parent_id = ps.id');
->whereRaw(DB::getTablePrefix() . 'product_flat.parent_id = variants.id');
}, '>', 0);
});
});