botp付款单生成凭证取报销单税额
业务场景: 费用报销单2行分录生成出纳付款, 付款单生成凭证金额取报销单税额
R20191127-1014
解决方法:使用弱关联函数取报销单税额,只能取到第一行分录的税额且翻倍,这种方式不可取。可变通使用sql报销单税额;
公式结果 = #sql_val(" select sum(FTAXAPPROVED) from T_BC_BizAccountBillEntry where fid in ( select FSourceBillEntryId from T_CAS_PaymentBillentry where fid='" + 付款单.付款单分录.ID + "' ) ");
您好老师,按照您的办法配置了DAP规则,但是生成凭证报错怎么回事呢?
错误信息:业务脚本配置错误 Expression:公式结果 = #sql_val("select sum(FTAXAPPROVED) from T_BC_BizAccountBillEntry where fid in ( select FSourceBillEntryId from T_CAS_PaymentBillentry where fid='" + 付款单.付款单分录.ID + " ' ) ");
Caused exception message is: null
Caused exception message is: translate sql exception, message is
parse error. detail message is :
Error: Unknowen char not read at (26/1) in Lexer.Next()
It was:
source sql is :
select sum(FTAXAPPROVED) from T_BC_BizAccountBillEntry where fid in ( select FSourceBillEntryId from T_CAS_PaymentBillentry where fid='mK0rvMUBSSe6kjd0FetaIJL5snE= ' )
错误详细堆栈信息:com.kingdee.bos.BOSException: 业务脚本配置错误 Expression:公式结果 = #sql_val("select sum(FTAXAPPROVED) from T_BC_BizAccountBillEntry where fid in ( select FSourceBillEntryId from T_CAS_PaymentBillentry where fid='" + 付款单.付款单分录.ID + " ' ) ");
谢谢
解决方法:使用弱关联函数取报销单税额,只能取到第一行分录的税额且翻倍,这种方式不可取。
可变通使用sql报销单税额;
公式结果 = #sql_val(" select sum(FTAXAPPROVED) from T_BC_BizAccountBillEntry where fid in
( select FSourceBillEntryId from T_CAS_PaymentBillentry where fid='" + 付款单.付款单分录.ID + "' ) ");
botp付款单生成凭证取报销单税额
本文2024-09-16 22:28:13发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-48322.html