生产退料单生成 凭证时报错,错误如下
name 'FXXX_FExpenseID' is not defined
at IronPython.Compiler.LookupGlobalInstruction.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
at IronPython.Compiler.PythonScriptCode.EvalWrapper(CodeContext ctx)
at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
at Kingdee.BOS.Scripting.PyExpressionEvaluator.Run(Expression expression, ExpressionContext context)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.GetSourceFieldValue.FormulaMode.GetExpressionValue(Context context, BOSExpression expression, ExpressionContext expressionContext)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.TplCompile.AcctMapItemCompiler.GetSourceItemFieldValue(Dictionary`2 dctFieldProperties, DynamicObject sourceRow)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.MappingHelper.MappingAccount.MappingValue(DynamicObject sourceRow, BizVchHeader vchHeader, BizVchEntryRow vchEntryRow)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.BuildVoucherLogic.BuildVoucherEntry.FillFieldValues(TplEntryCompiler tplEntryCompiler, Dictionary`2 dctFieldProperties, DynamicObject sourceRow, BizVchEntryRow vchEntryRow)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.BuildVoucherLogic.BuildVoucherEntry.DoOneVchEntry(TplEntryCompiler tplEntryCompiler)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.BuildVoucherLogic.BuildVoucherEntry.DoAction()
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.BuildBizVoucherAction.DoOneSourceBill(BuildSingleVoucherResult buildResult)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.BuildBizVoucherAction.DoBatch(List`1 currBatchBillIds)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.BuildBizVoucherAction.DoAction()
at Kingdee.BOS.Core.BusinessPolicyModel.BusinessPolicyEngine.Do(OperateOption context)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherEngine.DoEveryTemplate(VchSelectBookInfor book, VchSelectSourceBillInfor sourceBill, VCHTemplateInfor vchTemplate, BuildResultManager resultManager, Int32 logBootLevel)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherEngine.DoEverySourceBill(VchSelectBookInfor book, VchSelectSourceBillInfor sourceBill, Int32& iBill)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherEngine.BuildVoucher(BizVchMakeSchemeInfor buildVoucherScheme)
at Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherService.BuildVoucher(Context ctx, BizVchMakeSchemeInfor buildVoucherScheme)
at Kingdee.K3.FIN.GL.ServiceHelper.BuildVoucherServiceHelper.BuildVoucher(Context ctx, BizVchMakeSchemeInfor buildVoucherScheme)
at Kingdee.K3.FIN.GL.Business.PlugIn.BuildVoucherServiceProgressPlugIn.GenerateVoucher()
推荐阅读