Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging

This commit is contained in:
Fadli 2022-08-30 17:39:54 +07:00
commit f0145890fa

View File

@ -292,7 +292,7 @@ export class ProductService {
'current_price.partner_id is NULL and current_price.end_date is NULL', 'current_price.partner_id is NULL and current_price.end_date is NULL',
) )
.where( .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, supplier_id: supplier,
}, },