debtDTO.setInsuranceAmount(postingRule.getInsuranceAmount()); debtDTO.setAdministrativeOfficeFeeAmount(postingRule.getAdministrativeOfficeFeeAmount()); debtDTO.setAdministrativeOfficeFeePenalty(postingRule.getAdministrativeOfficeFeePenaltyAmount());
final DateTime executionYearStartDate = executionYear.getBeginDateYearMonthDay() .toDateTimeAtMidnight(); final DateTime executionYearEndDate = executionYear.getEndDateYearMonthDay() .toDateTimeAtMidnight(); debtDTO.setInsuranceAmount(postingRule.getInsuranceAmount(executionYearStartDate, executionYearEndDate)); debtDTO.setAdministrativeOfficeFeeAmount(postingRule.getAdministrativeOfficeFeeAmount( executionYearStartDate, executionYearEndDate)); debtDTO.setAdministrativeOfficeFeePenalty(postingRule.getAdministrativeOfficeFeePenaltyAmount( executionYearStartDate, executionYearEndDate));
    private void fillInsuranceAndAdminOfficeFeePriceInformation(	    AdministrativeOffice administrativeOffice, GratuityLetterDTO debtDTO) {	final AdministrativeOfficeServiceAgreementTemplate serviceAgreementTemplate = administrativeOffice		.getServiceAgreementTemplate();	final AdministrativeOfficeFeeAndInsurancePR postingRule = (AdministrativeOfficeFeeAndInsurancePR) serviceAgreementTemplate		.findPostingRuleByEventType(EventType.ADMINISTRATIVE_OFFICE_FEE_INSURANCE);	debtDTO.setInsuranceAmount(postingRule.getInsuranceAmount());	debtDTO.setAdministrativeOfficeFeeAmount(postingRule.getAdministrativeOfficeFeeAmount());	debtDTO.setAdministrativeOfficeFeePenalty(postingRule.getAdministrativeOfficeFeePenaltyAmount());    }