penambahan informasi diskon pegawai outsourcing di menu rekapitulasi keringanan biaya tagihan
This commit is contained in:
parent
4e573ae881
commit
9dfae7af0b
@ -288,10 +288,11 @@ public interface PasienDaftarDao extends PagingAndSortingRepository<PasienDaftar
|
||||
|
||||
@Query("select distinct new Map(pd.noRec as norecPd," + "pd.strukPelayananId as norecSp,"
|
||||
+ "ps.namaPasien as namaPasien," + "pd.noRegistrasi as noRegistrasi,"
|
||||
+ "(case when pd.diskonPegawai = 1 then 'Pegawai RSAB' "
|
||||
+ "when pd.diskonPegawai = 2 then 'Keluarga Inti Pegawai RSAB' "
|
||||
+ "(case when pd.diskonPegawai = 1 then 'Pegawai RSAB-HK' "
|
||||
+ "when pd.diskonPegawai = 2 then 'Anggota Keluarga Inti Pegawai RSAB-HK' "
|
||||
+ "when pd.diskonPegawai = 3 then 'Penunggu Pasien Tidak Mampu Disetujui MPP' "
|
||||
+ "when pd.diskonPegawai = 4 then 'Pasien Indikasi Tertentu Disetujui MPP' end) as jenisDiskon,"
|
||||
+ "when pd.diskonPegawai = 4 then 'Pasien Indikasi Tertentu Disetujui MPP' "
|
||||
+ "when pd.diskonPegawai = 5 then 'Pegawai Outsourcing' end) as jenisDiskon,"
|
||||
+ "sum(pp.hargaJual * pp.jumlah) as totalTagihan," + "sum(pp.hargaDiscount * pp.jumlah) as totalDiskon,"
|
||||
+ "sum(pp.jasa) as biayaJasaFarmasi) " + "from PelayananPasien pp " + "inner join pp.pasienDaftar apd "
|
||||
+ "inner join apd.pasienDaftar pd " + "inner join pd.pasien ps " + "where pd.diskonPegawai in (1,2,3,4) "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user