Applies ToDynamics NAV 2009

本文对所有国家/地区和语言的所有语言环境的 Microsoft 动态导航。

症状

当您运行订单的获得为翻转过帐凭证行函数在 Microsoft Dynamics 导航 2009 年销售退货单页中时,您将收到下面的错误消息︰

销售订单的发票行︰ 没有过滤器内销售发票行。

下列产品中会出现此问题︰

  • Microsoft Dynamics NAV 2009 R2

  • Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)

解决方案

修补程序信息

受支持的修补程序现已从 Microsoft 推出。然而,它仅用于纠正本文中描述的问题。它仅应用于正经历此特定问题的系统。此修补程序可能会接受进一步的测试。因此,如果这个问题没有对您造成严重的影响,我们建议您等待下一个 Microsoft Dynamics 导航 2009 服务包 或包含此修复程序的下一步的 Microsoft Dynamics 导航版本。注意: 在特殊情况下,可免收的支持电话,可免收如果技术支持专业人员对 Microsoft Dynamics 和相关的产品的费用确定某个特定的更新能够解决您的问题。照常收取支持费用将应用于其他支持问题和对于特定更新无法解决的问题。

安装信息

Microsoft 提供的编程示例仅用于说明,没有任何明示或暗示的担保。这包括但不限于适销性或特定用途适用性的暗示担保。本文假定您熟悉所演示的编程语言和用于创建和调试过程的工具。Microsoft 的支持工程师可以帮助解释某个特定过程的功能。但是,他们不会修改这些示例以提供额外的功能或构建过程以满足您的特定要求。注意:安装此修复程序之前,请验证所有 Microsoft Dynamics 导航客户端用户都注销系统。这包括 Microsoft Dynamics 导航应用程序服务器 (NAS) 服务。要实现此修补程序时,在登录的唯一客户端用户。若要实现此修补程序,必须使用开发人员许可证。我们建议在 Windows 登录窗口或数据库登录窗口中的用户帐户将分配该"超级"角色 id。如果不能将用户帐户分配成"超级"角色 ID,则必须验证用户帐户具有下列权限:

  • 您将更改该对象的修改权限。

  • 为系统对象 ID™ 5210对象和系统对象 ID 9015执行权限对象。

注意:您不需要具有对数据存储区的权限,除非您需要执行数据修复。

代码更改

