Merge branch 'development' into 'master'
Development See merge request empatnusabangsa/ppob/ppob-backend!135
This commit is contained in:
commit
7cb93db9fe
|
@ -115,8 +115,8 @@ export class ProductHistoryPriceService {
|
|||
const query = this.productHistoryPriceRepository
|
||||
.createQueryBuilder('product_history_price')
|
||||
.leftJoin('product_history_price.product', 'product')
|
||||
.where({ product: productId })
|
||||
.andWhere('product_history_price.endDate IS NULL');
|
||||
.where({ product: productId });
|
||||
// .andWhere('product_history_price.endDate IS NULL');
|
||||
|
||||
if (supplierId !== 'null' && supplierId) {
|
||||
query.andWhere('product.supplier = :supplierId', {
|
||||
|
|
|
@ -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)', {
|
||||
|
|
Loading…
Reference in New Issue
Block a user