Accedi con Microsoft
Accedi o crea un account.
Salve,
Seleziona un altro account.
Hai più account
Scegli l'account con cui vuoi accedere.

Si verifica i seguenti problemi:

  • I valori di base e l'importo vengono arrotondati.

  • Le righe totale sono errate e genera il seguente messaggio di errore quando si tenta di inviare il file della pagina in:

    60201201 777777777

Seguire i passaggi nella sezione modifiche al codice per risolvere questo problema. Questo problema si verifica nei seguenti prodotti:

  • La versione portoghese di Microsoft Dynamics NAV 2009 R2

  • La versione portoghese di Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)

Risoluzione

Informazioni sull'hotfix

Un hotfix supportato è ora disponibile da Microsoft. Tuttavia, è destinato esclusivamente alla risoluzione del problema descritto in questo articolo. Applicarlo solo ai sistemi in cui si verificano questo problema specifico. Questo hotfix potrebbe essere sottoposto ad ulteriori test. Pertanto, se il problema non causa gravi difficoltà, consiglia di attendere il prossimo service pack di Microsoft Dynamics NAV 2009 o versione successiva di Microsoft Dynamics NAV contenente tale hotfix.

Nota: In casi particolari, le spese normalmente addebitate per le chiamate potrebbero essere annullate qualora un aggiornamento del supporto tecnico di Microsoft Dynamics e prodotti correlati di supporto determina che uno specifico aggiornamento risolverà il problema. I costi di supporto normale verranno applicati per eventuali ulteriori domande e problemi che non dovessero rientrare nello specifico aggiornamento in questione.

Informazioni sull'installazione

Microsoft fornisce esempi di programmazione a scopo puramente illustrativo, senza alcuna garanzia espressa o implicita. Ciò include, ma non limitato a, le garanzie implicite di commerciabilità o idoneità per uno scopo particolare. In questo articolo si presuppone che si abbia familiarità con il linguaggio di programmazione in questione e gli strumenti utilizzati per creare ed eseguire la procedura di debug. Tecnici del supporto Microsoft consentono di spiegare la funzionalità di una particolare procedura. Tuttavia, essi non modificherà questi esempi per fornire funzionalità aggiuntive o creare procedure atte a soddisfare specifiche esigenze.

Nota: Prima di installare questo hotfix, verificare che tutti gli utenti di client di Microsoft Dynamics NAV sono disconnessi dal sistema. Sono inclusi i servizi di Microsoft Dynamics NAV Application Server (NAS). Dovrebbe essere il solo l'utente client connesso quando si implementa questo hotfix.

Per implementare questo hotfix, è necessario disporre di una licenza di sviluppatore.

È consigliabile che l'account utente nella finestra Login Windows o Login Database assegnare l'ID di ruolo "SUPER". Se l'account utente non può essere assegnato l'ID ruolo "SUPER", è necessario verificare che l'account utente disponga delle autorizzazioni seguenti:

  • Autorizzazione alla modifica dell'oggetto che si desidera modificare.

  • L'autorizzazione di esecuzione per l'oggetto System Object ID 5210 e per il sistema oggetto ID 9015

    oggetto.

Nota: Non è necessario disporre dei diritti per gli archivi dati a meno che non è necessario eseguire il ripristino di dati.

Modifiche al codice

Nota: Sempre il codice di test consente di correggere in un ambiente controllato prima di applicare le correzioni per i computer di produzione.

