add: orderby in product

This commit is contained in:
ilham 2022-02-27 09:10:54 +07:00
parent ddda6020a3
commit 484b534322

View File

@ -181,7 +181,8 @@ export class ProductService {
.addSelect('current_price.price')
.addSelect(
'(current_price.price + current_price.mark_up_price) as mark_up_price',
);
)
.orderBy('product.code');
if (subCategories && filterSubCategories.length > 0) {
baseQuery.where('product.sub_categories_id IN (:...subCategoryId)', {