diff --git a/src/product/product.service.ts b/src/product/product.service.ts index 7fb6680..5f04229 100644 --- a/src/product/product.service.ts +++ b/src/product/product.service.ts @@ -292,7 +292,7 @@ export class ProductService { 'current_price.partner_id is NULL and current_price.end_date is NULL', ) .where( - `product.supplier_id = :supplier_id and status_history.status = 'ACTIVE'`, + `product.supplier_id = :supplier_id and status_history.status = 'ACTIVE' and status_history.partner_id is NULL`, { supplier_id: supplier, },