Update PelayananPasienServiceImpl.java

Perbaikan pesan produk belum mapping atau bukan termasuk diskon paket
This commit is contained in:
Salman Manoe 2023-08-18 23:34:46 +07:00
parent 572089bec8
commit 63bdf28615

View File

@ -2239,7 +2239,8 @@ public class PelayananPasienServiceImpl extends BaseVoServiceImpl implements Pel
.filter(d -> !listId.contains(d.getProduk().getId())).findFirst();
if (byProduk.isPresent())
throw new ServiceVOException("Produk " + byProduk.get().getProduk().getNamaProduk()
+ " tidak dapat didiskon karena belum dilakukan mapping");
+ " tidak dapat didiskon karena belum dilakukan mapping /" +
" tidak termasuk detail paket yang dapat diskon");
}
listPelayanan.forEach(p -> {
Optional<TagihanPendaftaranDto> dto = dtoList.stream().filter(d -> d.getNoRec().equals(p.getNoRec()))