결과는 웨어하우스 카드 보고서(16785)와 그리스 버전의 Microsoft Dynamics NAV의 평가판 균형 보고서(16702)에서 다릅니다.

적용 대상
Dynamics NAV 2009 Service Pack 1 Microsoft Dynamics NAV 5.0 Service Pack 1

이 문서는 그리스어(gr) 언어 로캘에 대한 Microsoft Dynamics NAV에 적용됩니다.

증상

그리스 버전의 Microsoft Dynamics NAV에서 자동 비용 게시 검사 상자와 예상 비용 게시 검사 상자를 모두 선택하려면 예상 비용 금액에 의해 생성된 잘못된 일반 원장 항목이 반전되지 않습니다. 따라서 평가판 잔액 보고서(16702)의 결과는 웨어하우스 카드 보고서(16785)의 결과와 다릅니다. 
이 문제는 다음 제품에서 발생합니다.

  • 그리스 버전의 Microsoft Dynamics NAV 2009 SP1(서비스 팩 1)
  • 그리스 버전의 Microsoft Dynamics NAV 5.0 SP1(서비스 팩 1)

원인

이 문제는 항목 비용이 일반 원장 항목에서 두 번 계산되기 때문에 발생합니다. 비용은 예상 비용으로 한 번 계산되고 비용은 다른 시간에 실제 비용으로 계산됩니다.

해결 방법

핫픽스 정보

이제 Microsoft에서 지원되는 핫픽스를 사용할 수 있습니다. 그러나 이 문서에 설명된 문제만 수정하기 위한 것입니다. 이 특정 문제가 발생하는 시스템에만 적용합니다. 이 핫픽스는 추가 테스트를 받을 수 있습니다. 따라서 이 문제의 심각한 영향을 받지 않는 경우 다음 Microsoft Dynamics NAV 2009 서비스 팩 또는 이 핫픽스가 포함된 다음 Microsoft Dynamics NAV 버전을 기다리는 것이 좋습니다.

참고 특별한 경우 Microsoft Dynamics 및 관련 제품에 대한 기술 지원 전문가가 특정 업데이트가 문제를 resolve 판단하는 경우 지원 호출에 대해 일반적으로 발생하는 요금이 취소될 수 있습니다. 특정 업데이트가 필요하지 않은 추가 지원 질문과 문제에는 일반 지원 비용이 적용됩니다.

            
          

설치 정보

Microsoft는 명시적이거나 묵시적인 보증 없이 설명용으로만 프로그래밍 예제를 제공합니다. 여기에는 상품성 또는 특정 목적에의 적합성에 대한 묵시적 보증이 포함되지만 이에 국한되지 않습니다. 이 문서에서는 설명 중인 프로그래밍 언어와 프로시저를 만들고 디버깅하는 데 사용되는 도구에 대해 잘 알고 있다고 가정합니다. Microsoft 지원 엔지니어는 사용자에게 도움이 되도록 특정 프로시저에 대한 기능을 설명할 수 있지만 사용자의 특정 요구 사항에 맞도록 예제를 수정하여 추가 기능을 제공하거나 프로시저를 구성하지는 않습니다.

참고 이 핫픽스를 설치하기 전에 모든 Microsoft Navision 클라이언트 사용자가 시스템에서 로그오프되었는지 확인합니다. 여기에는 NAS(Microsoft Navision Application Services) 클라이언트 사용자가 포함됩니다. 이 핫픽스를 구현할 때 로그온한 유일한 클라이언트 사용자여야 합니다.

이 핫픽스를 구현하려면 개발자 라이선스가 있어야 합니다.

Windows 로그인 창 또는 데이터베이스 로그인 창의 사용자 계정에 "SUPER" 역할 ID가 할당되는 것이 좋습니다. 사용자 계정에 "SUPER" 역할 ID를 할당할 수 없는 경우 사용자 계정에 다음 권한이 있는지 확인해야 합니다.

  • 변경할 개체에 대한 수정 권한입니다.
  • 시스템 개체 ID 5210 개체 및 System Object ID 9015 개체에 대한 Execute 권한입니다.

                
참고 데이터 복구를 수행해야 하는 경우가 아니면 데이터 저장소에 대한 권한이 있을 필요가 없습니다.

코드 변경 내용

