Denne artikkelen gjelder for Microsoft Dynamics NAV for det spanske språket (es).
Symptomer
La oss si at det er merket av for EU-tjenesten i dialogboksen Oppsett av MVA-innlegg i den spanske versjonen av Microsoft Dynamics NAV. Når du genererer deklarasjonsfilen 349, er ikke mengden i den eksporterte filen feil.
Dette problemet oppstår i følgende produkter:-
Den spanske versjonen av Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)
-
Den spanske versjonen av Microsoft Dynamics NAV 5.0 Service Pack 1 (SP1)
Løsning
Hurtigreparasjonsinformasjon
En støttet hurtigreparasjon er nå tilgjengelig fra Microsoft. Det er imidlertid bare ment å løse problemet som er beskrevet i denne artikkelen. Bruk den bare på systemer som har dette spesifikke problemet. Denne hurtigreparasjonen kan bli ytterligere testing. Hvis du ikke er alvorlig påvirket av dette problemet, anbefaler vi derfor at du venter på neste oppdateringspakke for Microsoft Dynamics NAV 2009 eller den neste Microsoft Dynamics NAV-versjonen som inneholder denne hurtigreparasjonen.
I spesielle tilfeller kan kostnader som vanligvis påløper for kundestøttesamtaler, bli avbrutt hvis en teknisk kundestøttetekniker for Microsoft Dynamics og relaterte produkter fastslår at en bestemt oppdatering vil løse problemet. De vanlige kundestøttekostnadene vil gjelde for flere kundestøttespørsmål og -problemer som ikke kvalifiserer for den aktuelle oppdateringen.
Installasjonsinformasjon
Microsoft gir bare programmeringsekseringer for illustrasjon, uten garanti enten uttrykt eller underforstått. Dette omfatter, men er ikke begrenset til, impliserende garantier om forhandlerbarhet eller egnethet til et bestemt formål. Denne artikkelen forutsetter at du er kjent med programmeringsspråket som demonstreres, og med verktøyene som brukes til å opprette og feilsøke prosedyrer. Kundestøtteteknikere fra Microsoft kan hjelpe deg med å forklare funksjonaliteten til en bestemt prosedyre, men de vil ikke endre disse eksemplene for å gi ekstra funksjonalitet eller konstruere prosedyrer for å oppfylle dine spesifikke krav.
Obs! Før du installerer denne hurtigreparasjonen, må du kontrollere at alle brukere av Microsoft Navision-klienten er logget av systemet. Dette omfatter brukere av Microsoft Navision Application Services (NAS) klientbrukere. Du bør være den eneste klientbrukeren som er logget på når du implementerer denne hurtigreparasjonen. Hvis du vil implementere denne hurtigreparasjonen, må du ha en utviklerlisens. Vi anbefaler at brukerkontoen i vinduet for Windows-pålogginger eller i vinduet For databasepålogginger tilordnes «SUPER»-rolle-ID-en. Hvis brukerkontoen ikke kan tilordnes SUPER-rolle-ID-en, må du kontrollere at brukerkontoen har følgende tillatelser:-
Endre-tillatelsen for objektet som du skal endre.
-
Utfør-tillatelsen for systemobjekt-ID 5210-objektet og for objektet Systemobjekt-ID 9015.
Vær oppmerksom på at du ikke trenger å ha rettigheter til datalagrene med mindre du trenger å utføre datareparasjon.
Kodeendringer
Test alltid kodeoppdateringer i et kontrollert miljø før du bruker løsningene på produksjonsdatamaskinene.
Gjør følgende for å løse dette problemet:-
Endre koden i inndelingene for dataelement nummer 5 i deklarasjonsrapporten Lag 349 (88) på følgende måte:
Eksisterende kode 1BEGIN
REPEAT //Delete the following line. VATInvSales.RESET; VATInvSales.SETRANGE(VATInvSales.Type,VATInvSales.Type::Sale); VATInvSales.SETRANGE(VATInvSales."Document Type",VATInvSales."Document Type"::Invoice);Erstatningskode 1
BEGIN
REPEAT //Add the follwing lines. LastTransactionNo := 0; VATInvSales.RESET; VATInvSales.SETCURRENTKEY("Transaction No."); //End of the lines. VATInvSales.SETRANGE(VATInvSales.Type,VATInvSales.Type::Sale); VATInvSales.SETRANGE(VATInvSales."Document Type",VATInvSales."Document Type"::Invoice);Eksisterende kode 2
IF "VAT Registration No." <> '' THEN BEGIN
IF AmountToIncludein349 <> 0 THEN BEGIN //Delete the following lines. OpTriang := 'X'; AmountOpTri := AmountOpTri + AmountToIncludein349 //End of the lines. END ELSE BEGIN OpTriang := 'X';Erstatningskode 2
IF "VAT Registration No." <> '' THEN BEGIN
IF AmountToIncludein349 <> 0 THEN BEGIN //Add the following lines. IF VATInvSales."Transaction No." <> LastTransactionNo THEN BEGIN OpTriang := 'X'; AmountOpTri := AmountOpTri + AmountToIncludein349; END; //End of the lines. END ELSE BEGIN OpTriang := 'X';Eksisterende kode 3
// OpTriang := 'X';
// AmountOpTri := AmountOpTri + VATInvSales.Base; UNTIL VATInvSales.NEXT = 0; END;Erstatningskode 3
// OpTriang := 'X';
// AmountOpTri := AmountOpTri + VATInvSales.Base; //Add the following line. LastTransactionNo := VATInvSales."Transaction No."; UNTIL VATInvSales.NEXT = 0; END;Eksisterende kode 4
UNTIL VATInvSales.NEXT = 0;
END; //Delete the following line. VATInvSales.RESET; VATInvSales.SETRANGE(VATInvSales.Type,VATInvSales.Type::Sale); VATInvSales.SETRANGE(VATInvSales."Document Type",VATInvSales."Document Type"::Invoice);Erstatningskode 4
UNTIL VATInvSales.NEXT = 0;
END; //Add the following lines. LastTransactionNo := 0; VATInvSales.RESET; VATInvSales.SETCURRENTKEY("Transaction No."); //End of the lines. VATInvSales.SETRANGE(VATInvSales.Type,VATInvSales.Type::Sale); VATInvSales.SETRANGE(VATInvSales."Document Type",VATInvSales."Document Type"::Invoice);Eksisterende kode 5
((VATInvSales."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
IF "VAT Registration No." <> '' THEN BEGIN //Delete the following lines. IF AmountToIncludein349 <> 0 THEN NormalAmount := NormalAmount + AmountToIncludein349 ELSE //End of the lines. NormalAmount := NormalAmount + VATInvSales.Base; END ELSEErstatningskode 5
((VATInvSales."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
IF "VAT Registration No." <> '' THEN BEGIN //Add the following lines. IF AmountToIncludein349 <> 0 THEN BEGIN IF VATInvSales."Transaction No." <> LastTransactionNo THEN NormalAmount := NormalAmount + AmountToIncludein349; END ELSE //End of the lines. NormalAmount := NormalAmount + VATInvSales.Base; END ELSEEksisterende kode 6
END;
// NormalAmount := NormalAmount + VATInvSales.Base; UNTIL VATInvSales.NEXT = 0; END;Erstatningskode 6
END;
// NormalAmount := NormalAmount + VATInvSales.Base; //Add the following line. LastTransactionNo := VATInvSales."Transaction No."; UNTIL VATInvSales.NEXT = 0; END;Eksisterende kode 7
END;
//Delete the following line. VATInvSales.RESET; VATInvSales.SETRANGE(Type,VATInvSales.Type::Sale); VATInvSales.SETRANGE("Document Type",VATInvSales."Document Type"::Invoice);Erstatningskode 7
END;
//Add the following lines. LastTransactionNo := 0; VATInvSales.RESET; VATInvSales.SETCURRENTKEY("Transaction No."); //End of the lines. VATInvSales.SETRANGE(Type,VATInvSales.Type::Sale); VATInvSales.SETRANGE("Document Type",VATInvSales."Document Type"::Invoice);Eksisterende kode 8
((VATInvSales."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
IF "VAT Registration No." <> '' THEN BEGIN //Delete the following lines. IF AmountToIncludein349 <> 0 THEN AmountEUService := AmountEUService + AmountToIncludein349 ELSE //End of the lines. AmountEUService := AmountEUService + VATInvSales.Base; END ELSEErstatningskode 8
((VATInvSales."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
IF "VAT Registration No." <> '' THEN BEGIN //Add the following lines. IF AmountToIncludein349 <> 0 THEN BEGIN IF VATInvSales."Transaction No." <> LastTransactionNo THEN AmountEUService := AmountEUService + AmountToIncludein349; END ELSE //End of the lines. AmountEUService := AmountEUService + VATInvSales.Base; END ELSEEksisterende kode 9
END;
END; UNTIL VATInvSales.NEXT = 0;Erstatningskode 9
END;
END; //Add the following line. LastTransactionNo := VATInvSales."Transaction No."; UNTIL VATInvSales.NEXT = 0; -
Endre koden i inndelingene for dataelement nummer 6 i deklarasjonsrapporten Lag 349 (88) på følgende måte:
Eksisterende kode 1BEGIN
REPEAT //Delete the following line. VATInvPurch.RESET; VATInvPurch.SETRANGE(VATInvPurch.Type,VATInvPurch.Type::Purchase); VATInvPurch.SETRANGE(VATInvPurch."Document Type",VATInvPurch."Document Type"::Invoice);Erstatningskode 1
BEGIN
REPEAT //Add the following lines. LastTransactionNo := 0; VATInvPurch.RESET; VATInvPurch.SETCURRENTKEY("Transaction No."); //End of the lines. VATInvPurch.SETRANGE(VATInvPurch.Type,VATInvPurch.Type::Purchase); VATInvPurch.SETRANGE(VATInvPurch."Document Type",VATInvPurch."Document Type"::Invoice);Eksisterende kode 2
IF "VAT Registration No." <> '' THEN BEGIN
IF AmountToIncludein349 <> 0 THEN BEGIN //Delete the following lines. OpTriang := 'X'; AmountOpTri := AmountOpTri + AmountToIncludein349; //End of the lines. END ELSE BEGIN OpTriang := 'X';Erstatningskode 2
IF "VAT Registration No." <> '' THEN BEGIN
IF AmountToIncludein349 <> 0 THEN BEGIN //Add the following lines. IF VATInvPurch."Transaction No." <> LastTransactionNo THEN BEGIN OpTriang := 'X'; AmountOpTri := AmountOpTri + AmountToIncludein349; END; //End of the lines. END ELSE BEGIN OpTriang := 'X';Eksisterende kode 3
// OpTriang := 'X';
// AmountOpTri := AmountOpTri + VATInvPurch.Base; UNTIL VATInvPurch.NEXT = 0; END;Erstatningskode 3
// OpTriang := 'X';
// AmountOpTri := AmountOpTri + VATInvPurch.Base; //Add the following line. LastTransactionNo := VATInvPurch."Transaction No."; UNTIL VATInvPurch.NEXT = 0; END;Eksisterende kode 4
UNTIL VATInvPurch.NEXT = 0;
END; //Delete the following line. VATInvPurch.RESET; VATInvPurch.SETRANGE(VATInvPurch.Type,VATInvPurch.Type::Purchase); VATInvPurch.SETRANGE(VATInvPurch."Document Type",VATInvPurch."Document Type"::Invoice);Erstatningskode 4
UNTIL VATInvPurch.NEXT = 0;
END; //Add the following lines. LastTransactionNo := 0; VATInvPurch.RESET; VATInvPurch.SETCURRENTKEY("Transaction No."); //End of the lines. VATInvPurch.SETRANGE(VATInvPurch.Type,VATInvPurch.Type::Purchase); VATInvPurch.SETRANGE(VATInvPurch."Document Type",VATInvPurch."Document Type"::Invoice);Eksisterende kode 5
((VATInvPurch."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
IF "VAT Registration No." <> '' THEN BEGIN //Delete the following lines. IF AmountToIncludein349 <> 0 THEN NormalAmount := NormalAmount + AmountToIncludein349 ELSE //End of the lines. NormalAmount := NormalAmount + VATInvPurch.Base; END ELSEErstatningskode 5
((VATInvPurch."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
IF "VAT Registration No." <> '' THEN BEGIN //Add the following lines. IF AmountToIncludein349 <> 0 THEN BEGIN IF VATInvPurch."Transaction No." <> LastTransactionNo THEN NormalAmount := NormalAmount + AmountToIncludein349; END ELSE //End of the lines. NormalAmount := NormalAmount + VATInvPurch.Base; END ELSEEksisterende kode 6
END;
// NormalAmount := NormalAmount + VATInvPurch.Base; UNTIL VATInvPurch.NEXT = 0; END;Erstatningskode 6
END;
// NormalAmount := NormalAmount + VATInvPurch.Base; //Add the following line. LastTransactionNo := VATInvPurch."Transaction No."; UNTIL VATInvPurch.NEXT = 0; END;Eksisterende kode 7
UNTIL VATInvPurch.NEXT = 0;
END; //Delete the following line. VATInvPurch.RESET; VATInvPurch.SETRANGE(Type,VATInvPurch.Type::Purchase); VATInvPurch.SETRANGE("Document Type",VATInvPurch."Document Type"::Invoice);Erstatningskode 7
UNTIL VATInvPurch.NEXT = 0;
END; //Add the following lines. LastTransactionNo := 0; VATInvPurch.RESET; VATInvPurch.SETCURRENTKEY("Transaction No."); //End of the lines. VATInvPurch.SETRANGE(Type,VATInvPurch.Type::Purchase); VATInvPurch.SETRANGE("Document Type",VATInvPurch."Document Type"::Invoice);Eksisterende kode 8
THEN BEGIN
IF "VAT Registration No." <> '' THEN BEGIN //Delete the following lines. IF AmountToIncludein349 <> 0 THEN AmountEUService := AmountEUService + AmountToIncludein349 ELSE //End of the lines. AmountEUService := AmountEUService + VATInvPurch.Base; END ELSEErstatningskode 8
THEN BEGIN
IF "VAT Registration No." <> '' THEN BEGIN //Add the following lines. IF AmountToIncludein349 <> 0 THEN BEGIN IF VATInvPurch."Transaction No." <> LastTransactionNo THEN AmountEUService := AmountEUService + AmountToIncludein349; END ELSE //End of the lines. AmountEUService := AmountEUService + VATInvPurch.Base; END ELSEEksisterende kode 9
END;
END; UNTIL VATInvPurch.NEXT = 0;Erstatningskode 9
END;
END; //Add the following line. LastTransactionNo := VATInvPurch."Transaction No."; UNTIL VATInvPurch.NEXT = 0; -
Legg til en ny global variabel i deklarasjonsrapporten Lag 349 (88), og angi deretter variabelen på følgende måte:
-
Navn: LastTransactionNo@1100072
-
Datatype: Heltall
-
Forutsetninger
Du må ha et av følgende produkter installert for å bruke denne hurtigreparasjonen:
-
Den spanske versjonen av Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)
-
Den spanske versjonen av Microsoft Dynamics NAV 5.0 Service Pack 1 (SP1)
Du må ha spansk 349-rapporten installert for å bruke denne hurtigreparasjonen.Spanish 349 ReportI tillegg må du ha MVA 2010-pakken installert for å bruke denne hurtigreparasjonen. Hvis du vil ha mer informasjon, kan du gå til følgende Microsoft-nettsted: Microsoft Dynamics NAV Support for VAT 2010
Hvis du vil ha mer informasjon, kan du gå til følgende Microsoft-nettsted:Informasjon om fjerning
Du kan ikke fjerne denne hurtigreparasjonen.
Status
Microsoft har bekreftet at dette er et problem i Microsoft-produkter som er oppført under Gjelder for.
Obs! Dette er en FAST PUBLISH-artikkel som er opprettet direkte fra microsofts støtteorganisasjon. Informasjonen i dette feltet er inkludert som et svar på fremvoksende problemer. Som et resultat av hastigheten på å gjøre det tilgjengelig, kan materialene inneholde typografiske feil og kan endres når som helst uten varsel. Se bruksvilkårene for andre hensyn.