调整合同默认账户变更为多个影响银行科目的问题

This commit is contained in:
xiezhiwen 2022-01-13 11:17:50 +08:00
parent a1d6e9139d
commit 8cf931e700

View File

@ -309,9 +309,11 @@ public class CreateVoucherServiceImpl {
* 判断是否"银行\暂收款", 如果是更换科目为本方账户所选科目
*/
if("100208".equals(SUBJECT_CODE)) {
BizObject OWN = JBOFactory.createBizObjectQuery(OWN_ACCOUNT.CLASS_NAME,"FbSdk=:FbSdk and state_=:state_").setParameter("FbSdk", "Y").setParameter("state_", "0010").getSingleResult(false);
String acc_title = OWN.getAttribute("acc_title").getString();
sub=JBOFactory.createBizObjectQuery(LV_STACTS_CONFIG.CLASS_NAME,"id=:id").setParameter("id", acc_title).getSingleResult(false);
BizObject OWN = JBOFactory.createBizObjectQuery(OWN_ACCOUNT.CLASS_NAME,"ACC_NUMBER=:ACC_NUMBER").setParameter("ACC_NUMBER", param.get("ACC_NUMBER")).getSingleResult(false);
if(OWN!=null && !"".equals(OWN)) {
String acc_title = OWN.getAttribute("acc_title").getString();
sub=JBOFactory.createBizObjectQuery(LV_STACTS_CONFIG.CLASS_NAME,"id=:id").setParameter("id", acc_title).getSingleResult(false);
}
}
if("PZ2018072100000032".equals(VOUCHERNO) || "PZ2018071100000011".equals(VOUCHERNO)) {
if("1".equals(SORT_NUMBER)) {