Merge branch 'development' into 'devops-staging'

fixing: transaction create

See merge request empatnusabangsa/ppob/ppob-backend!95
This commit is contained in:
ilham dwi pratama 2022-01-09 17:14:47 +00:00
commit 6c2c9c82a9
2 changed files with 11 additions and 10 deletions

View File

@ -23,6 +23,7 @@ export class ProductHistoryPriceService {
const result = await this.productHistoryPriceRepository
.createQueryBuilder('product_history_price')
.leftJoin('product_history_price.product', 'product')
.leftJoinAndSelect('product_history_price.partner', 'partner')
.where({ product: productId })
.andWhere('product_history_price.endDate IS NULL')
.getMany();

View File

@ -489,17 +489,17 @@ export class TransactionService {
})
.join('');
const hitSupplier = await doTransaction(
orderTransactionDto.productCode,
orderTransactionDto.destination,
trxId,
);
// const hitSupplier = await doTransaction(
// orderTransactionDto.productCode,
// orderTransactionDto.destination,
// trxId,
// );
// const hitSupplier = {
// harga: product_price.price,
// success: true,
// msg: 'Berhasil',
// };
const hitSupplier = {
harga: 2000,
success: true,
msg: 'Berhasil',
};
this.logger.log({
responseAPISupplier: hitSupplier,