症状
当您从客户或供应商的分类帐条目应用普通付款和物料在西班牙语版本的 Microsoft Dynamics 导航 2009 年安装KB3034441后,已过帐的总帐条目引用两方面都相同的帐户,这是不正确。按照在代码更改部分,若要解决此问题的步骤。下列产品中发生此问题︰
-
西班牙语版本的 Microsoft Dynamics 导航 2009 R2
-
西班牙语版本的 Microsoft Dynamics 导航 2009 SP1
解决方案
修补程序信息
受支持的修补程序现已从 Microsoft 推出。然而,它仅用于纠正本文中描述的问题。它仅应用于正经历此特定问题的系统。此修补程序可能会接受进一步的测试。因此,如果这个问题没有对您造成严重的影响,我们建议您等待下一个 Microsoft Dynamics 导航 2009 服务包 或包含此修复程序的下一步的 Microsoft Dynamics 导航版本。
注意: 在特殊情况下,可免收的支持电话,可免收如果技术支持专业人员对 Microsoft Dynamics 和相关的产品的费用确定某个特定的更新能够解决您的问题。照常收取支持费用将应用于其他支持问题和对于特定更新无法解决的问题。安装信息
Microsoft 提供的编程示例仅用于说明,没有任何明示或暗示的担保。这包括但不限于适销性或特定用途适用性的暗示担保。本文假定您熟悉所演示的编程语言和用于创建和调试过程的工具。Microsoft 的支持工程师可以帮助解释某个特定过程的功能。但是,他们不会修改这些示例以提供额外的功能或构建过程以满足您的特定要求。
注意:安装此修复程序之前,请验证所有 Microsoft Dynamics 导航客户端用户都注销系统。这包括 Microsoft Dynamics 导航应用程序服务器 (NAS) 服务。要实现此修补程序时,在登录的唯一客户端用户。 若要实现此修补程序,必须使用开发人员许可证。 我们建议在 Windows 登录窗口或数据库登录窗口中的用户帐户将分配该"超级"角色 id。如果不能将用户帐户分配成"超级"角色 ID,则必须验证用户帐户具有下列权限:-
您将更改该对象的修改权限。
-
为系统对象 ID™ 5210对象和系统对象 ID 9015执行权限
对象。
注意:您不需要具有对数据存储区的权限,除非您需要执行数据修复。
代码更改
注意:始终测试代码修复在受控环境中应用之前与您的生产计算机的修补程序。
若要解决此问题,请执行以下步骤:-
更改代码在PostDtldCustLedgEntries函数中 Gen.Jnl。-开机自检线路 codeunit (12),如下所示︰
现有代码 1...LOCAL PROCEDURE PostDtldCustLedgEntries@46(GenJnlLine2@1000 : Record 81;VAR DtldCVLedgEntryBuf@1001 : Record 383;CustPostingGr@1002 : Record 92;GLSetup@1003 : Record 98;NextTransactionNo@1004 : Integer;CustLedgEntryInserted@1012 : Boolean);
VAR DtldCustLedgEntry@1005 : Record 379; Currency@1007 : Record 4; GenPostingSetup@1008 : Record 252; TotalAmountLCY@1009 : Decimal; TotalAmountAddCurr@1010 : Decimal; PaymentDiscAcc@1011 : Code[20]; DtldCustLedgEntryNoOffset@1006 : Integer; PaymentTolAcc@1013 : Code[20]; ...替换代码 1
...LOCAL PROCEDURE PostDtldCustLedgEntries@46(GenJnlLine2@1000 : Record 81;VAR DtldCVLedgEntryBuf@1001 : Record 383;CustPostingGr@1002 : Record 92;GLSetup@1003 : Record 98;NextTransactionNo@1004 : Integer;CustLedgEntryInserted@1012 : Boolean);
VAR DtldCustLedgEntry@1005 : Record 379; Currency@1007 : Record 4; GenPostingSetup@1008 : Record 252; // Add the following line. DtldCustLedgEntry3@1100044 : Record 379; // End of the added line. TotalAmountLCY@1009 : Decimal; TotalAmountAddCurr@1010 : Decimal; PaymentDiscAcc@1011 : Code[20]; DtldCustLedgEntryNoOffset@1006 : Integer; PaymentTolAcc@1013 : Code[20]; ...现有代码 2
...ReceivableAccAmtLCY@1100001 : Decimal;
ReceivableAccAmtAddCurr@1100000 : Decimal; DtldCustLedgEntry2@1100003 : TEMPORARY Record 379; ExistDtldCVLedgEntryBuf@1000003 : Boolean; FindBill@1100004 : Boolean; BEGIN TotalAmountLCY := 0; TotalAmountAddCurr := 0; PositiveLCYAppAmt := 0; PositiveACYAppAmt := 0; ...替换代码 2
...ReceivableAccAmtLCY@1100001 : Decimal;
ReceivableAccAmtAddCurr@1100000 : Decimal; DtldCustLedgEntry2@1100003 : TEMPORARY Record 379; ExistDtldCVLedgEntryBuf@1000003 : Boolean; FindBill@1100004 : Boolean; // Add the following line. EntryUnapplied@1100051 : Boolean; // End of the added line. BEGIN TotalAmountLCY := 0; TotalAmountAddCurr := 0; PositiveLCYAppAmt := 0; PositiveACYAppAmt := 0; ...现有代码 3
... TotalAmountAddCurr := 0;
PositiveLCYAppAmt := 0; PositiveACYAppAmt := 0; NegativeLCYAppAmt := 0; NegativeACYAppAmt := 0; IF GenJnlLine2."Account Type" = GenJnlLine2."Account Type"::Customer THEN BEGIN IF DtldCustLedgEntry.FINDLAST THEN DtldCustLedgEntryNoOffset := DtldCustLedgEntry."Entry No." ELSE ...替换代码 3
...TotalAmountAddCurr := 0;
PositiveLCYAppAmt := 0; PositiveACYAppAmt := 0; NegativeLCYAppAmt := 0; NegativeACYAppAmt := 0; // Add the following line. EntryUnapplied := FALSE; // End of the added line. IF GenJnlLine2."Account Type" = GenJnlLine2."Account Type"::Customer THEN BEGIN IF DtldCustLedgEntry.FINDLAST THEN DtldCustLedgEntryNoOffset := DtldCustLedgEntry."Entry No." ELSE ...现有代码 4
... END;
InsertGLEntry(TRUE); GenJnlLine."Posting Date" := OriginalPostingDate; END; // Delete the following line. PostReceivableDocs(GenJnlLine); // End of the deleted line. IF NOT GLEntryTmp.FINDFIRST AND ExistDtldCVLedgEntryBuf THEN BEGIN InitGLEntry(CustPostingGr."Receivables Account",PositiveLCYAppAmt,PositiveACYAppAmt,FALSE,TRUE); InsertGLEntry(FALSE); InitGLEntry(CustPostingGr."Receivables Account",NegativeLCYAppAmt,NegativeACYAppAmt,FALSE,TRUE); ...替换代码 4
... END;
InsertGLEntry(TRUE); GenJnlLine."Posting Date" := OriginalPostingDate; END; // Add the following lines. WITH DtldCustLedgEntry3 DO BEGIN SETCURRENTKEY("Cust. Ledger Entry No."); SETRANGE("Cust. Ledger Entry No.",DtldCustLedgEntry."Cust. Ledger Entry No."); SETFILTER("Applies-to Bill No.",'<>%1',''); SETRANGE(Unapplied,TRUE); EntryUnapplied := NOT ISEMPTY; END; PostReceivableDocs(EntryUnapplied); // End of the added lines. IF NOT GLEntryTmp.FINDFIRST AND ExistDtldCVLedgEntryBuf THEN BEGIN InitGLEntry(CustPostingGr."Receivables Account",PositiveLCYAppAmt,PositiveACYAppAmt,FALSE,TRUE); InsertGLEntry(FALSE); InitGLEntry(CustPostingGr."Receivables Account",NegativeLCYAppAmt,NegativeACYAppAmt,FALSE,TRUE); ... -
更改代码在PostDtldVendLedgEntries函数中 Gen.Jnl。-开机自检线路 codeunit (12),如下所示︰
现有代码 1... PROCEDURE PostDtldVendLedgEntries@32(GenJnlLine2@1000 : Record 81;VAR DtldCVLedgEntryBuf@1001 : Record 383;VendPostingGr@1002 : Record 93;NextTransactionNo@1003 : Integer;VendLedgEntryInserted@1011 : Boolean);
VAR DtldVendLedgEntry@1004 : Record 380; Currency@1006 : Record 4; GenPostingSetup@1007 : Record 252; TotalAmountLCY@1008 : Decimal; TotalAmountAddCurr@1009 : Decimal; PaymentDiscAcc@1010 : Code[20]; DtldVendLedgEntryNoOffset@1005 : Integer; PaymentTolAcc@1012 : Code[20]; ...替换代码 1
...PROCEDURE PostDtldVendLedgEntries@32(GenJnlLine2@1000 : Record 81;VAR DtldCVLedgEntryBuf@1001 : Record 383;VendPostingGr@1002 : Record 93;NextTransactionNo@1003 : Integer;VendLedgEntryInserted@1011 : Boolean);
VAR DtldVendLedgEntry@1004 : Record 380; Currency@1006 : Record 4; GenPostingSetup@1007 : Record 252; // Add the following line. DtldVendLedgEntry3@1100055 : Record 380; // End of the added line. TotalAmountLCY@1008 : Decimal; TotalAmountAddCurr@1009 : Decimal; PaymentDiscAcc@1010 : Code[20]; DtldVendLedgEntryNoOffset@1005 : Integer; PaymentTolAcc@1012 : Code[20]; ...现有代码 2
...PayableAccAmtLCY@1100002 : Decimal;
PayableAccAmtAddCurr@1100010 : Decimal; DtldVendLedgEntry2@1100003 : Record 380; ExistDtldCVLedgEntryBuf@1100004 : Boolean; FindBill@1100005 : Boolean; BEGIN TotalAmountLCY := 0; TotalAmountAddCurr := 0; PositiveLCYAppAmt := 0; PositiveACYAppAmt := 0; ...替换代码 2
...PayableAccAmtLCY@1100002 : Decimal;
PayableAccAmtAddCurr@1100010 : Decimal; DtldVendLedgEntry2@1100003 : Record 380; ExistDtldCVLedgEntryBuf@1100004 : Boolean; FindBill@1100005 : Boolean; // Add the following line. EntryUnapplied@1100051 : Boolean; // End of the added line. BEGIN TotalAmountLCY := 0; TotalAmountAddCurr := 0; PositiveLCYAppAmt := 0; PositiveACYAppAmt := 0; ...现有代码 3
...TotalAmountAddCurr := 0;
PositiveLCYAppAmt := 0; PositiveACYAppAmt := 0; NegativeLCYAppAmt := 0; NegativeACYAppAmt := 0; IF GenJnlLine2."Account Type" = GenJnlLine2."Account Type"::Vendor THEN BEGIN IF DtldVendLedgEntry.FINDLAST THEN DtldVendLedgEntryNoOffset := DtldVendLedgEntry."Entry No." ELSE ...替换代码 3
...TotalAmountAddCurr := 0;
PositiveLCYAppAmt := 0; PositiveACYAppAmt := 0; NegativeLCYAppAmt := 0; NegativeACYAppAmt := 0; // Add the following line. EntryUnapplied := FALSE; // End of the added line. IF GenJnlLine2."Account Type" = GenJnlLine2."Account Type"::Vendor THEN BEGIN IF DtldVendLedgEntry.FINDLAST THEN DtldVendLedgEntryNoOffset := DtldVendLedgEntry."Entry No." ELSE ...现有代码 4
...END;
InsertGLEntry(TRUE); GenJnlLine."Posting Date" := OriginalPostingDate; END; // Delete the following line. PostPayableDocs(GenJnlLine); // End of the deleted line. IF NOT GLEntryTmp.FINDFIRST AND ExistDtldCVLedgEntryBuf THEN BEGIN InitGLEntry(VendPostingGr."Payables Account",PositiveLCYAppAmt,PositiveACYAppAmt,FALSE,TRUE); InsertGLEntry(FALSE); InitGLEntry(VendPostingGr."Payables Account",NegativeLCYAppAmt,NegativeACYAppAmt,FALSE,TRUE); ...替换代码 4
...END;
InsertGLEntry(TRUE); GenJnlLine."Posting Date" := OriginalPostingDate; END; // Add the following lines. WITH DtldVendLedgEntry3 DO BEGIN SETCURRENTKEY("Vendor Ledger Entry No."); SETRANGE("Vendor Ledger Entry No.",DtldVendLedgEntry."Vendor Ledger Entry No."); SETFILTER("Applies-to Bill No.",'<>%1',''); SETRANGE(Unapplied,TRUE); EntryUnapplied := NOT ISEMPTY; END; PostPayableDocs(EntryUnapplied); // End of the added lines. IF NOT GLEntryTmp.FINDFIRST AND ExistDtldCVLedgEntryBuf THEN BEGIN InitGLEntry(VendPostingGr."Payables Account",PositiveLCYAppAmt,PositiveACYAppAmt,FALSE,TRUE); InsertGLEntry(FALSE); InitGLEntry(VendPostingGr."Payables Account",NegativeLCYAppAmt,NegativeACYAppAmt,FALSE,TRUE); ... -
更改代码在PostPayableDocs函数中 Gen.Jnl。-开机自检线路 codeunit (12),如下所示︰
现有代码 1...ELSE
VATEntry."Bill-to/Pay-to No." := GenJnlLine2."Account No."; END; END; // Delete the following line. LOCAL PROCEDURE PostPayableDocs@1100009(VAR GenJnlLine@1100000 : Record 81); // End of the deleted line. BEGIN IF (DocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) THEN IF NextEntryNo2 = NextEntryNo THEN NextEntryNo := NextEntryNo - 1; IF DocAmountLCY <> 0 THEN BEGIN ...替换代码 1
...ELSE
VATEntry."Bill-to/Pay-to No." := GenJnlLine2."Account No."; END; END; // Add the following line. LOCAL PROCEDURE PostPayableDocs@1100009(EntryUnapplied@1100001 : Boolean); // End of the added line. BEGIN IF (DocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) THEN IF NextEntryNo2 = NextEntryNo THEN NextEntryNo := NextEntryNo - 1; IF DocAmountLCY <> 0 THEN BEGIN ...现有代码 2
...BEGIN
IF (DocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) THEN IF NextEntryNo2 = NextEntryNo THEN NextEntryNo := NextEntryNo - 1; IF DocAmountLCY <> 0 THEN BEGIN // Delete the following lines. // VSTF330588.begin //IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) THEN BEGIN IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) OR (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::" ") THEN BEGIN // VSTF330588.end // End of the deleted lines. VendPostingGr.TESTFIELD("Payables Account"); InitGLEntry(VendPostingGr."Payables Account",DocAmountLCY,DocAmtCalcAddCurrency(DocAmountLCY),TRUE,TRUE); GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type"; GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No."; InsertGLEntry(TRUE); ...替换代码 2
...BEGIN
IF (DocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) THEN IF NextEntryNo2 = NextEntryNo THEN NextEntryNo := NextEntryNo - 1; IF DocAmountLCY <> 0 THEN BEGIN // Add the following lines. IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) OR EntryUnapplied THEN BEGIN // End of the added lines. VendPostingGr.TESTFIELD("Payables Account"); InitGLEntry(VendPostingGr."Payables Account",DocAmountLCY,DocAmtCalcAddCurrency(DocAmountLCY),TRUE,TRUE); GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type"; GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No."; InsertGLEntry(TRUE); ... -
更改代码在PostReceivableDocs函数中 Gen.Jnl。-开机自检线路 codeunit (12),如下所示︰
现有代码 1... GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
InsertGLEntry(TRUE); END; END; // Delete the following line. LOCAL PROCEDURE PostReceivableDocs@1100003(VAR GenJnlLine@1100000 : Record 81); // End of the deleted line. BEGIN IF (DocAmountLCY <> 0) OR (DiscDocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) OR (RejDocAmountLCY <> 0) OR (DiscRiskFactAmountLCY <> 0) OR (DiscUnriskFactAmountLCY <> 0) OR (CollFactAmountLCY <> 0) THEN IF NextEntryNo2 = NextEntryNo THEN NextEntryNo := NextEntryNo - 1; ...替换代码 1
...GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
InsertGLEntry(TRUE); END; END; // Add the following line. LOCAL PROCEDURE PostReceivableDocs@1100003(EntryUnapplied@1100001 : Boolean); // End of the added line. BEGIN IF (DocAmountLCY <> 0) OR (DiscDocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) OR (RejDocAmountLCY <> 0) OR (DiscRiskFactAmountLCY <> 0) OR (DiscUnriskFactAmountLCY <> 0) OR (CollFactAmountLCY <> 0) THEN IF NextEntryNo2 = NextEntryNo THEN NextEntryNo := NextEntryNo - 1; ...现有代码 2
...IF (DocAmountLCY <> 0) OR (DiscDocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) OR (RejDocAmountLCY <> 0) OR
(DiscRiskFactAmountLCY <> 0) OR (DiscUnriskFactAmountLCY <> 0) OR (CollFactAmountLCY <> 0) THEN IF NextEntryNo2 = NextEntryNo THEN NextEntryNo := NextEntryNo - 1; IF DocAmountLCY <> 0 THEN BEGIN // Delete the following lines. // VSTF330588.begin //IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) THEN BEGIN IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) OR (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::" ") THEN BEGIN // VSTF330588.end // End of the deleted lines. CustPostingGr.TESTFIELD("Receivables Account"); InitGLEntry(CustPostingGr."Receivables Account",DocAmountLCY,DocAmtCalcAddCurrency(DocAmountLCY),TRUE,TRUE); GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type"; GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No."; InsertGLEntry(TRUE); ...替换代码 2
...IF (DocAmountLCY <> 0) OR (DiscDocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) OR (RejDocAmountLCY <> 0) OR
(DiscRiskFactAmountLCY <> 0) OR (DiscUnriskFactAmountLCY <> 0) OR (CollFactAmountLCY <> 0) THEN IF NextEntryNo2 = NextEntryNo THEN NextEntryNo := NextEntryNo - 1; IF DocAmountLCY <> 0 THEN BEGIN // Add the following lines. IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) OR EntryUnapplied THEN BEGIN // End of the added lines. CustPostingGr.TESTFIELD("Receivables Account"); InitGLEntry(CustPostingGr."Receivables Account",DocAmountLCY,DocAmtCalcAddCurrency(DocAmountLCY),TRUE,TRUE); GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type"; GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No."; InsertGLEntry(TRUE); ...
系统必备组件
您必须具有要应用此修补程序的安装以下产品之一︰
-
西班牙语版本的 Microsoft Dynamics 导航 2009 R2
-
西班牙语版本的 Microsoft Dynamics 导航 2009 SP1
此外,您必须安装KB3034441 。
删除信息
您不能删除此修补程序。
状态
Microsoft 已经确认这是“适用于”一节中列出的 Microsoft 产品中的问题。
注意:这是直接从创建 Microsoft 支持部门内的"快速发布"的文章。此处包含的信息是作为为了响应新出现的问题而提供的。由于以使其可用的速度,而材料可能包含印刷错误,恕不另行通知,随时可能进行修订。其他考虑因素,请参阅使用条款。