diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp index 2625c1299..09253a440 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp @@ -900,8 +900,10 @@ function changeSettleMethod2(){ } document.all( 'A_Group_0020' ).style.display = 'none'; showItem(0,"SUBSECTION_CONDIG",'none'); + showItem(0,"COMPREHENSIVE_RATE",'none'); if ( settleMethod === 'segmented_financing' ) { showItem(0,"SUBSECTION_CONDIG",'block'); + showItem(0,"COMPREHENSIVE_RATE",'block'); document.all( 'A_Group_0020' ).style.display = 'block'; var param = 'CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>'; AsControl.OpenView( '/Accounting/LoanSimulation/LCCalcSubsectionInfoTempList.jsp', param, 'subsection_list' ); diff --git a/calc/com/tenwa/reckon/executor/CashFlowExecutor.java b/calc/com/tenwa/reckon/executor/CashFlowExecutor.java index de8795fc7..628782c26 100644 --- a/calc/com/tenwa/reckon/executor/CashFlowExecutor.java +++ b/calc/com/tenwa/reckon/executor/CashFlowExecutor.java @@ -57,10 +57,19 @@ public class CashFlowExecutor { dateList.add(cash.get("PLAN_DATE")); } if ("subsectionRate".equals(calcType) ){ - String cleanLeaseMoney = cb.getCleanLeaseMoney(); - netList.set(0,"-"+cleanLeaseMoney); + String subsectionSql = "select IS_BALANCE_LENDING,DISCOUNT,DISCOUNT_COLLECTION_PERIOD from lc_calc_subsection_info_temp where FLOWUNID='"+tcb.getDocId()+"'"; + List> subsectionData =DataOperatorUtil.getDataBySql(tx, subsectionSql, null); + BigDecimal tempMoney = BigDecimal.ZERO; + int coss = 0; + for (Map subsection :subsectionData) { + String ibl = subsection.get("IS_BALANCE_LENDING"); + if(!"Y".equals(ibl)){ + coss = Integer.parseInt( subsection.get("DISCOUNT_COLLECTION_PERIOD") ); + } + tempMoney = new BigDecimal( netList.get(coss) ); + netList.set(coss, ( tempMoney.subtract( new BigDecimal( subsection.get("DISCOUNT") ) ) ).toString() ); + } } - String irr=""; if("STAGE_IRR".equals(cb.getIrrType())){//°´ÆÚIRR BigDecimal issueRate=IRRCalculateUtil.getIRR2(netList);