委外领料单生成凭证时提示“给定关键字不在字典中”
金蝶云社区-云社区用户Ox175387
云社区用户Ox175387
0人赞赏了该文章 1,350次浏览 未经作者许可,禁止转载编辑于2019年01月21日 20:46:35

金蝶公有云ERPV7.2.904.6
业务背景介绍:
客户从其他系统切换至金蝶云ERP,期初数中有部分物料是赠品或者是不核算成本的物料,因此期初金额为零,进行委外领料后,进行生产成本计算后,部分委外领料单的行明细成本金额为零。
在生成凭证时,出现如下情况:

不勾选勾选存货核算系统的参数选项“赠品、不良品、废品单据成本为零时允许结账”选项时,
生成凭证时,系统提示“模版编码009第1行业务分类对应单据的部分分录没有进行存货核算或核算后成本依旧为0”,无法生成凭证

勾选存货核算系统的参数选项“赠品、不良品、废品单据成本[i]为零时允许结账[/i]”选项时,

生成凭证报错:


详细的报错说明如下:
在 System.ThrowHelper.ThrowKeyNotFoundException()
在 System.Collections.Generic.Dictionary`2.get_Item(TKey key)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.TplCompile.TplCompiler.BuildLoadNotUnderInOutStockSQL(String entityKeys)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.TplCompile.TplCompiler.BuildLoadNotUnderInOutStockFunc()
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.PreCompileTemplateAction.DoAction()
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.AbstractBuildVoucherUnit.Do()
在 Kingdee.BOS.Core.BusinessPolicyModel.BusinessPolicyEngine.Do(OperateOption context)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherEngine.DoEveryTemplate(VchSelectBookInfor book, VchSelectSourceBillInfor sourceBill, VCHTemplateInfor vchTemplate, BuildResultManager resultManager, Int32 logBootLevel)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherEngine.DoEverySourceBill(VchSelectBookInfor book, VchSelectSourceBillInfor sourceBill, Int32& iBill, HashSet`1 glVchIds)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherEngine.BuildVoucher(BizVchMakeSchemeInfor buildVoucherScheme)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherService.BuildVoucher(Context ctx, BizVchMakeSchemeInfor buildVoucherScheme)
在 Kingdee.K3.FIN.GL.ServiceHelper.BuildVoucherServiceHelper.BuildVoucher(Context ctx, BizVchMakeSchemeInfor buildVoucherScheme)
在 Kingdee.K3.FIN.GL.Business.PlugIn.BuildVoucherServiceProgressPlugIn.GenerateVoucher()
总部的老师帮忙看看是什么原因?客户急着要在1月分上线,帮忙优先处理一些,感谢支持!

您的鼓励与嘉奖将成为创作者们前进的动力,如果觉得本文还不错,可以给予作者创作打赏哦!

请选择打赏金币数 *

10金币20金币30金币40金币50金币60金币
可用金币: 0