- change status to product history status
This commit is contained in:
parent
b0ff71cf41
commit
38935e40a9
|
@ -366,11 +366,9 @@ export class ProductService {
|
|||
'product.currentStatus',
|
||||
'product.statusHistory',
|
||||
'history_status',
|
||||
'history_status.deleted_at is NULL and history_status.partner_id = :id_partner and history_status.status = ACTIVE',
|
||||
{
|
||||
id_partner: user.partner.id,
|
||||
},
|
||||
'history_status.deleted_at is NULL'
|
||||
)
|
||||
.where(`history_status.status = 'ACTIVE'`)
|
||||
.select(['product.id'])
|
||||
.addSelect([
|
||||
'product.name',
|
||||
|
|
Loading…
Reference in New Issue
Block a user