Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,6 @@ private void checkMonthlyPulseOrsDistribution(Integer ashaId,LocalDate startDate
}

private void addAshaIncentiveRecord(IncentiveActivity incentiveActivity, Integer ashaId,LocalDate startDate,LocalDate endDate) {
Timestamp timestamp = Timestamp.valueOf(LocalDateTime.now());

Timestamp startOfMonth = Timestamp.valueOf(startDate.atStartOfDay());
Timestamp endOfMonth = Timestamp.valueOf(endDate.atStartOfDay());
Expand All @@ -490,11 +489,11 @@ private void addAshaIncentiveRecord(IncentiveActivity incentiveActivity, Integer
if (record == null) {
record = new IncentiveActivityRecord();
record.setActivityId(incentiveActivity.getId());
record.setCreatedDate(timestamp);
record.setCreatedDate(endOfMonth);
record.setCreatedBy(userServiceRoleRepo.getUserNamedByUserId(ashaId));
record.setStartDate(timestamp);
record.setEndDate(timestamp);
record.setUpdatedDate(timestamp);
record.setStartDate(endOfMonth);
record.setEndDate(endOfMonth);
record.setUpdatedDate(endOfMonth);
record.setUpdatedBy(userServiceRoleRepo.getUserNamedByUserId(ashaId));
record.setBenId(0L);
record.setAshaId(ashaId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ public String saveSamDetails(List<SamDTO> samRequest, Integer userId, String use
samVisit.setVisitLabel(samDTO.getFields().getVisit_label());
samVisit.setWeightForHeightStatus(samDTO.getFields().getWeight_for_height_status());
samVisit.setIsChildReferredNrc(samDTO.getFields().getIs_child_referred_nrc());
samVisit.setIsChildAdmittedNrc(samDTO.getFields().getIs_child_admitted_nrc());
samVisit.setNrcAdmissionDate(samDTO.getFields().getNrc_admission_date());
samVisit.setIsChildDischargedNrc(samDTO.getFields().getIs_child_discharged_nrc());
samVisit.setNrcDischargeDate(samDTO.getFields().getNrc_discharge_date());
Expand Down
Loading