- fix metro supplier when getting success from link aja serial number is missing
This commit is contained in:
parent
253f1af8f8
commit
ae0a031d0a
|
@ -1578,7 +1578,7 @@ export class TransactionService {
|
||||||
const response = callback['message'];
|
const response = callback['message'];
|
||||||
const responseBaru = response.split(' ');
|
const responseBaru = response.split(' ');
|
||||||
|
|
||||||
if (supplier.code == 'metro' && response.includes('PLN')) {
|
if (supplier.code == 'metro' && response.includes('PLN') || response.includes('LINK AJA')) {
|
||||||
const s = 'SN: '
|
const s = 'SN: '
|
||||||
const index = response.indexOf(s);
|
const index = response.indexOf(s);
|
||||||
const subIndex = index + s.length;
|
const subIndex = index + s.length;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user