add: unfinish product
This commit is contained in:
parent
0832308acd
commit
d8b9202fb7
|
@ -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', {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user