이 문서는 이탈리아어(it) 언어 로캘에 대한 Microsoft Dynamics NAV에 적용됩니다.
이탈리아 버전의 Microsoft Dynamics NAV 5.0 SP1(서비스 팩 1)에서 통계 내 저널을 생성하는 경우 시스템은 항목에서 통계 내 코드를 사용하지 않습니다. 대신 시스템은 국가 코드를 사용합니다.
증상
핫픽스 정보
이제 Microsoft에서 지원되는 핫픽스를 사용할 수 있습니다. 그러나 이 문서에 설명된 문제만 수정하기 위한 것입니다. 이 특정 문제가 발생하는 시스템에만 적용합니다. 이 핫픽스는 추가 테스트를 받을 수 있습니다. 따라서 이 문제의 심각한 영향을 받지 않는 경우 다음 Microsoft Dynamics NAV 서비스 팩 또는 이 핫픽스가 포함된 다음 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 권한입니다.
참고 데이터 복구를 수행해야 하는 경우가 아니면 데이터 저장소에 대한 권한이 있을 필요가 없습니다.
코드 변경 내용
참고 프로덕션 컴퓨터에 수정 사항을 적용하기 전에 제어된 환경에서 항상 코드 수정을 테스트합니다.
이 문제를 해결하려면 다음과 같이 하십시오.
항목 번호에서 코드를 변경합니다. - Intrastat Jnl. Line 테이블(263)의 OnValidate 트리거는 다음과 같습니다.
기존 코드… "Tariff No." := Item."Tariff No."; //Delete the following line. "Country/Region of Origin Code" := Item."Country/Region of Origin Code"; GetItemDescription;대체 코드
... "Tariff No." := Item."Tariff No."; //Add the following line. "Country/Region of Origin Code" := GetIntrastatCountryCode(Item."Country/Region of Origin Code"); GetItemDescription;Intrastat Jnl의 ValidateSourceEntryNo 함수에서 코드를 변경합니다. 줄 테이블(263)은 다음과 같습니다.
기존 코드... Date := VATEntry."Document Date"; //Delete the following line. "Country/Region Code" := VATEntry."Country/Region Code"; "VAT Registration No." := VATEntry."VAT Registration No."; ...대체 코드
... Date := VATEntry."Document Date"; //Add the following line. "Country/Region Code" := GetIntrastatCountryCode(VATEntry."Country/Region Code"); "VAT Registration No." := VATEntry."VAT Registration No."; ...Intrastat Jnl. Line 테이블(263)의 반환 값에 코드 형식과 길이 10을 사용하는 새 GetIntrastatCountryCode 함수를 만듭니다. 이 함수를 만들려면 다음 단계를 수행합니다.
새 로컬 매개 변수를 추가한 다음 다음과 같이 매개 변수를 지정합니다.
- Var:No
- 이름:CountryRegionCode
- DataType:Code
- 하위 유형:국가/지역 코드
- 길이:10
새 지역 변수를 추가한 다음 다음과 같이 변수를 지정합니다.
- 이름: CountryRegion
- DataType:Record
- 하위 유형: 국가/지역
다음과 같이 코드를 추가합니다.
IF CountryRegion.GET(CountryRegionCode) THEN EXIT(CountryRegion."Intrastat Code");
다음과 같이 항목 원장 항목 가져오기 보고서(594)에서 InsertItemJnlLine 함수의 코드를 변경합니다.
기존 코드 1... WITH IntrastatJnlLine DO BEGIN INIT; "Line No." := "Line No." + 10000; Date := "Item Ledger Entry"."Last Invoice Date"; //Delete the following line. "Country/Region Code" := "Item Ledger Entry"."Country/Region Code"; "Transaction Type" := "Item Ledger Entry"."Transaction Type"; ...대체 코드 1
... WITH IntrastatJnlLine DO BEGIN INIT; "Line No." := "Line No." + 10000; Date := "Item Ledger Entry"."Last Invoice Date"; //Add the following line. "Country/Region Code" := GetIntrastatCountryCode("Item Ledger Entry"."Country/Region Code"); "Transaction Type" := "Item Ledger Entry"."Transaction Type"; ...기존 코드 2
... IF SalesShipHeader.GET("Item Ledger Entry"."Document No.") THEN BEGIN IF Customer.GET(SalesShipHeader."Bill-to Customer No.") THEN BEGIN "VAT Registration No." := Customer."VAT Registration No."; //Delete the following line. "Country/Region Code" := Customer."Country/Region Code"; END; END ELSE BEGIN SalesSetup.GET; IF NOT SalesSetup."Shipment on Invoice" THEN BEGIN IF SalesInvHeader.GET("Item Ledger Entry"."Document No.") THEN IF Customer.GET(SalesInvHeader."Bill-to Customer No.") THEN BEGIN "VAT Registration No." := Customer."VAT Registration No."; //Delete the following line. "Country/Region Code" := Customer."Country/Region Code"; END; END ELSE IF SalesCrMemoHeader.GET(ValueEntry."Document No.") THEN IF Customer.GET(SalesCrMemoHeader."Bill-to Customer No.") THEN BEGIN "VAT Registration No." := Customer."VAT Registration No."; //Delete the following line. "Country/Region Code" := Customer."Country/Region Code"; END; END; ...대체 코드 2
... IF SalesShipHeader.GET("Item Ledger Entry"."Document No.") THEN BEGIN IF Customer.GET(SalesShipHeader."Bill-to Customer No.") THEN BEGIN "VAT Registration No." := Customer."VAT Registration No."; //Add the following line. "Country/Region Code" := GetIntrastatCountryCode(Customer."Country/Region Code"); END; END ELSE BEGIN SalesSetup.GET; IF NOT SalesSetup."Shipment on Invoice" THEN BEGIN IF SalesInvHeader.GET("Item Ledger Entry"."Document No.") THEN IF Customer.GET(SalesInvHeader."Bill-to Customer No.") THEN BEGIN "VAT Registration No." := Customer."VAT Registration No."; //Add the following line. "Country/Region Code" := GetIntrastatCountryCode(Customer."Country/Region Code"); END; END ELSE IF SalesCrMemoHeader.GET(ValueEntry."Document No.") THEN IF Customer.GET(SalesCrMemoHeader."Bill-to Customer No.") THEN BEGIN "VAT Registration No." := Customer."VAT Registration No."; //Add the following line. "Country/Region Code" := GetIntrastatCountryCode(Customer."Country/Region Code"); END; END; ...기존 코드 3
... IF IntrastatJnlBatch.Type = IntrastatJnlBatch.Type :: Purchases THEN BEGIN IF (ItemVendor.GET("Item Ledger Entry"."Source No.","Item Ledger Entry"."Item No.","Item Ledger Entry"."Variant Code")) AND (ItemVendor."Country/Region of Origin Code" <> '') THEN //Delete the following line. "Country/Region of Origin Code" := ItemVendor."Country/Region of Origin Code" ELSE //Delete the following line. "Country/Region of Origin Code" := Item."Country/Region of Origin Code"; FindSourceCurrency( "Item Ledger Entry"."Source No.","Item Ledger Entry"."Document Date","Item Ledger Entry"."Posting Date"); END ELSE //Delete the following line. "Country/Region of Origin Code" := Item."Country/Region of Origin Code"; "Source Type" := "Source Type"::"Item entry"; ...대체 코드 3
... IF IntrastatJnlBatch.Type = IntrastatJnlBatch.Type :: Purchases THEN BEGIN IF (ItemVendor.GET("Item Ledger Entry"."Source No.","Item Ledger Entry"."Item No.","Item Ledger Entry"."Variant Code")) AND (ItemVendor."Country/Region of Origin Code" <> '') THEN //Add the following lin. "Country/Region of Origin Code" := GetIntrastatCountryCode(ItemVendor."Country/Region of Origin Code") ELSE //Add the following line. "Country/Region of Origin Code" := GetIntrastatCountryCode(Item."Country/Region of Origin Code"); FindSourceCurrency( "Item Ledger Entry"."Source No.","Item Ledger Entry"."Document Date","Item Ledger Entry"."Posting Date"); END ELSE //Add the following line. "Country/Region of Origin Code" := GetIntrastatCountryCode(Item."Country/Region of Origin Code"); "Source Type" := "Source Type"::"Item entry"; ...항목 원장 항목 가져오기 보고서(594)에서 InsertJobLedgerLine 함수의 코드를 다음과 같이 변경합니다.
기존 코드... Date := "Job Ledger Entry"."Posting Date"; //Delete the following line. "Country/Region Code" := "Job Ledger Entry"."Country/Region Code"; "Transaction Type" := "Job Ledger Entry"."Transaction Type"; ...대체 코드
... Date := "Job Ledger Entry"."Posting Date"; //Add the following line. "Country/Region Code" := GetIntrastatCountryCode("Job Ledger Entry"."Country/Region Code"); "Transaction Type" := "Job Ledger Entry"."Transaction Type"; ...
필수 구성 요소
이 핫픽스를 적용하려면 이탈리아 버전의 Microsoft Dynamics NAV 5.0 서비스 팩 1이 설치되어 있어야 합니다.
제거 정보
이 핫픽스는 제거할 수 없습니다.
Microsoft에서 이는 "적용 대상" 섹션에 나열된 Microsoft 제품에서의 문제임을 확인했습니다.
상태
참고 이 문서는 Microsoft 지원 부서에서 직접 작성한 "빠른 게시" 문서입니다. 여기에 포함된 정보는 새로운 문제에 대한 응답으로 있는 그대로 제공됩니다. 문서를 제공하는 속도로 인해 문서에 오자가 있을 수 있으며 사전 통지 없이 언제든지 수정될 수 있습니다. 다른 고려 사항은 사용 약관을 참조하십시오.