Merge branch 'dev/remun/kontrak' into dev/no-cron

This commit is contained in:
Salman Manoe 2024-03-28 08:20:52 +07:00
commit c514c2a96b
2 changed files with 6 additions and 5 deletions

View File

@ -9,8 +9,6 @@ public final class Master {
public static final short KODE_PROFILE = 0;
public static final String KONSUL = "konsul";
public static final String[] KONSUL_VISIT = { "konsul", "visit" };
public static final Double MENIT_KERJA_HARIAN = 7.5 * 60.0;
public static final Double MENIT_KERJA_RAMADHAN = 6.0 * 60.0;
public static final boolean STATUS_ENABLE_FALSE = false;
public static final boolean STATUS_ENABLE_TRUE = true;
public static final String TIDAK_ADA_PERUBAHAN_DATA = "Tidak Ada Perubahan Data!";

View File

@ -152,6 +152,7 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
public LogbookKinerjaVO update(LogbookKinerjaVO vo) throws JpaSystemException, ServiceVOException {
DateFormat mf = new SimpleDateFormat("yyyy-MM");
double menitKerjaHarian = Double.parseDouble(GetSettingDataFixed("menitKerjaHarian"));
LogbookKinerja logbookKinerjaLama = logbookKinerjaDao.findOne(vo.getNoRec());
Pegawai pegawai = pegawaiConverter.transferVOToModel(vo.getPegawai(), new Pegawai());
@ -165,7 +166,7 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
logbookKinerjaBaru.setIndikatorKinerja(indikatorKinerja);
if (vo.getIndikatorKinerja().getId().equals(Master.IndikatorKinerja.PEMENUHAN_JAM_KERJA)) {
Integer targetHariKerja = hitungTargetHariKerja(vo.getBulan());
Double targetJamKerja = targetHariKerja.doubleValue() * Master.MENIT_KERJA_HARIAN;
Double targetJamKerja = targetHariKerja.doubleValue() * menitKerjaHarian;
logbookKinerjaBaru.setTarget(targetJamKerja);
}
@ -408,6 +409,8 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
Date start = DateUtil.startMonth(bulan);
Date end = DateUtil.endMonth(bulan);
double menitKerjaHarian = Double.parseDouble(GetSettingDataFixed("menitKerjaHarian"));
double menitKerjaRamadhan = Double.parseDouble(GetSettingDataFixed("menitKerjaRamadhan"));
List<Kalender> targetPresensi = kalenderDao.getTargetKerja(start, end);
int jumlahHariKerjaHarian = 0;
int jumlahHariKerjaRamadhan = 0;
@ -420,8 +423,8 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
}
}
result += (double) jumlahHariKerjaHarian * Master.MENIT_KERJA_HARIAN;
result += (double) jumlahHariKerjaRamadhan * Master.MENIT_KERJA_RAMADHAN;
result += (double) jumlahHariKerjaHarian * menitKerjaHarian;
result += (double) jumlahHariKerjaRamadhan * menitKerjaRamadhan;
return result;
}