- fix metro supplier when getting success from link aja serial number is missing

This commit is contained in:
Muhammad Fadli 2023-05-15 16:33:23 +07:00
parent 253f1af8f8
commit ae0a031d0a

View File

@ -1578,7 +1578,7 @@ export class TransactionService {
const response = callback['message'];
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 index = response.indexOf(s);
const subIndex = index + s.length;