Merge branch 'master' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-production

This commit is contained in:
Muhammad Fadli 2023-08-31 21:37:40 +07:00
commit a8e7a7d2a0

View File

@ -1571,14 +1571,15 @@ export class TransactionService {
dataTransaction.seri_number = callback['data']['serial_number'];
}
if (callback['hrg'] != undefined || callback['hrg'] != 'undefined' || callback['hrg'] != null) {
if (callback['hrg'] != undefined || callback['hrg'] != 'undefined') {
console.log('mskcbhargahemat', 'msk')
let numberAsString = callback['hrg'].toString();
let numberWithoutDecimal = numberAsString.replace('.', '');
let integerNumber = parseInt(numberWithoutDecimal);
dataProductHistoryPrice.price = integerNumber;
} else if (callback['data']['additional']['harga'] != undefined || callback['data']['additional']['harga'] != 'undefined' || callback['data']['additional']['harga'] != null) {
} else if (callback['data']['additional']['harga'] != undefined || callback['data']['additional']['harga'] != 'undefined') {
console.log('mskcbhargahemat1', 'msk')
let numberAsString = callback['data']['additional']['harga'].toString();
let numberWithoutDecimal = numberAsString.replace('.', '');