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