- change status to product history status
This commit is contained in:
parent
f6d896cf8b
commit
74d1e6f422
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user