Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
This commit is contained in:
commit
70fd1e06a7
|
@ -1485,10 +1485,7 @@ export class TransactionService {
|
||||||
const response = callback['message'];
|
const response = callback['message'];
|
||||||
const responseBaru = response.split(' ');
|
const responseBaru = response.split(' ');
|
||||||
|
|
||||||
dataTransaction.seri_number =
|
if (supplier.code == 'metro' && response.includes('PLN')) {
|
||||||
responseBaru[10].length > 1 ? responseBaru[10] : responseBaru[9];
|
|
||||||
console.log('isisn', dataTransaction.seri_number);
|
|
||||||
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;
|
||||||
|
@ -1499,7 +1496,13 @@ export class TransactionService {
|
||||||
const serialNumber = splitRes[0];
|
const serialNumber = splitRes[0];
|
||||||
console.log('msknewsn', serialNumber);
|
console.log('msknewsn', serialNumber);
|
||||||
dataTransaction.seri_number = serialNumber
|
dataTransaction.seri_number = serialNumber
|
||||||
} else {
|
}
|
||||||
|
} else {
|
||||||
|
dataTransaction.seri_number =
|
||||||
|
responseBaru[10].length > 1 ? responseBaru[10] : responseBaru[9];
|
||||||
|
console.log('isisn', dataTransaction.seri_number);
|
||||||
|
|
||||||
|
if (dataTransaction.seri_number == 'SN:') {
|
||||||
dataTransaction.seri_number = responseBaru[11];
|
dataTransaction.seri_number = responseBaru[11];
|
||||||
console.log('msknewsn2', responseBaru[11]);
|
console.log('msknewsn2', responseBaru[11]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user