注意:始终测试代码修复在受控环境中应用之前与您的生产计算机的修补程序。若要解决此问题,请执行以下步骤:

  1. 在采购中的IsFirstDocLine函数中的代码更改。收货行窗体 (5806),如下所示︰现有代码

    ...FILTERGROUP(2);          PurchRcptLine.COPYFILTERS(Rec);          FILTERGROUP(0);          PurchRcptLine.SETRANGE("Document No.","Document No.");// Delete the following line.         PurchRcptLine.FIND('-');// End of the deleted line.          TempPurchRcptLine := PurchRcptLine;          TempPurchRcptLine.INSERT;        END;        IF "Line No." = TempPurchRcptLine."Line No." THEN...

    替换代码

    ...FILTERGROUP(2);          PurchRcptLine.COPYFILTERS(Rec);          FILTERGROUP(0);          PurchRcptLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT PurchRcptLine.FINDFIRST THEN           EXIT(FALSE);// End of the added lines.          TempPurchRcptLine := PurchRcptLine;          TempPurchRcptLine.INSERT;        END;        IF "Line No." = TempPurchRcptLine."Line No." THEN...
  2. 更改获得 Pst.Doc RtrnRcptLn 子窗体在窗体中 (5853) 的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempReturnRcptLine.SETRANGE("Document No.","Document No.");        IF NOT TempReturnRcptLine.FINDFIRST THEN BEGIN          ReturnRcptLine.COPYFILTERS(Rec);          ReturnRcptLine.SETRANGE("Document No.","Document No.");// Delete the following line.         ReturnRcptLine.FINDSET;// End of the deleted line.          TempReturnRcptLine := ReturnRcptLine;          TempReturnRcptLine.INSERT;        END;...

    替换代码

    ...TempReturnRcptLine.SETRANGE("Document No.","Document No.");        IF NOT TempReturnRcptLine.FINDFIRST THEN BEGIN          ReturnRcptLine.COPYFILTERS(Rec);          ReturnRcptLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT ReturnRcptLine.FINDSET THEN           EXIT(FALSE);// End of the added lines.          TempReturnRcptLine := ReturnRcptLine;          TempReturnRcptLine.INSERT;        END;...
  3. 更改获得 Post.Doc S.Cr.MemoLn Sbfrm 窗体 (5854) 中的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempSalesCrMemoLine.SETRANGE("Document No.","Document No.");        IF NOT TempSalesCrMemoLine.FINDFIRST THEN BEGIN          SalesCrMemoLine.COPYFILTERS(Rec);          SalesCrMemoLine.SETRANGE("Document No.","Document No.");// Delete the following line.         SalesCrMemoLine.FIND('-');// End of the deleted line.          TempSalesCrMemoLine := SalesCrMemoLine;          TempSalesCrMemoLine.INSERT;        END;...

    替换代码

    ...TempSalesCrMemoLine.SETRANGE("Document No.","Document No.");        IF NOT TempSalesCrMemoLine.FINDFIRST THEN BEGIN          SalesCrMemoLine.COPYFILTERS(Rec);          SalesCrMemoLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT SalesCrMemoLine.FINDFIRST THEN           EXIT(FALSE);// End of the added lines.          TempSalesCrMemoLine := SalesCrMemoLine;          TempSalesCrMemoLine.INSERT;        END;...
  4. 更改获得 Pst.Doc RtrnShptLn 子窗体在窗体中 (5858) 的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempReturnShptLine.SETRANGE("Document No.","Document No.");        IF NOT TempReturnShptLine.FINDFIRST THEN BEGIN          ReturnShptLine.COPYFILTERS(Rec);          ReturnShptLine.SETRANGE("Document No.","Document No.");// Delete the following line.         ReturnShptLine.FINDSET;// End of the deleted line.          TempReturnShptLine := ReturnShptLine;          TempReturnShptLine.INSERT;        END;...

    替换代码

    ...TempReturnShptLine.SETRANGE("Document No.","Document No.");        IF NOT TempReturnShptLine.FINDFIRST THEN BEGIN          ReturnShptLine.COPYFILTERS(Rec);          ReturnShptLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT ReturnShptLine.FINDSET THEN           EXIT(FALSE);// End of the added lines.          TempReturnShptLine := ReturnShptLine;          TempReturnShptLine.INSERT;        END;...
  5. 更改获得 Post.Doc P.Cr.MemoLn Sbfrm 窗体 (5859) 中的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempPurchCrMemoLine.SETRANGE("Document No.","Document No.");        IF NOT TempPurchCrMemoLine.FINDFIRST THEN BEGIN          PurchCrMemoLine.COPYFILTERS(Rec);          PurchCrMemoLine.SETRANGE("Document No.","Document No.");// Delete the following line.         PurchCrMemoLine.FINDSET;// End of the deleted line.          TempPurchCrMemoLine := PurchCrMemoLine;          TempPurchCrMemoLine.INSERT;        END;...

    替换代码

    ...TempPurchCrMemoLine.SETRANGE("Document No.","Document No.");        IF NOT TempPurchCrMemoLine.FINDFIRST THEN BEGIN          PurchCrMemoLine.COPYFILTERS(Rec);          PurchCrMemoLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT PurchCrMemoLine.FINDSET THEN           EXIT(FALSE);// End of the added lines.          TempPurchCrMemoLine := PurchCrMemoLine;          TempPurchCrMemoLine.INSERT;        END;...
  6. 更改获取服务装运行窗体 (5994) 中的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempServiceShptLine.SETRANGE("Document No.","Document No.");        IF NOT TempServiceShptLine.FIND('-') THEN BEGIN          ServiceShptLine.COPYFILTERS(Rec);          ServiceShptLine.SETRANGE("Document No.","Document No.");// Delete the following line.         ServiceShptLine.FIND('-');// End of the deleted line.          TempServiceShptLine := ServiceShptLine;          TempServiceShptLine.INSERT;        END;        IF "Line No." = TempServiceShptLine."Line No." THEN...

    替换代码

    ...TempServiceShptLine.SETRANGE("Document No.","Document No.");        IF NOT TempServiceShptLine.FIND('-') THEN BEGIN          ServiceShptLine.COPYFILTERS(Rec);          ServiceShptLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT ServiceShptLine.FINDFIRST THEN           EXIT(FALSE);// End of the added lines.          TempServiceShptLine := ServiceShptLine;          TempServiceShptLine.INSERT;        END;        IF "Line No." = TempServiceShptLine."Line No." THEN...
  7. 更改服务行子窗 (6036) 中的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...IF NOT TempServLine.FIND('-') THEN BEGIN          ServLine.COPYFILTERS(Rec);          ServLine.SETRANGE("Document Type","Document Type");          ServLine.SETRANGE("Document No.","Document No.");// Delete the following line.         ServLine.FIND('-');// End of the deleted line.          TempServLine := ServLine;          TempServLine.INSERT;        END;        IF "Line No." = TempServLine."Line No." THEN...

    替换代码

    ...IF NOT TempServLine.FIND('-') THEN BEGIN          ServLine.COPYFILTERS(Rec);          ServLine.SETRANGE("Document Type","Document Type");          ServLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT ServLine.FINDFIRST THEN           EXIT(FALSE);// End of the added lines.          TempServLine := ServLine;          TempServLine.INSERT;        END;        IF "Line No." = TempServLine."Line No." THEN...
  8. 更改服务装运行子窗体窗体 (6037) 中的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempServShptLine.SETRANGE("Document No.","Document No.");        IF NOT TempServShptLine.FIND('-') THEN BEGIN          ServShptLine.COPYFILTERS(Rec);          ServShptLine.SETRANGE("Document No.","Document No.");// Delete the following line.         ServShptLine.FIND('-');// End of the deleted line.          TempServShptLine := ServShptLine;          TempServShptLine.INSERT;        END;        IF "Line No." = TempServShptLine."Line No." THEN...

    替换代码

    ...TempServShptLine.SETRANGE("Document No.","Document No.");        IF NOT TempServShptLine.FIND('-') THEN BEGIN          ServShptLine.COPYFILTERS(Rec);          ServShptLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT ServShptLine.FINDFIRST THEN           EXIT(FALSE);// End of the added lines.          TempServShptLine := ServShptLine;          TempServShptLine.INSERT;        END;        IF "Line No." = TempServShptLine."Line No." THEN...
  9. 更改服务发票行子窗体窗体 (6038) 中的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempServInvLine.SETRANGE("Document No.","Document No.");        IF NOT TempServInvLine.FIND('-') THEN BEGIN          ServInvLine.COPYFILTERS(Rec);          ServInvLine.SETRANGE("Document No.","Document No.");// Delete the following line.         ServInvLine.FIND('-');// End of the deleted line.          TempServInvLine := ServInvLine;          TempServInvLine.INSERT;        END;        EXIT("Line No." = TempServInvLine."Line No.");...

    替换代码

    ...TempServInvLine.SETRANGE("Document No.","Document No.");        IF NOT TempServInvLine.FIND('-') THEN BEGIN          ServInvLine.COPYFILTERS(Rec);          ServInvLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT ServInvLine.FINDFIRST THEN           EXIT(FALSE);// End of the added lines.          TempServInvLine := ServInvLine;          TempServInvLine.INSERT;        END;        EXIT("Line No." = TempServInvLine."Line No.");...
  10. 更改服务 Cr.备注行子窗体窗体 (6039) 中的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempServCrMemoLine.SETRANGE("Document No.","Document No.");        IF NOT TempServCrMemoLine.FIND('-') THEN BEGIN          ServCrMemoLine.COPYFILTERS(Rec);          ServCrMemoLine.SETRANGE("Document No.","Document No.");// Delete the following line.        ServCrMemoLine.FIND('-');// End of the deleted line.          TempServCrMemoLine := ServCrMemoLine;          TempServCrMemoLine.INSERT;        END;        EXIT("Line No." = TempServCrMemoLine."Line No.");...

    替换代码

    ...TempServCrMemoLine.SETRANGE("Document No.","Document No.");        IF NOT TempServCrMemoLine.FIND('-') THEN BEGIN          ServCrMemoLine.COPYFILTERS(Rec);          ServCrMemoLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT ServCrMemoLine.FINDFIRST THEN           EXIT(FALSE);// End of the added lines.          TempServCrMemoLine := ServCrMemoLine;          TempServCrMemoLine.INSERT;        END;        EXIT("Line No." = TempServCrMemoLine."Line No.");...
  11. 更改获得返回收据行窗体 (6638) 中的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempReturnRcptLine.SETRANGE("Document No.","Document No.");        IF NOT TempReturnRcptLine.FIND('-') THEN BEGIN          ReturnRcptLine.COPYFILTERS(Rec);          ReturnRcptLine.SETRANGE("Document No.","Document No.");// Delete the following line.         ReturnRcptLine.FIND('-');// End of the deleted line.          TempReturnRcptLine := ReturnRcptLine;          TempReturnRcptLine.INSERT;        END;        IF "Line No." = TempReturnRcptLine."Line No." THEN...

    替换代码

    ...TempReturnRcptLine.SETRANGE("Document No.","Document No.");        IF NOT TempReturnRcptLine.FIND('-') THEN BEGIN          ReturnRcptLine.COPYFILTERS(Rec);          ReturnRcptLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT ReturnRcptLine.FINDFIRST THEN           EXIT(FALSE);// End of the added lines.          TempReturnRcptLine := ReturnRcptLine;          TempReturnRcptLine.INSERT;        END;        IF "Line No." = TempReturnRcptLine."Line No." THEN...
  12. 更改获得返回装运行窗体 (6648) 中的IsFirstDocLine函数中的代码,如下所示︰现有代码

    ...TempReturnShptLine.SETRANGE("Document No.","Document No.");        IF NOT TempReturnShptLine.FIND('-') THEN BEGIN          ReturnShptLine.COPYFILTERS(Rec);          ReturnShptLine.SETRANGE("Document No.","Document No.");// Delete the following line.         ReturnShptLine.FIND('-');// End of the deleted line.          TempReturnShptLine := ReturnShptLine;          TempReturnShptLine.INSERT;        END;        IF "Line No." = TempReturnShptLine."Line No." THEN...

    替换代码

    ...TempReturnShptLine.SETRANGE("Document No.","Document No.");        IF NOT TempReturnShptLine.FIND('-') THEN BEGIN          ReturnShptLine.COPYFILTERS(Rec);          ReturnShptLine.SETRANGE("Document No.","Document No.");// Add the following lines.         IF NOT ReturnShptLine.FINDFIRST THEN           EXIT(FALSE);// End of the added lines.          TempReturnShptLine := ReturnShptLine;          TempReturnShptLine.INSERT;        END;        IF "Line No." = TempReturnShptLine."Line No." THEN...

系统必备组件

您必须具有要应用此修补程序的安装以下产品之一︰

  • Microsoft Dynamics NAV 2009 R2

  • Microsoft Dynamics 导航 2009 SP1

删除信息

您不能删除此修补程序。

状态

Microsoft 已经确认这是“适用于”一节中列出的 Microsoft 产品中的问题。

注意:这是直接从创建 Microsoft 支持部门内的"快速发布"的文章。此处包含的信息是作为为了响应新出现的问题而提供的。由于以使其可用的速度,而材料可能包含印刷错误,恕不另行通知,随时可能进行修订。其他考虑因素,请参阅使用条款

需要更多帮助?

需要更多选项?

了解订阅权益、浏览培训课程、了解如何保护设备等。

社区可帮助你提出和回答问题、提供反馈,并听取经验丰富专家的意见。