-fix transaction api error 401 for hemat
This commit is contained in:
@@ -589,10 +589,7 @@ export class TransactionService {
|
||||
})
|
||||
.join('');
|
||||
|
||||
const hitLoginHemat =
|
||||
supplier.code == 'Hemat' ?
|
||||
await doAuthorizeHemat('wndpt001', '3NHESIJ5', supplier) :
|
||||
'';
|
||||
const hitLoginHemat = await doAuthorizeHemat('wndpt001', '3NHESIJ5', supplier);
|
||||
|
||||
let hitSupplier = await doTransaction(
|
||||
orderTransactionDto.productCode,
|
||||
@@ -604,6 +601,7 @@ export class TransactionService {
|
||||
);
|
||||
// let hitSupplier;
|
||||
|
||||
console.log('iniresponsupplier', hitSupplier)
|
||||
if (supplier.code != 'IRS') {
|
||||
const parsingResponse = hitSupplier.split(' ');
|
||||
const newHitSupplier = {
|
||||
@@ -804,10 +802,7 @@ export class TransactionService {
|
||||
})
|
||||
.join('');
|
||||
|
||||
const hitLoginHemat =
|
||||
supplier.code == 'Hemat' ?
|
||||
await doAuthorizeHemat('wndpt001', '3NHESIJ5', supplier) :
|
||||
'';
|
||||
const hitLoginHemat = await doAuthorizeHemat('wndpt001', '3NHESIJ5', supplier);
|
||||
|
||||
let hitSupplier = await doTransaction(
|
||||
orderTransactionDto.productCode,
|
||||
@@ -950,10 +945,7 @@ export class TransactionService {
|
||||
let status;
|
||||
|
||||
try {
|
||||
const hitLoginHemat =
|
||||
supplier.code == 'Hemat' ?
|
||||
await doAuthorizeHemat('wndpt001', '3NHESIJ5', supplier) :
|
||||
'';
|
||||
const hitLoginHemat = await doAuthorizeHemat('wndpt001', '3NHESIJ5', supplier);
|
||||
|
||||
let hitSupplier = await doTransaction(
|
||||
`CEK${orderTransactionDto.productCode.slice(3)}`,
|
||||
|
||||
Reference in New Issue
Block a user