當您在西班牙語版 Microsoft Dynamics NAV 2009 中套用熱修正2710511後,) 執行「供應商 - 逾期收費」報告 (10748 時,「加權平均超過期限」值是錯誤的

套用到
Microsoft Dynamics NAV 2009 R2 Dynamics NAV 2009 Service Pack 1

本文適用於Microsoft Dynamics 的西班牙語 (es) 語言區域的導航。

症狀

假設你在西班牙版的 Microsoft Dynamics NAV 2009 中套用了熱修正2710511。 當你 (10748) 執行「供應商 - 逾期收費」報告時,加權平均超出價值的詞語是錯誤的。 加 權平均超出價值的詞彙錯誤 包含未結發票的價值。 此問題發生於以下產品:

  • Microsoft Dynamics NAV 2009 R2 的西班牙語版本
  • Microsoft Dynamics NAV 2009 服務包 1 的西班牙語版本

欲了解更多關於熱修補程式2710511的資訊,請點擊以下文章編號,在Microsoft知識庫中查看該文章:

2710511 付款金額與未付款金額在供應商逾期收費報告中「超出法定上限收費」區塊 (10748) 在西班牙語版 Microsoft Dynamics NAV 中顯示錯誤

解決方式

Hotfix 資訊

Microsoft 現在已經支援熱修補程式。 然而,這僅是為了修正本文所描述的問題。 只應用在遇到這個特定問題的系統上。 此熱修補可能會進行額外測試。 因此,如果您未受到此問題嚴重影響,我們建議您等待下一個 Microsoft Dynamics NAV 2009 服務包或包含此熱修補的 Microsoft Dynamics NAV 版本。

注意:在特殊情況下,若 Microsoft Dynamics 及相關產品的技術支援專業人員判斷特定更新能解決您的問題,通常因支援電話而產生的費用可能會被取消。 一般來說,如果有所描述之特定更新無法解決的其他支援問題,才會收取支援費用。

            
          

安裝資訊

Microsoft 僅提供圖例的程式設計範例,不含明示或暗示的擔保。 這包括 (但不限於) 適用于特定目的之可操作性或適用性的暗示擔保。 本文假設您熟悉正在示範的程式設計語言,以及用來建立和進行程式偵錯工具的工具。 Microsoft 技術支援工程師可以協助說明特定程序的功能,但不會修改這些範例以提供附加功能或建構程序來滿足您的特定需求。

注意:安裝此熱修補程式前,請確認所有 Microsoft Navision 用戶端使用者都已登出系統。 這包括Microsoft Navision 應用服務 (NAS) 用戶端使用者。 當你實施這個熱修補時,應該只有你一個登入的客戶端使用者。

要實作這個熱修補,你必須擁有開發者授權。

我們建議在 Windows 登入視窗或資料庫登入視窗中,將使用者帳號分配「SUPER」角色 ID。 若使用者帳號無法被指派「SUPER」角色 ID,您必須驗證該帳號擁有以下權限:

  • 你要更改的物件的修改權限。
  • 系統物件 ID 5210 的執行權限,以及系統物件 ID 9015 的執行權限。

                
注意:除非你必須進行資料修復,否則你不必擁有資料儲存的權利。

法規變更

注意:在將修正程式套用到生產電腦之前,務必在受控環境中測試修正。
如果要解決這個問題,請依照下列步驟執行。

  1. 將客戶 - 逾期收費報告 (10747中資料項目1的代碼更改如下) :
    現行代碼1

    ...
    ESP=Plazo medio ponderado superado:];
    
    // Delete the following line.
    SourceExpr=CustWeightedExceededAmount / ABS(CustTotalAmount);
    
    DataSetFieldName=CustTotalAmounts_WeightedExceededAmount }
    ...
    

    替換代碼1

    ...
    ESP=Plazo medio ponderado superado:];
    
    // Add the following line.
    SourceExpr=CalcWeightedExceededAmt;
    
    DataSetFieldName=CustTotalAmounts_WeightedExceededAmount }
    ...
    

    現有的第二號法規

    ...
    ESP=Plazo medio ponderado superado:];
    
    // Delete the following line.
    SourceExpr=TotalWeightedExceededAmount / ABS(TotalAmount);
    
    DataSetFieldName=TotalAmounts_WeightedExceededAmount }
    ...
    

    替換代碼2

    ...
    ESP=Plazo medio ponderado superado:];
    
    // Add the following line.
    SourceExpr=CalcTotalWeightedExceededAmt;
    
    DataSetFieldName=TotalAmounts_WeightedExceededAmount }
    ...
    
  2. 請將客戶 - 逾期收費報告 (10747) 資料項目第3號的代碼更改如下:
    現有程式碼

    ...
    IF AppldCustLedgEntryTmp."Entry Type" = AppldCustLedgEntryTmp."Entry Type"::"Initial Entry" THEN
    
    // Delete the following lines.
    AppldCustLedgEntryTmp."Posting Date" := 0D;
    CustDaysOverdue += DaysOverdue;
    CustWeightedExceededAmount += DaysOverdue * ABS(AppldCustLedgEntryTmp."Amount (LCY)");
    CustTotalAmount := CustPaymentOutsideDueDate + CustPaymentWithinDueDate;
    TotalDaysOverdue += DaysOverdue;
    TotalWeightedExceededAmount += DaysOverdue * ABS(AppldCustLedgEntryTmp."Amount (LCY)");
    // End of the lines.
    
    TotalAmount := TotalPaymentOutsideDueDate + TotalPaymentWithinDueDate;
    ...
    

    替換代碼

    ...
    IF AppldCustLedgEntryTmp."Entry Type" = AppldCustLedgEntryTmp."Entry Type"::"Initial Entry" THEN
    
    // Add the following lines.
    AppldCustLedgEntryTmp."Posting Date" := 0D
    ELSE BEGIN
    CustApplAmount += ABS(AppldCustLedgEntryTmp."Amount (LCY)");
    TotalApplAmount += ABS(AppldCustLedgEntryTmp."Amount (LCY)");
    CustWeightedExceededAmount += DaysOverdue * ABS(AppldCustLedgEntryTmp."Amount (LCY)");
    TotalWeightedExceededAmount += DaysOverdue * ABS(AppldCustLedgEntryTmp."Amount (LCY)");
    END;
    CustDaysOverdue += DaysOverdue;
    CustTotalAmount := CustPaymentOutsideDueDate + CustPaymentWithinDueDate;
    TotalDaysOverdue += DaysOverdue;
    // End of the lines.
    
    TotalAmount := TotalPaymentOutsideDueDate + TotalPaymentWithinDueDate;
    ...
    
  3. 在客戶 - 逾期收費報告中) 10747 (全域變數中的代碼更改如下:
    現有程式碼

    ...
    Text1100003@1100006 : TextConst 'ENU=The start date cannot be later than the end date.;ESP=La fecha de inicio no puede ser posterior a la fecha final.';
    CustTotalAmount@1100013 : Decimal;
    ...
    

    替換代碼

    ...
    Text1100003@1100006 : TextConst 'ENU=The start date cannot be later than the end date.;ESP=La fecha de inicio no puede ser posterior a la fecha final.';
    
    // Add the following lines.
    CustApplAmount@1100020 : Decimal;
    TotalApplAmount@1100012 : Decimal;
    // End of the lines.
    
    CustTotalAmount@1100013 : Decimal;
    ...
    
  4. 在客戶 - 逾期收費報告 (10747) 中,將 ClearCustAmount 函式中的代碼更改如下:
    現有程式碼

    ...
    CustPaymentWithinDueDate := 0;
    END;
    ...
    

    替換代碼

    ...
    CustPaymentWithinDueDate := 0;
    
    // Add the following lines.
    CustApplAmount := 0;
    END;
    LOCAL PROCEDURE CalcWeightedExceededAmt@1100000() : Decimal;
    BEGIN
    IF CustApplAmount = 0 THEN
    EXIT(0);
    EXIT(CustWeightedExceededAmount / ABS(CustApplAmount));
    END;
    LOCAL PROCEDURE CalcTotalWeightedExceededAmt@1100009() : Decimal;
    BEGIN
    IF TotalApplAmount = 0 THEN
    EXIT(0);
    EXIT(TotalWeightedExceededAmount / ABS(TotalApplAmount));
    // End of the lines.
    
    END;
    ...
    
  5. 請將供應商 - 逾期收費報告 (10748) 資料項目編號1中的代碼更改如下:
    現行代碼1

    ...
    ESP=Plazo medio ponderado superado:];
    
    // Delete the following line.
    SourceExpr=VendWeightedExceededAmount / ABS(VendTotalAmount);
    
    DataSetFieldName=Vend_WeightedExceededAmount }
    ...
    

    替換代碼1

    ...
    ESP=Plazo medio ponderado superado:];
    
    // Add the following line.
    SourceExpr=CalcWeightedExceededAmt;
    
    DataSetFieldName=Vend_WeightedExceededAmount }
    ...
    

    現有的第二號法規

    ...
    ESP=Plazo medio ponderado superado:];
    
    // Delete the following line.
    SourceExpr=TotalWeightedExceededAmount / ABS(TotalAmount);
    
    DataSetFieldName=Total_WeightedExceededAmount }
    ...
    

    替換代碼2

    ...
    ESP=Plazo medio ponderado superado:];
    
    // Add the following line.
    SourceExpr=CalcTotalWeightedExceededAmt;
    
    DataSetFieldName=Total_WeightedExceededAmount }
    ...
    
  6. 請將供應商 - 逾期收費報告 (10748) 資料項目第 3 號中的代碼更改如下:
    現有程式碼

    ...
    IF AppldVendLedgEntryTmp."Entry Type" = AppldVendLedgEntryTmp."Entry Type"::"Initial Entry" THEN
    
    // Delete the following lines.
    AppldVendLedgEntryTmp."Posting Date" := 0D;
    VendDaysOverdue += DaysOverdue;
    VendWeightedExceededAmount += DaysOverdue * ABS(AppldVendLedgEntryTmp."Amount (LCY)");
    VendTotalAmount := VendPaymentOutsideDueDate + VendPaymentWithinDueDate;
    TotalDaysOverdue += DaysOverdue;
    TotalWeightedExceededAmount += DaysOverdue * ABS(AppldVendLedgEntryTmp."Amount (LCY)");
    // End of the lines.
    
    TotalAmount := TotalPaymentOutsideDueDate + TotalPaymentWithinDueDate;
    ...
    

    替換代碼

    ...
    IF AppldVendLedgEntryTmp."Entry Type" = AppldVendLedgEntryTmp."Entry Type"::"Initial Entry" THEN
    
    // Add the following lines.
    AppldVendLedgEntryTmp."Posting Date" := 0D
    ELSE BEGIN
    VendApplAmount += ABS(AppldVendLedgEntryTmp."Amount (LCY)");
    TotalApplAmount += ABS(AppldVendLedgEntryTmp."Amount (LCY)");
    VendWeightedExceededAmount += DaysOverdue * ABS(AppldVendLedgEntryTmp."Amount (LCY)");
    TotalWeightedExceededAmount += DaysOverdue * ABS(AppldVendLedgEntryTmp."Amount (LCY)");
    END;
    VendDaysOverdue += DaysOverdue;
    VendTotalAmount := VendPaymentOutsideDueDate + VendPaymentWithinDueDate;
    TotalDaysOverdue += DaysOverdue;
    // End of the lines.
    
    TotalAmount := TotalPaymentOutsideDueDate + TotalPaymentWithinDueDate;
    ...
    
  7. 在 10748) ( 報告中更改全域變收費數中的程式碼如下:
    現有程式碼

    ...
    Text1100003@1100006 : TextConst 'ENU=The start date cannot be later than the end date.;ESP=La fecha de inicio no puede ser posterior a la fecha final.';
    VendTotalAmount@1100011 : Decimal;
    ...
    

    替換代碼

    ...
    Text1100003@1100006 : TextConst 'ENU=The start date cannot be later than the end date.;ESP=La fecha de inicio no puede ser posterior a la fecha final.';
    
    // Add the following lines.
    VendApplAmount@1100002 : Decimal;
    TotalApplAmount@1100020 : Decimal;
    // End of the lines.
    
    VendTotalAmount@1100011 : Decimal;
    ...
    
  8. 在 Vendor - 逾期收費報告 10748 () 中,將 ClearVendAmount 函式中的程式碼更改如下:
    現有程式碼

    ...
    VendPaymentWithinDueDate := 0;
    END;
    ...
    

    替換代碼

    ...
    VendPaymentWithinDueDate := 0;
    
    // Add the following lines.
    VendApplAmount := 0;
    END;
    LOCAL PROCEDURE CalcWeightedExceededAmt@1100000() : Decimal;
    BEGIN
    IF VendApplAmount = 0 THEN
    EXIT(0);
    EXIT(VendWeightedExceededAmount / ABS(VendApplAmount));
    END;
    LOCAL PROCEDURE CalcTotalWeightedExceededAmt@1100009() : Decimal;
    BEGIN
    IF TotalApplAmount = 0 THEN
    EXIT(0);
    EXIT(TotalWeightedExceededAmount / ABS(TotalApplAmount));
    // End of the lines.
    
    END;
    ...
    

先決條件

您必須安裝以下其中一項產品才能套用此熱修補:

  • Microsoft Dynamics NAV 2009 R2 的西班牙語版本
  • Microsoft Dynamics NAV 2009 服務包 1 的西班牙語版本

移除資訊

你無法移除這個熱修正。

狀態

Microsoft 已確認這是「適用對象」一節中列出的 Microsoft 產品中的問題。

注意本文為 Microsoft 支援單位內部直接建立的「快速發佈」文章。 此處包含的資訊是以其現況提供,用於回應新產生的問題。 由於快速發佈,資料可能包含拼字錯誤,並可能會隨時修訂,不另行通知。 請參閱使用條款以瞭解其他相關考量。