【BOTP】业务脚本配置错误,执行方法错误,找不到指定的方法.对象类型: com.kingdee.eas.fi.cas.
问题描述:
出纳付款单生成凭证时报错,提示业务脚本配置错误,第3行执行出错:
if((__src.entries.contractEntrySeq == "-1" || __src.entries.contractEntrySeq == "-2") && __src.entries.contractEntrySeq != null && ( com.kingdee.bos.workflow.ext.app.Sql.getObject(__bosContext, "SELECT fnumber FROM T_BD_ACCOUNTVIEW where fid in (select floanaccountid from T_BC_ExpenseTypeSubjectMapping where fcompanyid='" + __src.company.id + "' and fexpensetypeid='" + __src.entries.expenseType.id + "')")).indexOf("2202") < 0) {formula_result = 0; }
执行方法错误,找不到指定的方法.对象类型: com.kingdee.eas.fi.cas.PaymentBillInfo, 方法名称: indexOf,
解决方案:
SELECT fnumber FROM T_BD_ACCOUNTVIEW where fid in (select floanaccountid from T_BC_ExpenseTypeSubjectMapping where fcompanyid='" + __src.company.id + "' and fexpensetypeid='" + __src.entries.expenseType.id + "')这里查出来为空导致
【BOTP】业务脚本配置错误,执行方法错误,找不到指定的方法.对象类型: com.kingdee.eas.fi.cas.
本文2024-09-16 21:56:56发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-44951.html