Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
This commit is contained in:
commit
0f25659a70
|
@ -1488,7 +1488,17 @@ export class TransactionService {
|
||||||
responseBaru[10].length > 1 ? responseBaru[10] : responseBaru[9];
|
responseBaru[10].length > 1 ? responseBaru[10] : responseBaru[9];
|
||||||
|
|
||||||
if (dataTransaction.seri_number == 'SN:') {
|
if (dataTransaction.seri_number == 'SN:') {
|
||||||
dataTransaction.seri_number = responseBaru[11];
|
const s = 'SN: '
|
||||||
|
const index = response.indexOf(s);
|
||||||
|
const subIndex = index + s.length;
|
||||||
|
const newRes = response.substring(subIndex);
|
||||||
|
if (newRes.includes(' .')) {
|
||||||
|
const splitRes = newRes.split(' .')
|
||||||
|
const serialNumber = splitRes[0];
|
||||||
|
dataTransaction.seri_number = serialNumber
|
||||||
|
} else {
|
||||||
|
dataTransaction.seri_number = responseBaru[11];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user