add: orderby in product
This commit is contained in:
parent
ddda6020a3
commit
484b534322
|
@ -181,7 +181,8 @@ export class ProductService {
|
||||||
.addSelect('current_price.price')
|
.addSelect('current_price.price')
|
||||||
.addSelect(
|
.addSelect(
|
||||||
'(current_price.price + current_price.mark_up_price) as mark_up_price',
|
'(current_price.price + current_price.mark_up_price) as mark_up_price',
|
||||||
);
|
)
|
||||||
|
.orderBy('product.code');
|
||||||
|
|
||||||
if (subCategories && filterSubCategories.length > 0) {
|
if (subCategories && filterSubCategories.length > 0) {
|
||||||
baseQuery.where('product.sub_categories_id IN (:...subCategoryId)', {
|
baseQuery.where('product.sub_categories_id IN (:...subCategoryId)', {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user