add: unfinish product

This commit is contained in:
ilham 2021-12-22 09:53:46 +07:00
parent 0832308acd
commit d8b9202fb7

View File

@ -70,7 +70,16 @@ export class ProductService {
'product.priceHistory', 'product.priceHistory',
'current_price', 'current_price',
'current_price.partner_id is null', 'current_price.partner_id is null',
); )
.select(['product.id'])
.addSelect([
'product.name',
'product.code',
'sub_categories.name',
'category.name',
]);
// .addSelect('current_price.price')
// .addSelect('(current_price.price + current_price.mark_up_price) as mark_up_price');
if (subCategories != 'null' && subCategories) { if (subCategories != 'null' && subCategories) {
baseQuery.andWhere('product.sub_categories_id = :id', { baseQuery.andWhere('product.sub_categories_id = :id', {