Update PelayananPasienServiceImpl.java
Perbaikan belum diskon seharusnya tidak bisa batal diskon
This commit is contained in:
parent
e1900ae6c2
commit
4cecd7c5e6
@ -324,7 +324,8 @@ public class PelayananPasienServiceImpl extends BaseVoServiceImpl implements Pel
|
||||
|
||||
result = "Batal diskon gagal, pelayanan sudah terverifikasi!";
|
||||
break;
|
||||
} else if (CommonUtil.isNotNullOrEmpty(pd.getDiskonPegawai()) && pd.getDiskonPegawai() == 0) {
|
||||
} else if (CommonUtil.isNullOrEmpty(pd.getDiskonPegawai())
|
||||
|| (CommonUtil.isNotNullOrEmpty(pd.getDiskonPegawai()) && pd.getDiskonPegawai() == 0)) {
|
||||
exception = true;
|
||||
|
||||
result = "Belum dilakukan diskon!";
|
||||
@ -367,7 +368,7 @@ public class PelayananPasienServiceImpl extends BaseVoServiceImpl implements Pel
|
||||
}
|
||||
}
|
||||
}
|
||||
pelayananPasienDao.save(layanan);
|
||||
// pelayananPasienDao.save(layanan);
|
||||
|
||||
/*
|
||||
* Update Flag Jenis Diskon Pasien Daftar
|
||||
@ -375,7 +376,7 @@ public class PelayananPasienServiceImpl extends BaseVoServiceImpl implements Pel
|
||||
for (PasienDaftar pd : pendaftaran) {
|
||||
pd.setDiskonPegawai(0);
|
||||
}
|
||||
pasienDaftarDao.save(pendaftaran);
|
||||
// pasienDaftarDao.save(pendaftaran);
|
||||
|
||||
result = "Batal diskon berhasil!";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user