diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp index df835378e..8cbb13819 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp @@ -128,6 +128,8 @@ String nodeNo=CurPage.getParameter("NodeNo"); jQuery(function(){ setItemValue(0,0,"flowunid","<%=flowunid%>"); + //设置商定罚息带出逾期罚息 + setItemValue(0,0,"AGREED_PENALTY",getItemValue(0,0,'DUN_PENALTY')); //判断其他应收和其他应退是否为空 var otherIn = getItemValue(0,getRow(),"OTHER_IN"); var otherOut = getItemValue(0,getRow(),"OTHER_OUT"); diff --git a/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java b/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java index 4a0329356..7f1ea2ca3 100644 --- a/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java +++ b/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java @@ -263,4 +263,19 @@ public class ColRelativeInfo { } return provices; } + //获取保证金余额 MARGIN_BALANCE + public static String getMarginBalance(String planID,String factMoney) throws JBOException{ + BizObject bo = JBOFactory.createBizObjectQuery(LC_FUND_PLAN.CLASS_NAME, "ID=:PLANID") + .setParameter("PLANID", planID).getSingleResult(false); + String PlanMoney = bo != null?bo.getAttribute("plan_money").getString():""; + if(PlanMoney!=""&&factMoney!=""){ + BigDecimal num = new BigDecimal(PlanMoney); + BigDecimal num1 = new BigDecimal(factMoney); + if(num.subtract(num1).doubleValue()>0){ + return num.subtract(num1).doubleValue()+""; + } + return "0"; + } + return "0"; + } }