"판매 배송 [Shipment_No], 줄 번호. [Line_No]은(는) 게시된 문서 줄의 전체 수량이 이미 수동으로 적용되었기 때문에 복사되지 않습니다." Microsoft Dynamics NAV의 부분 판매 수익에서 문서 복사 함수를 실행할 때 오류 메시지

적용 대상
Dynamics NAV 2009

이 문서는 모든 국가 및 모든 언어 로캘에 대해 Microsoft Dynamics NAV에 적용됩니다.

증상

Microsoft Dynamics NAV의 Sales & Receivable Setup 대화 상자에서 정확한 비용 반전 설정을 사용하도록 설정한다고 가정합니다. 이 경우 부분 판매 수익에서 문서 복사 함수를 실행하면 다음과 같은 오류 메시지가 표시됩니다.

참고

판매 배송 Shipment_No, 줄 번호. 게시된 문서 줄의 전체 수량이 이미 수동으로 적용되었으므로 Line_No 복사되지 않습니다.

이 문제는 다음 제품에서 발생합니다.

  • Microsoft Dynamics NAV 2009 R2
  • Microsoft Dynamics NAV 2009 서비스 팩 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. 문서 Mgt. codeunit 복사(6620)에서 다음 전역 변수를 삭제합니다.

    Text030@1025 : TextConst 'ENU=%1 %2, line no. %3 is not copied because the full quantity on the posted document line is already manually applied.';
    Text031@1038 : TextConst 'ENU=Return document line contains only the original document line quantity, that is not already manually applied.';
    SomeAreFixed@1045 : Boolean;
    CopyDimensions@1050 : Boolean;
    
    
  2. 문서 Mgt. codeunit 복사(6620)에 다음 전역 변수를 추가합니다.

    Text030@1025 : TextConst 'ENU=One or more return document lines were not copied. This is because quantities on the posted document line are already fully or partially applied and therefore the Exact Cost Reversing Link could not be created.';
    Text031@1038 : TextConst 'ENU=Return document line contains only the original document line quantity, that is not already manually applied.';
     SomeAreFixed@1045 : Boolean;
    CopyDimensions@1050 : Boolean;
    WarningDone@1051 : Boolean;
    LinesApplied@1052 : Boolean;
    
    
  3. Document Mgt 복사의 SplitPstdSalesLinesPerILE 함수의 코드를 다음과 같이 변경합니다. codeunit(6620).
    기존 코드 1

    ...
                IF "Shipped Qty. Not Returned" = 0 THEN
    
    // Delete the following lines.
                 ERROR(Text030,"Document Type","Document No.","Document Line No.");
               FromSalesLineBuf := FromSalesLine; 
               IF -"Shipped Qty. Not Returned" < ABS(FromSalesLine."Quantity (Base)") THEN BEGIN
                 IF FromSalesLine."Quantity (Base)" > 0 THEN
                   FromSalesLineBuf."Quantity (Base)" := -"Shipped Qty. Not Returned"
                 ELSE
                   FromSalesLineBuf."Quantity (Base)" := "Shipped Qty. Not Returned";
                 IF FromSalesLineBuf."Qty. per Unit of Measure" = 0 THEN
                   FromSalesLineBuf.Quantity := FromSalesLineBuf."Quantity (Base)"
                 ELSE
                   FromSalesLineBuf.Quantity :=
                     ROUND(FromSalesLineBuf."Quantity (Base)" / FromSalesLineBuf."Qty. per Unit of Measure",0.00001);
               END;
               FromSalesLine."Quantity (Base)" := FromSalesLine."Quantity (Base)" - FromSalesLineBuf."Quantity (Base)";
               FromSalesLine.Quantity := FromSalesLine.Quantity - FromSalesLineBuf.Quantity;
               FromSalesLineBuf."Appl.-from Item Entry" := "Entry No.";
               FromSalesLineBuf."Line No." := NextLineNo;
               NextLineNo := NextLineNo + 1;
               FromSalesLineBuf."Document No." := "Document No.";
               IF GetSalesDocType(ItemLedgEntry) IN
                  [FromSalesLineBuf."Document Type"::Order,FromSalesLineBuf."Document Type"::"Return Order"]
               THEN
                 FromSalesLineBuf."Shipment Line No." := 1;
    
               IF NOT FromShptOrRcpt THEN
                 UpdateRevSalesLineAmount(
                   FromSalesLineBuf,OrgQtyBase,
                   FromSalesHeader."Prices Including VAT",ToSalesHeader."Prices Including VAT");
    
               FromSalesLineBuf.INSERT;
    // End of the lines.
    
              UNTIL (NEXT = 0) OR (FromSalesLine."Quantity (Base)" = 0);
    ...
    
    

    대체 코드 1

    ...
                IF "Shipped Qty. Not Returned" = 0 THEN
    
    // Add the following lines.
                 LinesApplied := TRUE;
               IF "Shipped Qty. Not Returned" < 0 THEN BEGIN
                 FromSalesLineBuf := FromSalesLine;
    
                 IF -"Shipped Qty. Not Returned" < ABS(FromSalesLine."Quantity (Base)") THEN BEGIN
                   IF FromSalesLine."Quantity (Base)" > 0 THEN
                     FromSalesLineBuf."Quantity (Base)" := -"Shipped Qty. Not Returned"
                   ELSE
                     FromSalesLineBuf."Quantity (Base)" := "Shipped Qty. Not Returned";
                   IF FromSalesLineBuf."Qty. per Unit of Measure" = 0 THEN
                     FromSalesLineBuf.Quantity := FromSalesLineBuf."Quantity (Base)"
                   ELSE
                     FromSalesLineBuf.Quantity :=
                       ROUND(FromSalesLineBuf."Quantity (Base)" / FromSalesLineBuf."Qty. per Unit of Measure",0.00001);
                 END;
                 FromSalesLine."Quantity (Base)" := FromSalesLine."Quantity (Base)" - FromSalesLineBuf."Quantity (Base)";
                 FromSalesLine.Quantity := FromSalesLine.Quantity - FromSalesLineBuf.Quantity;
                 FromSalesLineBuf."Appl.-from Item Entry" := "Entry No.";
                 FromSalesLineBuf."Line No." := NextLineNo;
                 NextLineNo := NextLineNo + 1;
                 FromSalesLineBuf."Document No." := "Document No.";
                 IF GetSalesDocType(ItemLedgEntry) IN
                    [FromSalesLineBuf."Document Type"::Order,FromSalesLineBuf."Document Type"::"Return Order"]
                 THEN
                   FromSalesLineBuf."Shipment Line No." := 1;
    
                 IF NOT FromShptOrRcpt THEN
                   UpdateRevSalesLineAmount(
                     FromSalesLineBuf,OrgQtyBase,
                     FromSalesHeader."Prices Including VAT",ToSalesHeader."Prices Including VAT");
    
                 FromSalesLineBuf.INSERT;
               END;
    // End of the lines.
    
              UNTIL (NEXT = 0) OR (FromSalesLine."Quantity (Base)" = 0);
    ...
    
    

    기존 코드 2

    ...
                MissingExCostRevLink := TRUE;
            END;
    ...
    
    

    대체 코드 2

    ...
                MissingExCostRevLink := TRUE;
    
    // Add the following line.
             CheckUnappliedLines(LinesApplied,MissingExCostRevLink);
    
            END;
    ...
    
    
  4. Document Mgt 복사의 SplitPstdPurchLinesPerILE 함수에서 코드를 다음과 같이 변경합니다. codeunit(6620).
    기존 코드 1

    ...
            ApplyRec@1011 : Record 339;
    
    // Delete the following line.
           AllAreFixed@1012 : Boolean;
    
          BEGIN
    ...
    
    

    대체 코드 1

    ...
            ApplyRec@1011 : Record 339;
          BEGIN
    ...
    
    

    기존 코드 2

    ...
              REPEAT
    
    // Delete the following lines.
               IF "Remaining Quantity" = 0 THEN BEGIN
                 AllAreFixed := TRUE;
                 ApplyRec.AppliedOutbndEntryExists("Entry No.",FALSE);
                 IF ApplyRec.FINDFIRST THEN
                   REPEAT
                     AllAreFixed := AllAreFixed AND ApplyRec.Fixed;
                   UNTIL ApplyRec.NEXT = 0;
                 IF AllAreFixed THEN
                   ERROR(Text030,"Document Type","Document No.","Document Line No.");
               END;
    // End of the lines.
    
                IF NOT ApplyFully THEN BEGIN
    ...
    
    

    대체 코드 2

    ...
              REPEAT
                IF NOT ApplyFully THEN BEGIN
    ...
    
    

    기존 코드 3

    ...
            END;
    ...
    
    

    대체 코드 3

    ...
            END;
    
    // Add the following line.
           CheckUnappliedLines(SkippedLine,MissingExCostRevLink);
    
    ...
    
    
  5. 문서 Mgt 복사의 CheckUnappliedLines 함수에서 코드를 다음과 같이 변경합니다. codeunit(6620).
    기존 코드

    ...
          BEGIN
    ...
    
    

    대체 코드

    ...
    
    // Add the following lines.
         LOCAL PROCEDURE CheckUnappliedLines@86(SkippedLine@1000 : Boolean;VAR MissingExCostRevLink@1001 : Boolean);
         BEGIN
           IF SkippedLine AND MissingExCostRevLink THEN BEGIN
             IF NOT WarningDone THEN
               MESSAGE(Text030);
             MissingExCostRevLink := FALSE;
             WarningDone := TRUE;
           END;
         END;
    
    // End of the lines.
    
          BEGIN
    ...
    
    

필수 구성 요소

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

  • Microsoft Dynamics NAV 2009 R2
  • Microsoft Dynamics NAV 2009 서비스 팩 1

제거 정보

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

상태

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

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