Merge branch 'development' into 'devops-staging'
fixing: transaction create See merge request empatnusabangsa/ppob/ppob-backend!95
This commit is contained in:
commit
10e216074c
|
@ -23,6 +23,7 @@ export class ProductHistoryPriceService {
|
||||||
const result = await this.productHistoryPriceRepository
|
const result = await this.productHistoryPriceRepository
|
||||||
.createQueryBuilder('product_history_price')
|
.createQueryBuilder('product_history_price')
|
||||||
.leftJoin('product_history_price.product', 'product')
|
.leftJoin('product_history_price.product', 'product')
|
||||||
|
.leftJoinAndSelect('product_history_price.partner', 'partner')
|
||||||
.where({ product: productId })
|
.where({ product: productId })
|
||||||
.andWhere('product_history_price.endDate IS NULL')
|
.andWhere('product_history_price.endDate IS NULL')
|
||||||
.getMany();
|
.getMany();
|
||||||
|
|
|
@ -489,17 +489,17 @@ export class TransactionService {
|
||||||
})
|
})
|
||||||
.join('');
|
.join('');
|
||||||
|
|
||||||
const hitSupplier = await doTransaction(
|
// const hitSupplier = await doTransaction(
|
||||||
orderTransactionDto.productCode,
|
// orderTransactionDto.productCode,
|
||||||
orderTransactionDto.destination,
|
// orderTransactionDto.destination,
|
||||||
trxId,
|
// trxId,
|
||||||
);
|
// );
|
||||||
|
|
||||||
// const hitSupplier = {
|
const hitSupplier = {
|
||||||
// harga: product_price.price,
|
harga: 2000,
|
||||||
// success: true,
|
success: true,
|
||||||
// msg: 'Berhasil',
|
msg: 'Berhasil',
|
||||||
// };
|
};
|
||||||
|
|
||||||
this.logger.log({
|
this.logger.log({
|
||||||
responseAPISupplier: hitSupplier,
|
responseAPISupplier: hitSupplier,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user