本文适用于以下国家/地区和语言区域设置的 Microsoft Dynamics NAV。
- 菲律宾 (ph)
- 印度在) (
- 印度尼西亚 (id)
- 新加坡 (sg)
- 泰国第 ()
- 马来西亚 (我的)
- 法语 (fr)
- English-Canada (en-ca)
- 英美 (en-us)
- Spanish-Mexico (es-mx)
- English-Australia (en-au)
- English-New Zealand (en-nz)
症状
假设你有一个项,它使用安装了本地化 Kitting 的 Microsoft Dynamics NAV 中的项跟踪代码。 然后, (包含该项的 BOM) 日记帐创建工具包材料清单。 此外,项的数量包含工具包 BOM 日记帐中项跟踪行中的十进制数字。 在这种情况下,发布工具包 BOM 日志时,会收到以下错误消息:
注意
处理项编号跟踪规范中 (基本) 的数量。 ItemNumber、Serial No.: SerialNumer、Lot 编号: LotNumber 当前为 QuantityA。 它必须是 QuantityB。
以下产品中会出现此问题:
- 安装了本地化工具包的 Microsoft Dynamics NAV 2009 R2
- Microsoft安装了本地化工具包的 Dynamics NAV 2009 Service Pack 1
- Microsoft安装了本地化工具包的 Dynamics NAV 5.0 Service Pack 1
解决方法
修补程序信息
Microsoft现在提供了受支持的修补程序。 但是,它仅用于更正本文中所述的问题。 仅将其应用于遇到此特定问题的系统。 此修补程序可能会收到其他测试。 因此,如果你没有受到此问题的严重影响,我们建议你等待下一个Microsoft Dynamics NAV 2009 Service Pack 或包含此修补程序的下一Microsoft Dynamics NAV 版本。
注意 在特殊情况下,如果 Microsoft Dynamics 和相关产品的技术支持专业人员确定特定更新将解决你的问题,则通常由支持呼叫产生的费用可能会被取消。 对于相关特定升级无法解决的其他支持问题和事项,将照常收取支持费用。
安装信息
Microsoft 的编程示例仅用于说明,不做任何明示或暗示的保证。 这包括但不限于特定用途的适销性或适用性的隐含保证。 本文假定你熟悉所演示的编程语言以及用于创建和调试过程的工具。 Microsoft 支持工程师可以帮助解释特定过程的功能,但他们不会修改这些示例以提供新增功能或构建步骤以满足你的特定需要。
注意 在安装此修补程序之前,请验证所有 Microsoft Navision 客户端用户是否已从系统注销。 这包括 Microsoft Navision Application Services (NAS) 客户端用户。 实现此修补程序时,应是唯一登录的客户端用户。
若要实现此修补程序,必须具有开发人员许可证。
建议为 Windows 登录窗口或数据库登录名窗口中的用户帐户分配“SUPER”角色 ID。 如果无法为用户帐户分配“SUPER”角色 ID,则必须验证该用户帐户是否具有以下权限:
- 要更改的 对象的“修改”权限。
- 系统对象 ID 5210 对象和系统对象 ID 9015 对象的 Execute 权限。
注意 除非必须执行数据修复,否则您不必拥有数据存储的权限。
代码更改
注意 在将修补程序应用到生产计算机之前,始终在受控环境中测试代码修复。
要解决此问题,请按照下列步骤操作:
更改 Kit Management codeunit (25000) RefreshTempKitBOM 函数中的代码,如下所示:
现有代码... BEGIN // Delete the following lines. "Extended Quantity" := "Quantity per" * BOMJnlLine."Quantity (Base)"; "Extended Quantity (Base)" := "Quantity per (Base)" * BOMJnlLine."Quantity (Base)"; // End of the lines. END; ...替换代码
... BEGIN // Add the following lines. "Extended Quantity" := ROUND("Quantity per" * BOMJnlLine."Quantity (Base)",0.00001); "Extended Quantity (Base)" := ROUND("Quantity per (Base)" * BOMJnlLine."Quantity (Base)",0.00001); // End of the lines. END; ...更改 Kit 管理代码单元中的 UpdateKitSales 函数中的代码 (25000) ,如下所示:
现有代码... BEGIN // Delete the following lines. "Extended Quantity" := "Quantity per" * SalesLine."Quantity (Base)"; "Extended Quantity (Base)" := "Quantity per (Base)" * SalesLine."Quantity (Base)"; // End of the lines. "Outstanding Quantity" := "Quantity per" * SalesLine."Outstanding Qty. (Base)"; ...替换代码
... BEGIN // Add the following lines. "Extended Quantity" := ROUND("Quantity per" * SalesLine."Quantity (Base)",0.00001); "Extended Quantity (Base)" := ROUND("Quantity per (Base)" * SalesLine."Quantity (Base)",0.00001); // End of the lines. "Outstanding Quantity" := "Quantity per" * SalesLine."Outstanding Qty. (Base)"; ...更改 Kit Management codeunit (25000) CheckResvKitSales 函数中的代码,如下所示:
现有代码... xKitSalesLine := KitSalesLine; // Delete the following lines. KitSalesLine."Extended Quantity" := KitSalesLine."Quantity per" * "Quantity (Base)"; KitSalesLine."Extended Quantity (Base)" := KitSalesLine."Quantity per (Base)" * "Quantity (Base)"; // End of the lines. KitSalesLine."Outstanding Quantity" := KitSalesLine."Quantity per" * "Outstanding Qty. (Base)"; ...替换代码
... xKitSalesLine := KitSalesLine; // Add the following lines. KitSalesLine."Extended Quantity" := ROUND(KitSalesLine."Quantity per" * "Quantity (Base)",0.00001); KitSalesLine."Extended Quantity (Base)" := ROUND(KitSalesLine."Quantity per (Base)" * "Quantity (Base)",0.00001); // End of the lines. KitSalesLine."Outstanding Quantity" := KitSalesLine."Quantity per" * "Outstanding Qty. (Base)"; ...更改“Kit Sales Line-Reserve”代码单元的 InitTrackingSpecification 函数中的代码 (25001) ,如下所示:
现有代码... SalesLine.GET("Document Type","Document No.","Document Line No."); // Delete the following lines. TrackingSpecification."Qty. to Invoice (Base)" := SalesLine."Qty. to Invoice (Base)" * "Quantity per (Base)"; TrackingSpecification."Qty. to Invoice" := SalesLine."Qty. to Invoice (Base)" * "Quantity per" ; TrackingSpecification."Quantity Invoiced (Base)" := SalesLine."Qty. Invoiced (Base)" * "Quantity per (Base)"; TrackingSpecification."Qty. to Handle (Base)" := SalesLine."Qty. to Ship (Base)" * "Quantity per (Base)";; TrackingSpecification."Qty. to Handle" := SalesLine."Qty. to Ship (Base)" * "Quantity per";; TrackingSpecification."Quantity Handled (Base)" := SalesLine."Qty. Shipped (Base)" * "Quantity per (Base)";; // End of the lines. END; ...替换代码
... SalesLine.GET("Document Type","Document No.","Document Line No."); // Add the following lines. TrackingSpecification."Qty. to Invoice (Base)" := ROUND(SalesLine."Qty. to Invoice (Base)" * "Quantity per (Base)",0.00001); TrackingSpecification."Qty. to Invoice" := ROUND(SalesLine."Qty. to Invoice (Base)" * "Quantity per",0.00001); TrackingSpecification."Quantity Invoiced (Base)" := ROUND(SalesLine."Qty. Invoiced (Base)" * "Quantity per (Base)",0.00001); TrackingSpecification."Qty. to Handle (Base)" := ROUND(SalesLine."Qty. to Ship (Base)" * "Quantity per (Base)",0.00001); TrackingSpecification."Qty. to Handle" := ROUND(SalesLine."Qty. to Ship (Base)" * "Quantity per",0.00001); TrackingSpecification."Quantity Handled (Base)" := ROUND(SalesLine."Qty. Shipped (Base)" * "Quantity per (Base)",0.00001); // End of the lines. END; ...
先决条件
必须安装以下产品之一才能应用此修补程序:
- 安装了本地化工具包的 Microsoft Dynamics NAV 2009 R2
- Microsoft安装了本地化工具包的 Dynamics NAV 2009 Service Pack 1
- Microsoft安装了本地化工具包的 Dynamics NAV 5.0 Service Pack 1
删除信息
无法删除此修补程序。
重启要求
安装修补程序并执行任何所需的数据修复后,退出 Microsoft Navision 客户端程序。 重启 Microsoft Navision 客户端程序。 无需重启 Windows Microsoft。
日期修复
安装修补程序后,可能需要修复数据损坏。 有关如何执行此操作的信息以及必须拥有的工具,请转到以下Microsoft网站:
https://mbs.microsoft.com/PartnerSource
状态
Microsoft 已确认在 "适用于" 部分中所列的 Microsoft 产品中存在问题。
注意这是一篇由 Microsoft 支持组织直接创建的“快速发布”文章。 本文所包含的信息是按原样提供的,以应对新出现的问题。 由于发布速度较快,这些材料可能包含印刷错误,无需通知即可随时修改。 有关其他注意事项,请参阅使用条款。