Per risolvere questo problema, attenersi alla seguente procedura:

  1. Modificare il codice nella funzione InsertECDeclarationTrailer nella tabella buffer dei File di Report IVA (13380) come segue:
    Esistente co de

    ...BEGIN
    NewLine;
    //NAVPTL005.001,o InsertIntegerValue (89, 2);

    // Delete the following line.
    InsertIntegerValue (98, 2); //NAVPTL005.001,n

    InsertIntegerValue (LineNumber, 9);
    PadLinetill134Characters(Blank);
    END;
    ...

    Codice di sostituzione

    ...BEGIN
    NewLine;
    //NAVPTL005.001,o InsertIntegerValue (89, 2);

    // Add the following lines.
    //PT355807,o InsertIntegerValue (98, 2); //NAVPTL005.001,n
    InsertIntegerValue (89, 2); //PT355807,n
    // End of the added lines.

    InsertIntegerValue (LineNumber, 9);
    PadLinetill134Characters(Blank);
    END;
    ...
  2. Modificare il codice nella funzione InsertAnnex4041CustomerLine nella tabella buffer dei File di Report IVA (13380) come segue:
    Codice esistente

    ...InsertIntegerValue (pLineNumber, 5);
    InsertTextValue (pVATAnnexSetup."Tax Authority Code",2,Blank);
    InsertTextValue (pVATRegNo, 9,Blank);

    // Delete the following lines.
    InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
    // End of the deleted lines.

    InsertTextValue (Blank,92,Blank);
    END;
    ...

    Codice di sostituzione

    ...InsertIntegerValue (pLineNumber, 5);
    InsertTextValue (pVATAnnexSetup."Tax Authority Code",2,Blank);
    InsertTextValue (pVATRegNo, 9,Blank);

    // Add the following lines.
    //PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
    //PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
    InsertIntegerValue(ABS(ROUND(pVATEntry.Base*100,1,'<')),12); //PT355807,n
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12); //PT355807,n
    // End of the added lines.

    InsertTextValue (Blank,92,Blank);
    END;
    ...
  3. Modificare il codice nella funzione InsertAnnex4041DocumentLine nella tabella buffer dei File di Report IVA (13380) come segue:
    Codice esistente

    ...InsertIntegerValue (pLineNumber, 5);
    InsertTextValue (pVATAnnexSetup."Tax Authority Code",2,Blank);
    InsertTextValue(pDocNo,13,Blank);

    // Delete the following line.
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);

    InsertTextValue (Blank,100,Blank);
    END;
    ...

    Codice di sostituzione

    ...InsertIntegerValue (pLineNumber, 5);
    InsertTextValue (pVATAnnexSetup."Tax Authority Code",2,Blank);
    InsertTextValue(pDocNo,13,Blank);

    // Add the following lines.
    //PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12); //PT355807,n
    // End of the added lines.

    InsertTextValue (Blank,100,Blank);
    END;
    ...
  4. Modificare il codice nella funzione InsertAnnex4041ReasonLine nella tabella buffer dei File di Report IVA (13380) come segue:
    Codice esistente 1

    ...InsertTextValue (Blank,100,Blank);
    END;

    // Delete the following lines.
    PROCEDURE InsertAnnex4041ReasonLine@1000000003(pVATAnnexSetup@1000000000 : Record 13386;pVATEntry@1000000003 : Record 254);
    BEGIN
    NewLine;
    InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"2" THEN BEGIN
    InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
    InsertTextValue (Blank,50,Blank);
    // End of the deleted lines.

    END;

    IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"3" THEN BEGIN
    ...

    Codice sostitutivo 1

    ...InsertTextValue (Blank,100,Blank);
    END;

    // Add the following lines.
    PROCEDURE InsertAnnex4041ReasonLine@1000000003(pVATAnnexSetup@1000000000 : Record 13386;pVATEntry@1000000003 : Record 254;LineNo@1000000001 : Integer);
    BEGIN
    //PT355807,o NewLine;
    //PT355807,o InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"2" THEN BEGIN
    //PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
    //PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
    //PT355807,o InsertTextValue (Blank,50,Blank);
    //PT355807,sn
    IF (pVATAnnexSetup.SubSection = 'a') OR (pVATAnnexSetup.SubSection = '') THEN BEGIN
    NewLine;
    InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    END;
    IF (pVATAnnexSetup.SubSection = 'b') AND (LineNo=1) THEN BEGIN
    NewLine;
    InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    InsertIntegerValue(0,24);
    END;
    InsertIntegerValue(ABS(ROUND(pVATEntry.Base*100,1,'<')),12);
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12);
    //PT355807,en
    // End of the added lines.

    END;

    IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"3" THEN BEGIN
    ...

    Codice esistente 2

    ...IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"3" THEN BEGIN
    IF (pVATAnnexSetup.SubSection = 'a') OR (pVATAnnexSetup.SubSection = 'A') THEN BEGIN

    // Delete the following lines.
    InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
    END;
    IF (pVATAnnexSetup.SubSection = 'b') OR (pVATAnnexSetup.SubSection = 'B') THEN BEGIN
    InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
    // End of the deleted lines.

    END;
    END;
    ...

    Codice di sostituzione 2

    ...IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"3" THEN BEGIN
    IF (pVATAnnexSetup.SubSection = 'a') OR (pVATAnnexSetup.SubSection = 'A') THEN BEGIN

    // Add the following lines.
    //PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
    //PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
    //PT355807,sn
    IF (LineNo=1) THEN BEGIN
    NewLine;
    InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    InsertIntegerValue(0,24);
    END;
    InsertIntegerValue(ABS(ROUND(pVATEntry.Base*100,1,'<')),12);
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12);
    //PT355807,en
    END;
    IF (pVATAnnexSetup.SubSection = 'b') OR (pVATAnnexSetup.SubSection = 'B') THEN BEGIN
    //PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
    //PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
    //PT355807,sn
    IF (LineNo=1) THEN BEGIN
    NewLine;
    InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    InsertIntegerValue(0,48);
    END;
    InsertIntegerValue(ABS(ROUND(pVATEntry.Base*100,1,'<')),12);
    InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12);
    //PT355807,en
    // End of the added lines.

    END;
    END;
    ...

    3 il codice esistente

    ...END;
    END;

    // Delete the following lines.
    InsertTextValue (Blank,48,Blank);;
    END;

    PROCEDURE LastVATAnnex40Line@1000000006(pVATregNo@1000000000 : Text[9];pResumes@1000000001 : ARRAY [10] OF Integer);
    BEGIN
    // End of the deleted lines.

    NewLine;
    InsertTextValue ('96',2,Blank);
    InsertIntegerValue (1, 5);
    ...

    Codice di sostituzione 3

    ...END;
    END;

    // Add the following lines.
    //PT355807,o InsertTextValue (Blank,48,Blank);
    END;

    PROCEDURE LastVATAnnex40Line@1000000006(pTotalAmount@1000000002 : Decimal;pVATregNo@1000000000 : Text[9];pResumes@1000000001 : ARRAY [10] OF Integer);
    BEGIN
    //PT355807,o NewLine;
    InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
    InsertTextValue (Blank,48,Blank);
    InsertVAT40LastLine(24);
    // End of the added lines.

    NewLine;
    InsertTextValue ('96',2,Blank);
    InsertIntegerValue (1, 5);
    ...
  5. Modificare il codice nella funzione LastVATAnnex40Line nella tabella buffer dei File di Report IVA (13380) come segue:
    Codice esistente 1

    ...InsertTextValue (Blank,118,Blank);
    NewLine;
    InsertTextValue ('69',2,Blank);

    // Delete the following line.
    InsertIntegerValue (pResumes[1], 5);

    InsertIntegerValue (pResumes[2], 5);
    InsertIntegerValue (pResumes[3], 5);
    InsertIntegerValue (pResumes[4], 5);
    ...

    Codice sostitutivo 1

    ...InsertTextValue (Blank,118,Blank);
    NewLine;
    InsertTextValue ('69',2,Blank);

    // Add the following line.
    //PT355807,o InsertIntegerValue (pResumes[1], 5);

    InsertIntegerValue (pResumes[2], 5);
    InsertIntegerValue (pResumes[3], 5);
    InsertIntegerValue (pResumes[4], 5);
    ...

    Codice esistente 2

    ...InsertIntegerValue (pResumes[7], 5);
    InsertIntegerValue (pResumes[8], 5);
    InsertIntegerValue (1, 5);
    END;

    PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
    ...

    Codice di sostituzione 2

    ...InsertIntegerValue (pResumes[7], 5);
    InsertIntegerValue (pResumes[8], 5);
    InsertIntegerValue (1, 5);

    // Add the following line.
    InsertTextValue (Blank,94,Blank); //PT355807,n

    END;

    PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
    ...
  6. Modificare il codice nella funzione LastVATAnnex41Line nella tabella buffer dei File di Report IVA (13380) come segue:
    Codice esistente 1

    ...PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
    BEGIN

    // Delete the following lines.
    NewLine;
    InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    InsertIntegerValue(ABS(ROUND(pTotalAmount,1,'<')*100),12);
    NewLine;
    InsertTextValue ('89',2,Blank);
    InsertIntegerValue (pResumes[1], 5);
    // End of the deleted lines.

    InsertIntegerValue (pResumes[2], 5);
    InsertIntegerValue (pResumes[3], 5);
    InsertIntegerValue (pResumes[4], 5);
    ...

    Codice sostitutivo 1

    ...PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
    BEGIN

    // Add the following lines.
    //PT355807,o NewLine;
    //PT355807,o InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
    InsertTextValue (Blank,72,Blank);
    InsertVAT41LastLine(24);
    NewLine;
    InsertTextValue ('89',2,Blank);
    //PT355807,o InsertIntegerValue (pResumes[1], 5);
    // End of the added lines.

    InsertIntegerValue (pResumes[2], 5);
    InsertIntegerValue (pResumes[3], 5);
    InsertIntegerValue (pResumes[4], 5);
    ...

    Codice esistente 2

    ...InsertIntegerValue (pResumes[4], 5);
    InsertIntegerValue (pResumes[5], 5);
    InsertIntegerValue (pResumes[6], 5);
    END;

    BEGIN
    ...

    Codice di sostituzione 2

    ...InsertIntegerValue (pResumes[4], 5);
    InsertIntegerValue (pResumes[5], 5);
    InsertIntegerValue (pResumes[6], 5);

    // Add the following lines.
    InsertIntegerValue (pResumes[7], 5); //PT355807,n
    InsertTextValue (Blank,104,Blank); //PT355807,n
    END;

    PROCEDURE InsertVAT40LastLine@1000000005(Size@1000000000 : Integer);
    BEGIN
    //PT355807,sn
    FIND('+');
    IF STRLEN("Line Value") <> 134 THEN BEGIN
    "Line Value" := COPYSTR("Line Value",1,50) + CONVERTSTR (FORMAT (0, Size, 0), Blank, HeadingZero) + COPYSTR("Line Value",51);
    MODIFY;
    END;
    //PT355807,en
    END;

    PROCEDURE InsertVAT41LastLine@1000000007(Size@1000000000 : Integer);
    BEGIN
    //PT355807,sn
    FIND('+');
    IF STRLEN("Line Value") <> 134 THEN BEGIN
    "Line Value" := COPYSTR("Line Value",1,26) + CONVERTSTR (FORMAT (0, Size, 0), Blank, HeadingZero) + COPYSTR("Line Value",27);
    MODIFY;
    END;
    //PT355807,en
    END;

    PROCEDURE LastVATAnnex40Line2@1000000009(pVATAnnexSetup@1000000003 : Record 13386;pTotalAmount@1000000002 : Decimal;pVATregNo@1000000000 : Text[9];pResumes@1000000001 : ARRAY [10] OF Integer);
    BEGIN
    //PT355807,sn
    NewLine;
    InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    InsertIntegerValue(0,72);
    InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
    InsertTextValue (Blank,48,Blank);
    NewLine;
    InsertTextValue ('96',2,Blank);
    InsertIntegerValue (1, 5);
    InsertTextValue(pVATregNo,9,Blank);
    InsertTextValue (Blank,118,Blank);
    NewLine;
    InsertTextValue ('69',2,Blank);
    InsertIntegerValue (pResumes[2], 5);
    InsertIntegerValue (pResumes[3], 5);
    InsertIntegerValue (pResumes[4], 5);
    InsertIntegerValue (pResumes[5], 5);
    InsertIntegerValue (pResumes[6], 5);
    InsertIntegerValue (pResumes[7], 5);
    InsertIntegerValue (pResumes[8], 5);
    InsertIntegerValue (1, 5);
    InsertTextValue (Blank,92,Blank);
    //PT355807,en
    END;

    PROCEDURE LastVATAnnex41Line2@1000000008(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
    BEGIN
    //PT355807,sn
    NewLine;
    InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
    InsertIntegerValue(0,48);
    InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
    InsertTextValue (Blank,72,Blank);
    NewLine;
    InsertTextValue ('89',2,Blank);
    InsertIntegerValue (pResumes[2], 5);
    InsertIntegerValue (pResumes[3], 5);
    InsertIntegerValue (pResumes[4], 5);
    InsertIntegerValue (pResumes[5], 5);
    InsertIntegerValue (pResumes[6], 5);
    InsertIntegerValue (pResumes[7], 5);
    InsertTextValue (Blank,102,Blank);
    //NAVPTL005.002,en
    // End of the added lines.

    END;

    BEGIN
    ...
  7. Modificare il codice del report IVA istruzione (PT) (13398) come segue:
    Codice esistente 1

    ...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
    LineNo += 1
    ELSE BEGIN

    //Delete the following lines.
    IndiceArray += 1;
    ResumeLines[IndiceArray] := LineNo;
    LastRecordType := recVATAnnexSetup."Record Type";
    LineNo := 1;
    // End of the deleted lines.

    END;

    VATRepBuffer.InsertAnnex4041CustomerLine(recVATAnnexSetup,LineNo,"VAT Registration No.","VAT Entry Customer");
    ...

    Codice sostitutivo 1

    ...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
    LineNo += 1
    ELSE BEGIN

    // Add the following lines.
    //PT355807,o IndiceArray += 1;
    //PT355807,sn
    EVALUATE(recType,recVATAnnexSetup."Record Type");
    IF AnnexFilter = 40 THEN
    IndiceArray := recType - 60
    ELSE
    IndiceArray := recType - 80;
    //PT355807,en
    ResumeLines[IndiceArray] := LineNo;
    LastRecordType := recVATAnnexSetup."Record Type";
    LineNo := 1;
    // End of the added lines.

    END;

    VATRepBuffer.InsertAnnex4041CustomerLine(recVATAnnexSetup,LineNo,"VAT Registration No.","VAT Entry Customer");
    ...

    Codice esistente 2

    ...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
    LineNo += 1
    ELSE BEGIN

    // Delete the following lines.
    IndiceArray += 1;
    ResumeLines[IndiceArray] := LineNo;
    LastRecordType := recVATAnnexSetup."Record Type";
    LineNo := 1;
    // End of the deleted lines.

    END;

    VATRepBuffer.InsertAnnex4041DocumentLine(recVATAnnexSetup,LineNo,"External Document No.","VAT Entry Document No.");
    ...

    Codice di sostituzione 2

    ...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
    LineNo += 1
    ELSE BEGIN

    // Add the following lines.
    //PT355807,o IndiceArray += 1;
    //PT355807,sn
    EVALUATE(recType,recVATAnnexSetup."Record Type");
    IF AnnexFilter = 40 THEN
    IndiceArray := recType - 60
    ELSE
    IndiceArray := recType - 80;
    //PT355807,en
    ResumeLines[IndiceArray] := LineNo;
    LastRecordType := recVATAnnexSetup."Record Type";
    LineNo := 1;
    // End of the added lines.

    END;

    VATRepBuffer.InsertAnnex4041DocumentLine(recVATAnnexSetup,LineNo,"External Document No.","VAT Entry Document No.");
    ...

    3 il codice esistente

    ...OnPostDataItem=BEGIN
    CLEAR(recVATAnnexSetup);

    // Delete the following lines.
    recVATAnnexSetup.SETRANGE("Reason Code", "Reason Code");
    IF recVATAnnexSetup.FINDFIRST THEN

    IF AnnexFilter = 41 THEN
    VATRepBuffer.LastVATAnnex41Line(recVATAnnexSetup,TotalVATAnnexAmount,ResumeLines);
    // End of the deleted lines.

    END;

    TotalFields=Base,Amount;
    ...

    Codice di sostituzione 3

    ...OnPostDataItem=BEGIN
    CLEAR(recVATAnnexSetup);

    // Add the following lines.
    booTotal := FALSE; //PT355807,n
    recVATAnnexSetup.SETRANGE("Reason Code", "Reason Code");
    //PT355807,o IF recVATAnnexSetup.FINDFIRST THEN
    //PT355807,o IF AnnexFilter = 41 THEN
    //PT355807,o VATRepBuffer.LastVATAnnex41Line(recVATAnnexSetup,TotalVATAnnexAmount,ResumeLines);
    //PT355807,sn
    IF recVATAnnexSetup.FINDFIRST THEN BEGIN
    IF AnnexFilter = 41 THEN BEGIN
    booTotal := TRUE;
    VATRepBuffer.LastVATAnnex41Line(recVATAnnexSetup,TotalVATAnnexAmount,ResumeLines);
    END;

    IF AnnexFilter = 40 THEN BEGIN
    booTotal := TRUE;
    VATRepBuffer.LastVATAnnex40Line(TotalVATAnnexAmount,FORMAT(FiscalNo),ResumeLines);
    END;
    END;
    //PT355807,en
    // End of the added lines.

    END;

    TotalFields=Base,Amount;
    ...

    4 il codice esistente

    ...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
    LineNo += 1
    ELSE BEGIN

    // Delete the following lines.
    IndiceArray += 1;
    ResumeLines[IndiceArray] := LineNo;
    LastRecordType := recVATAnnexSetup."Record Type";
    LineNo := 1;
    // End of the deleted lines.

    END;

    TotalVATAnnexBase += Base;
    ...

    Codice di sostituzione 4

    ...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
    LineNo += 1
    ELSE BEGIN

    // Add the following lines.
    //PT355807,o IndiceArray += 1;
    //PT355807,sn
    EVALUATE(recType,recVATAnnexSetup."Record Type");
    IF AnnexFilter = 40 THEN
    IndiceArray := recType - 60
    ELSE
    IndiceArray := recType - 80;
    //PT355807,en
    ResumeLines[IndiceArray] := LineNo;
    LastRecordType := recVATAnnexSetup."Record Type";
    LineNo := 1;
    // End of the added lines.

    END;

    TotalVATAnnexBase += Base;
    ...

    5 il codice esistente

    ...RegistersNumber += 1;

    // Delete the following line.
    VATRepBuffer.InsertAnnex4041ReasonLine(recVATAnnexSetup,"VAT Entry Reason Code");

    END;

    }
    ...

    Codice di sostituzione 5

    ...RegistersNumber += 1;


    + //PT355807,o VATRepBuffer.InsertAnnex4041ReasonLine(recVATAnnexSetup,"VAT Entry Reason Code");
    + VATRepBuffer.InsertAnnex4041ReasonLine(recVATAnnexSetup,"VAT Entry Reason Code",LineNo); //PT355807,n
    END;

    }

    6 il codice esistente

    ...WHERE(Number=CONST(1));
    DataItemVarName=TotalInteger;
    OnAfterGetRecord=BEGIN

    // Delete the following lines.
    IF AnnexFilter = 40 THEN
    VATRepBuffer.LastVATAnnex40Line(FORMAT(FiscalNo),ResumeLines);
    // End of the deleted lines.

    END;

    }
    ...

    Codice di sostituzione 6

    ...WHERE(Number=CONST(1));
    DataItemVarName=TotalInteger;
    OnAfterGetRecord=BEGIN

    // Add the following lines.
    //PT355807,o IF AnnexFilter = 40 THEN
    //PT355807,o VATRepBuffer.LastVATAnnex40Line(FORMAT(FiscalNo),ResumeLines);
    //PT355807,sn
    IF NOT booTotal THEN BEGIN
    recVATAnnexSetup2.RESET;
    recVATAnnexSetup2.SETFILTER(Annex, FORMAT(AnnexFilter));
    IF recVATAnnexSetup2.FINDLAST THEN BEGIN
    IF AnnexFilter = 40 THEN
    VATRepBuffer.LastVATAnnex40Line2(recVATAnnexSetup2,TotalVATAnnexAmount,FORMAT(FiscalNo),ResumeLines);

    IF AnnexFilter = 41 THEN
    VATRepBuffer.LastVATAnnex41Line2(recVATAnnexSetup2,TotalVATAnnexAmount,ResumeLines);
    END;
    END;
    //PT355807,en
    // End of the added lines.

    END;

    }
    ...

    7 il codice esistente

    ...LastRecordType@1000000009 : Text[2];
    TotalVATAnnexBase@1000000005 : Decimal;
    TotalVATAnnexAmount@1000000006 : Decimal;

    PROCEDURE CalcLineTotal2C@1110001(VATStmtLine2@1110000 : Record 256;Level@1110001 : Integer) : Boolean;
    BEGIN
    ...

    Codice di sostituzione 7

    ...LastRecordType@1000000009 : Text[2];
    TotalVATAnnexBase@1000000005 : Decimal;
    TotalVATAnnexAmount@1000000006 : Decimal;

    // Add the following lines.
    booTotal@1000000013 : Boolean;
    recVATAnnexSetup2@1000000014 : Record 13386;
    recType@1000000015 : Integer;
    // End of the added lines.

    PROCEDURE CalcLineTotal2C@1110001(VATStmtLine2@1110000 : Record 256;Level@1110001 : Integer) : Boolean;
    BEGIN
    ...


