Merge branch 'devops-staging' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend
This commit is contained in:
commit
096bbfc83f
|
@ -1481,17 +1481,19 @@ export class TransactionService {
|
||||||
dataTransaction.seri_number = callback['sn'];
|
dataTransaction.seri_number = callback['sn'];
|
||||||
console.log('msksn1', dataTransaction.seri_number);
|
console.log('msksn1', dataTransaction.seri_number);
|
||||||
} else {
|
} else {
|
||||||
|
console.log('entnewsn', 'msk');
|
||||||
const response = callback['message'];
|
const response = callback['message'];
|
||||||
const responseBaru = response.split(' ');
|
const responseBaru = response.split(' ');
|
||||||
|
|
||||||
dataTransaction.seri_number =
|
dataTransaction.seri_number =
|
||||||
responseBaru[10].length > 1 ? responseBaru[10] : responseBaru[9];
|
responseBaru[10].length > 1 ? responseBaru[10] : responseBaru[9];
|
||||||
|
console.log('isisn', dataTransaction.seri_number);
|
||||||
if (dataTransaction.seri_number == 'SN:') {
|
if (dataTransaction.seri_number == 'SN:') {
|
||||||
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;
|
||||||
const newRes = response.substring(subIndex);
|
const newRes = response.substring(subIndex);
|
||||||
|
console.log('newres1', newRes);
|
||||||
if (newRes.includes(' .')) {
|
if (newRes.includes(' .')) {
|
||||||
const splitRes = newRes.split(' .')
|
const splitRes = newRes.split(' .')
|
||||||
const serialNumber = splitRes[0];
|
const serialNumber = splitRes[0];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user