- change status to product history status

This commit is contained in:
Fadli 2022-08-30 00:18:17 +07:00
parent f6d896cf8b
commit 74d1e6f422

View File

@ -368,7 +368,11 @@ export class ProductService {
'history_status', 'history_status',
'history_status.deleted_at is NULL' 'history_status.deleted_at is NULL'
) )
.where(`history_status.status = 'ACTIVE'`) .where(`history_status.partner_id = :id_partner and history_status.status = 'ACTIVE'`,
{
id_partner: user.partner.id,
},
)
.select(['product.id']) .select(['product.id'])
.addSelect([ .addSelect([
'product.name', 'product.name',