diff --git a/src_tenwa/com/tenwa/flow/fund/fundcollection/FundIncomeMethod.java b/src_tenwa/com/tenwa/flow/fund/fundcollection/FundIncomeMethod.java index 8bda14ba3..b16af881e 100644 --- a/src_tenwa/com/tenwa/flow/fund/fundcollection/FundIncomeMethod.java +++ b/src_tenwa/com/tenwa/flow/fund/fundcollection/FundIncomeMethod.java @@ -616,10 +616,16 @@ public String getContactId(JBOTransaction tx) throws SQLException, Exception{ BizObjectManager bm_own = JBOFactory.getBizObjectManager("jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT", tx); BizObject bo_own = bm_own.createQuery("acc_name =:accName and account_purpose = 'default' and account_type = 'out_account' and state_ = '0010'") .setParameter("accName", subjectName).getSingleResult(false); + String payMode = "cgb"; + String bankName = bo_own.getAttribute("acc_bank").getString(); + if (bankName.indexOf("ΥΠΙΜ") > -1) { + payMode = "cmb"; + } JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LB_ACTUAL_PAYMENT_INFO_TEMP","update o set bank=:bank,account=:account,acc_number=:acc_number where flowunid = :flowunid ") - .setParameter("bank",bo_own.getAttribute("acc_bank").getString()) + .setParameter("bank",bankName) .setParameter("account",bo_own.getAttribute("acc_name").getString()) .setParameter("acc_number",bo_own.getAttribute("acc_number").getString()) + .setParameter("pay_mode",payMode) .setParameter("flowunid",flowunid) .executeUpdate(); }