diff --git a/src_app_fresh/apx/com/amarsoft/als/base/awe/execute/method/BusinessCustomerMethod.java b/src_app_fresh/apx/com/amarsoft/als/base/awe/execute/method/BusinessCustomerMethod.java index 418178376..d58bcf3a1 100644 --- a/src_app_fresh/apx/com/amarsoft/als/base/awe/execute/method/BusinessCustomerMethod.java +++ b/src_app_fresh/apx/com/amarsoft/als/base/awe/execute/method/BusinessCustomerMethod.java @@ -16,9 +16,12 @@ public class BusinessCustomerMethod { .getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME); BizObject bo = bom.createQuery("certid=:certid and certtype='Ind01'") .setParameter("certid", certId).getSingleResult(false); - String customerid = bo.getAttribute("customerid").toString(); - if (null == bo) - return ""; + if (null == bo) { + bo = bom.createQuery("certid=:certid and certtype='Ent02'") + .setParameter("certid", certId).getSingleResult(false); + if(null == bo) + return ""; + } return bo.getAttribute("customerid").toString(); } }