- fix check-bill for si hemat
This commit is contained in:
parent
634f7946e5
commit
903880ed49
|
@ -31,7 +31,8 @@ export const doTransaction = async (
|
||||||
if (authorization != "") {
|
if (authorization != "") {
|
||||||
console.log("initoken", authorization)
|
console.log("initoken", authorization)
|
||||||
const options = {
|
const options = {
|
||||||
headers: {'Authorization': 'Bearer ' + authorization}
|
headers: {'Content-Type': 'application/json',
|
||||||
|
'Authorization': 'Bearer ' + authorization}
|
||||||
};
|
};
|
||||||
const data = {
|
const data = {
|
||||||
idtransaction: idtrx,
|
idtransaction: idtrx,
|
||||||
|
@ -52,7 +53,7 @@ export const doTransaction = async (
|
||||||
return res.data;
|
return res.data;
|
||||||
console.log('restranshemat', res)
|
console.log('restranshemat', res)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log('errtranshemat', err)
|
console.log('errtranshemat', err.response.data);
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1013,7 +1013,7 @@ export class TransactionService {
|
||||||
"",
|
"",
|
||||||
'INQUIRY'
|
'INQUIRY'
|
||||||
);
|
);
|
||||||
const parsingResponse = hitSupplier.split(' ');
|
// const parsingResponse = hitSupplier.split(' ');
|
||||||
|
|
||||||
if (supplier.code == 'Hemat') {
|
if (supplier.code == 'Hemat') {
|
||||||
hitSupplier = {
|
hitSupplier = {
|
||||||
|
@ -1026,6 +1026,8 @@ export class TransactionService {
|
||||||
msg: hitSupplier,
|
msg: hitSupplier,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
console.log('inidatacheckbill', hitSupplier)
|
||||||
|
console.log('statushitsupplier', hitSupplier.success)
|
||||||
if (!hitSupplier.success) {
|
if (!hitSupplier.success) {
|
||||||
status = statusTransaction[statusTransaction.FAILED];
|
status = statusTransaction[statusTransaction.FAILED];
|
||||||
throw new HttpException(
|
throw new HttpException(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user