- fix check-bill for si hemat

This commit is contained in:
Fadli 2022-09-28 11:49:08 +07:00
parent 634f7946e5
commit 903880ed49
2 changed files with 6 additions and 3 deletions

View File

@ -31,7 +31,8 @@ export const doTransaction = async (
if (authorization != "") {
console.log("initoken", authorization)
const options = {
headers: {'Authorization': 'Bearer ' + authorization}
headers: {'Content-Type': 'application/json',
'Authorization': 'Bearer ' + authorization}
};
const data = {
idtransaction: idtrx,
@ -52,7 +53,7 @@ export const doTransaction = async (
return res.data;
console.log('restranshemat', res)
} catch (err) {
console.log('errtranshemat', err)
console.log('errtranshemat', err.response.data);
throw err;
}
};

View File

@ -1013,7 +1013,7 @@ export class TransactionService {
"",
'INQUIRY'
);
const parsingResponse = hitSupplier.split(' ');
// const parsingResponse = hitSupplier.split(' ');
if (supplier.code == 'Hemat') {
hitSupplier = {
@ -1026,6 +1026,8 @@ export class TransactionService {
msg: hitSupplier,
};
}
console.log('inidatacheckbill', hitSupplier)
console.log('statushitsupplier', hitSupplier.success)
if (!hitSupplier.success) {
status = statusTransaction[statusTransaction.FAILED];
throw new HttpException(