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