fix: transaction supplier hemat
This commit is contained in:
parent
30713bebec
commit
5f8212e5c5
|
@ -601,9 +601,15 @@ export class TransactionService {
|
|||
);
|
||||
// let hitSupplier;
|
||||
|
||||
console.log('iniresponsupplier', hitSupplier)
|
||||
if (supplier.code != 'IRS') {
|
||||
console.log('iniresponsupplierharga', hitSupplier)
|
||||
console.log('iniresponsupplier', hitSupplier.harga)
|
||||
console.log(supplier.code, 'sdkfjsd');
|
||||
console.log(product_price, 'price');
|
||||
|
||||
|
||||
if (supplier.code == 'metro') {
|
||||
const parsingResponse = hitSupplier.split(' ');
|
||||
console.log('parsingResponse', parsingResponse)
|
||||
const newHitSupplier = {
|
||||
success: hitSupplier.includes('diproses'),
|
||||
harga: parseInt(
|
||||
|
@ -614,10 +620,25 @@ export class TransactionService {
|
|||
|
||||
hitSupplier = newHitSupplier;
|
||||
|
||||
if (orderTransactionDto.bill_trx_id !== null) {
|
||||
hitSupplier.harga = product_price.price;
|
||||
}
|
||||
} else if (supplier.code == 'hemat') {
|
||||
const newHitSupplier = {
|
||||
success: hitSupplier.success,
|
||||
harga: product_price.price,
|
||||
msg: hitSupplier.msg,
|
||||
};
|
||||
|
||||
hitSupplier = newHitSupplier;
|
||||
|
||||
if (orderTransactionDto.bill_trx_id !== null) {
|
||||
hitSupplier.harga = product_price.price;
|
||||
}
|
||||
}
|
||||
|
||||
console.log(hitSupplier, 'newhitSupplier');
|
||||
|
||||
// const hitSupplier = {
|
||||
// harga: 2000,
|
||||
// success: true,
|
||||
|
|
Loading…
Reference in New Issue
Block a user