- 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 != "") {
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user