참고 프로덕션 컴퓨터에 수정 사항을 적용하기 전에 제어된 환경에서 항상 코드 수정을 테스트합니다.
이 문제를 해결하려면 다음과 같이 하십시오.

  1. 다음과 같이 인벤토리 게시에서 BufferInvtPosting 함수의 코드를 G/L codeunit(5802)로 변경합니다.
    기존 코드

    ...
    // Dionisis Calculate Cost Differently for Manufacturing Entries.
    IF "Expected Cost" THEN BEGIN
    CalcCostToPost(
    ValueEntry,ExpCostToPost,CostExpected,"Expected Cost Posted to G/L",PostToGL,"Expected Cost",FALSE,
    "Posted Cost Component 1","Posted Cost Component 2","Posted Cost Component 3","Posted Cost Component 4",
    "Posted Cost Component 5");
    CalcCostToPost(
    ValueEntry,ExpCostToPostACY,"Cost Amount (Expected) (ACY)","Exp. Cost Posted to G/L (ACY)",PostToGL,"Expected Cost",TRUE,
    PostedCost1ACY,PostedCost2ACY,PostedCost3ACY,PostedCost4ACY,PostedCost5ACY);
    END ELSE BEGIN
    CalcCostToPost(
    ValueEntry,CostToPost,CostActual,"Cost Posted to G/L",PostToGL,"Expected Cost",FALSE,
    "Posted Cost Component 1","Posted Cost Component 2","Posted Cost Component 3","Posted Cost Component 4",
    "Posted Cost Component 5");
    CalcCostToPost(
    ValueEntry,CostToPostACY,"Cost Amount (Actual) (ACY)","Cost Posted to G/L (ACY)",PostToGL,"Expected Cost",TRUE,
    PostedCost1ACY,PostedCost2ACY,PostedCost3ACY,PostedCost4ACY,PostedCost5ACY);
    END;
    ...
    

    대체 코드

    ...
    // Dionisis Calculate Cost Differently for Manufacturing Entries.
    
    //Add the following lines.
    // IF "Expected Cost" THEN BEGIN
    IF "Expected Cost" OR InvtSetup."Expected Cost Posting to G/L" THEN BEGIN
    //End of the lines.
    
    CalcCostToPost(
    ValueEntry,ExpCostToPost,CostExpected,"Expected Cost Posted to G/L",PostToGL,"Expected Cost",FALSE,
    "Posted Cost Component 1","Posted Cost Component 2","Posted Cost Component 3","Posted Cost Component 4",
    "Posted Cost Component 5");
    CalcCostToPost(
    ValueEntry,ExpCostToPostACY,"Cost Amount (Expected) (ACY)","Exp. Cost Posted to G/L (ACY)",PostToGL,"Expected Cost",TRUE,
    PostedCost1ACY,PostedCost2ACY,PostedCost3ACY,PostedCost4ACY,PostedCost5ACY);
    
    //Add the following lines.
    // END ELSE BEGIN
    END;
    IF NOT "Expected Cost" THEN BEGIN
    //End of the lines.
    
    CalcCostToPost(
    ValueEntry,CostToPost,CostActual,"Cost Posted to G/L",PostToGL,"Expected Cost",FALSE,
    "Posted Cost Component 1","Posted Cost Component 2","Posted Cost Component 3","Posted Cost Component 4",
    "Posted Cost Component 5");
    CalcCostToPost(
    ValueEntry,CostToPostACY,"Cost Amount (Actual) (ACY)","Cost Posted to G/L (ACY)",PostToGL,"Expected Cost",TRUE,
    PostedCost1ACY,PostedCost2ACY,PostedCost3ACY,PostedCost4ACY,PostedCost5ACY);
    END;
    ...
    
  2. 인벤토리 게시에서 BufferInvtPosting 함수의 코드를 G/L codeunit(5802)로 변경합니다.

    …
    
    // Find Actual Cost // Dionisis changed with valuation cost
    // CASE "Item Ledger Entry Type" OF
    // "Item Ledger Entry Type"::Purchase:
    // // GR0010.begin
    // // CostActual := "Entry Valuation Cost"; // "Cost Amount (Actual)"; // GR004
    // CostActual := "Cost Amount (Actual)";
    // // GR0010.end
    // "Item Ledger Entry Type"::Sale,
    // "Item Ledger Entry Type"::"Positive Adjmt.",
    // "Item Ledger Entry Type"::"Negative Adjmt.",
    // "Item Ledger Entry Type"::Transfer,
    // "Item Ledger Entry Type"::Consumption,
    // "Item Ledger Entry Type"::Output:
    // // GR0010.begin
    // // CostActual := "Entry Valuation Cost";
    // CostActual := "Cost Amount (Actual)";
    // // GR0010.end
    // END;
    
    // Find Expected Cost // Dionisis changed with valuation cost
    // CASE "Item Ledger Entry Type" OF
    // "Item Ledger Entry Type"::Purchase:
    // // GR0010.begin
    // //CostExpected := "Valuation Expected Cost"; // "Cost Amount (Expected)"; // GR0004
    // CostExpected := "Cost Amount (Expected)";
    // // GR0010.end
    // "Item Ledger Entry Type"::Sale:
    // // GR0010.begin
    // // CostExpected := "Valuation Expected Cost";
    // CostExpected := "Cost Amount (Expected)";
    // // GR0010 end
    // "Item Ledger Entry Type"::"Positive Adjmt.",
    // "Item Ledger Entry Type"::"Negative Adjmt.",
    // "Item Ledger Entry Type"::Transfer,
    // "Item Ledger Entry Type"::Consumption,
    // "Item Ledger Entry Type"::Output:
    // // GR0010.begin
    // //CostExpected := "Entry Valuation Cost"; //CostExpected := "Invoiced Quantity" * "Valuation Cost Per Unit";
    // CostExpected := "Cost Amount (Actual)";
    // // GR0010.end
    // END;
    CostActual := "Cost Amount (Actual)";
    CostExpected := "Cost Amount (Expected)";
    …
    
  3. 다음과 같이 인벤토리 게시에서 CalcExpCost 함수의 코드를 G/L codeunit(5802)로 변경합니다.
    기존 코드

    ...
    QtyNotInv := Quantity - QtyNotInv;
    AdjdCost := ROUND(AdjdCost * QtyNotInv / Quantity,RoundPrecision);
    ...
    

    대체 코드

    ...
    QtyNotInv := Quantity - QtyNotInv;
    
    //Add the following line.
    IF QtyNotInv <> 0 THEN
    
    AdjdCost := ROUND(AdjdCost * QtyNotInv / Quantity,RoundPrecision);
    ...
    
  4. 다음과 같이 평가 관리 codeunit(16783)에서 CalcPeriodAverageCost 함수의 코드를 변경합니다.
    기존 코드

    ...
    WITH Item DO BEGIN
    SETRANGE("Date Filter",InventoryPeriod."Starting Date",InventoryPeriod."Ending Date");
    SETFILTER("Location Filter",LocationFilter);
    CALCFIELDS("Valuation Purchases Qty","Valuation Purchases (LCY)","Valuation Expd. Cost (Purch.)",
    "Valuation Output Cost","Output Qty","Assembled Qty","Valuation Assembly Cost",
    "Valuation Transfers Qty","Valuation Transfers (LCY)");
    CurrPeriodCost := "Valuation Purchases (LCY)" + "Valuation Expd. Cost (Purch.)" + "Valuation Output Cost" +
    "Valuation Assembly Cost" + "Valuation Transfers (LCY)";
    CurrPeriodQty := "Valuation Purchases Qty" + "Output Qty" + "Assembled Qty" + "Valuation Transfers Qty";
    IF "Production Method" <> "Production Method"::" " THEN
    CalcCostPerCostComp;
    END;
    
    CalcValuationCostPerUnit;
    ...
    

    대체 코드

    ...
    WITH Item DO BEGIN
    SETRANGE("Date Filter",InventoryPeriod."Starting Date",InventoryPeriod."Ending Date");
    SETFILTER("Location Filter",LocationFilter);
    
    //Add the following lines.
    //CALCFIELDS("Valuation Purchases Qty","Valuation Purchases (LCY)","Valuation Expd. Cost (Purch.)",
    // "Valuation Output Cost","Output Qty","Assembled Qty","Valuation Assembly Cost",
    // "Valuation Transfers Qty","Valuation Transfers (LCY)");
    // CurrPeriodCost := "Valuation Purchases (LCY)" + "Valuation Expd. Cost (Purch.)" + "Valuation Output Cost" +
    // "Valuation Assembly Cost" + "Valuation Transfers (LCY)";
    // CurrPeriodQty := "Valuation Purchases Qty" + "Output Qty" + "Assembled Qty" + "Valuation Transfers Qty";
    CALCFIELDS("Valuation Purchases Qty","Valuation Purchases (LCY)","Valuation Expd. Cost (Purch.)",
    "Valuation Output Cost","Output Qty","Assembled Qty","Valuation Assembly Cost",
    "Inbound Transfer Qty","Inbound Transfers (LCY)");
    IF IsAvgCostCalcTypeItem THEN BEGIN
    CurrPeriodCost := "Valuation Purchases (LCY)" + "Valuation Expd. Cost (Purch.)" + "Valuation Output Cost" +
    "Valuation Assembly Cost";
    CurrPeriodQty := "Valuation Purchases Qty" + "Output Qty" + "Assembled Qty";
    END ELSE BEGIN
    CurrPeriodCost := "Valuation Purchases (LCY)" + "Valuation Expd. Cost (Purch.)" + "Valuation Output Cost" +
    "Valuation Assembly Cost" + "Inbound Transfers (LCY)";
    CurrPeriodQty := "Valuation Purchases Qty" + "Output Qty" + "Assembled Qty" + "Inbound Transfer Qty";
    END;
    //End of the lines.
    
    IF "Production Method" <> "Production Method"::" " THEN
    CalcCostPerCostComp;
    END;
    
    CalcValuationCostPerUnit;
    ...
    

            
          

필수 구성 요소

이 핫픽스를 적용하려면 다음 제품 중 하나가 설치되어 있어야 합니다.

  • 그리스 버전의 Microsoft Dynamics NAV 2009 SP1(서비스 팩 1)
  • 그리스 버전의 Microsoft Dynamics NAV 5.0 SP1(서비스 팩 1)

제거 정보

이 핫픽스는 제거할 수 없습니다.

상태

Microsoft에서 이는 "적용 대상" 섹션에 나열된 Microsoft 제품에서의 문제임을 확인했습니다.

참고 이 문서는 Microsoft 지원 부서에서 직접 작성한 "빠른 게시" 문서입니다. 여기에 포함된 정보는 새로운 문제에 대한 응답으로 있는 그대로 제공됩니다. 문서를 제공하는 속도로 인해 문서에 오자가 있을 수 있으며 사전 통지 없이 언제든지 수정될 수 있습니다. 다른 고려 사항은 사용 약관을 참조하십시오.