- fix list order prod in b2c

This commit is contained in:
Fadli 2022-08-30 17:39:16 +07:00
parent c58e3f281b
commit 2e9475e83e

View File

@ -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,
},