add: order by in product retail
This commit is contained in:
parent
9f0536e2d1
commit
876842eb53
|
@ -263,9 +263,8 @@ export class ProductService {
|
|||
)
|
||||
.select(['product.id'])
|
||||
.addSelect(['product.name', 'product.code', 'sub_categories.name'])
|
||||
.addSelect(
|
||||
'(current_price.price + current_price.mark_up_price) as price',
|
||||
);
|
||||
.addSelect('(current_price.price + current_price.mark_up_price) as price')
|
||||
.orderBy('price', 'ASC');
|
||||
|
||||
if (subCategories != 'null' && subCategories) {
|
||||
baseQuery.andWhere('product.sub_categories_id = :id', {
|
||||
|
|
Loading…
Reference in New Issue
Block a user