Prerequisiti

Deve avere uno dei seguenti prodotti per applicare questo hotfix:

  • La versione portoghese di Microsoft Dynamics NAV 2009 R2

  • La versione portoghese di Microsoft Dynamics NAV 2009 SP1

Informazioni sulla rimozione

Non è possibile rimuovere questo hotfix.

Stato

Microsoft ha confermato che questo è un problema dei prodotti Microsoft elencati nella sezione "Si applica a".

Nota: Si tratta di un articolo a "Pubblicazione Veloce" creato direttamente all'interno dell'organizzazione di supporto Microsoft. Le informazioni contenute nel presente documento sono fornite così come sono in risposta a problemi urgenti. Per la velocità in rendendo disponibili, i materiali possono includere errori tipografici e possono essere modificati in qualsiasi momento senza preavviso. Per altre considerazioni, vedere Condizioni di utilizzo.

Serve aiuto?

Vuoi altre opzioni?

Esplorare i vantaggi dell'abbonamento e i corsi di formazione, scoprire come proteggere il dispositivo e molto altro ancora.

Le community aiutano a porre e a rispondere alle domande, a fornire feedback e ad ascoltare gli esperti con approfondite conoscenze.

Queste informazioni sono risultate utili?

Come valuti la qualità della lingua?
Cosa ha influito sulla tua esperienza?
Premendo Inviare, il tuo feedback verrà usato per migliorare i prodotti e i servizi Microsoft. L'amministratore IT potrà raccogliere questi dati. Informativa sulla privacy.

Grazie per il feedback!

×