Logg på med Microsoft
Logg på, eller opprett en konto.
Hei,
Velg en annen konto.
Du har flere kontoer
Velg kontoen du vil logge på med.

Denne artikkelen gjelder for Microsoft Dynamics NAV for italiensk (den)-språk.

Symptomer

I den italienske versjonen av Microsoft Dynamics NAV 2009 beregnes systemet ikke verdien "Beløp for å betale" og withholding tax-beløpet som forventet. Dette problemet oppstår i følgende produkter:

  • Den italienske versjonen av Microsoft Dynamics NAV 2009 R2

  • Den italienske versjonen av Microsoft Dynamics NAV 2009 Service Pack 1

Oppløsning

Informasjon om hurtigreparasjon

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 bestemte problemet. Denne hurtigreparasjonen kan gjennomgå 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 versjonen av Microsoft Dynamics NAV som inneholder denne hurtigreparasjonen.

Obs! I spesielle tilfeller avgifter som vanligvis påløper for støtte samtaler kan avbrytes hvis en kundestøttemedarbeider for Microsoft Dynamics og beslektede produkter avgjør at en bestemt oppdatering løser problemet. Vanlige kundestøttekostnader gjelder for ytterligere kundestøttespørsmål og problemer som ikke dekkes av den gjeldende oppdateringen.


Installasjonsinformasjon

Microsoft bruker ment som eksempler, uten garanti, verken direkte eller indirekte. Dette inkluderer, men er ikke begrenset til, eventuelle stilltiende garantier om salgbarhet eller anvendelighet for særskilte formål. Denne artikkelen forutsetter at du er kjent med programmeringsspråket som anvendes, og verktøyene som brukes til å opprette og feilsøke prosedyrer. Microsofts kundestøtteteknikere kan hjelpe deg med å forklare funksjonaliteten til en bestemt prosedyre. De endrer imidlertid ikke disse eksemplene for å lage forbedret funksjonalitet eller lage prosedyrer som dekker dine spesifikke behov.

Obs! Før du installerer denne hurtigreparasjonen, må du kontrollere at alle brukere av Microsoft Navision-klienten er logget av systemet. Dette inkluderer Microsoft Navision Application tjenester (NAS) client-brukere. Du skal bare klient-brukeren som er logget på når du implementerer denne hurtigreparasjonen.

Hvis du vil implementere denne hurtigreparasjonen, må du ha en utviklerlisens.

Vi anbefaler at kontoen i vinduet Windows-pålogging eller i vinduet Database-pålogging være tildelt "SUPER" rolle-ID. Hvis brukerkontoen ikke kan tilordnes "SUPER" rolle-IDen, må du kontrollere at brukerkontoen har følgende tillatelser:

  • Endre-tillatelse for objektet du vil endre.

  • Tilgangsnivået for systemet objekt-IDen til 5210 objektet og systemet objekt-ID-9015 -objekt.



Obs! Du har ikke tilgangsrettigheter til datalagre med mindre du har til å utføre data reparasjon.

Kodeendringer

Obs! Alltid løser teste koden i et kontrollert miljø før du installerer hurtigreparasjoner til produksjonsdatamaskiner for.
Hvis du vil løse dette problemet, gjør du følgende:

  1. Endre koden i funksjonen CreateVendBillWithhTax i tabellen Leverandør faktura linje (12182) som følger:
    Eksisterende kode

    ...              VendBillWithhTax."Currency Code" := VendorBillHeader."Currency Code";
    VendBillWithhTax."External Document No." := "External Document No.";
    VendBillWithhTax."Related Date" := VendorBillHeader."Posting Date";
    VendBillWithhTax."Withholding Tax Code" := WithholdCode;
    VendBillWithhTax."Social Security Code" := SocialSecurityCode;

    // Delete the following line.
    VendBillWithhTax.VALIDATE("Total Amount","Remaining Amount");

    VendBillWithhTax."Old Withholding Amount" := VendBillWithhTax."Withholding Tax Amount";
    VendBillWithhTax."Old Free-Lance Amount" := VendBillWithhTax."Free-Lance Amount";
    END;
    // IT0007.begin
    IF VendBillWithhTax."Withholding Tax Code" <> '' THEN
    ...

    Ny kode

    ...              VendBillWithhTax."Currency Code" := VendorBillHeader."Currency Code";
    VendBillWithhTax."External Document No." := "External Document No.";
    VendBillWithhTax."Related Date" := VendorBillHeader."Posting Date";
    VendBillWithhTax."Withholding Tax Code" := WithholdCode;
    VendBillWithhTax."Social Security Code" := SocialSecurityCode;

    // Add the following line.
    VendBillWithhTax.VALIDATE("Total Amount","Amount to Pay");

    VendBillWithhTax."Old Withholding Amount" := VendBillWithhTax."Withholding Tax Amount";
    VendBillWithhTax."Old Free-Lance Amount" := VendBillWithhTax."Free-Lance Amount";
    END;
    // IT0007.begin
    IF VendBillWithhTax."Withholding Tax Code" <> '' THEN
    ...

  2. Endre koden i kontrollene i manuell leverandøren betalingslinjen skjemaet (12188) som følger:
    Eksisterende kode 1

    ...                                                   InPage=0;
    CaptionML=ENU=Withholding Tax Code;
    SourceExpr=WithholdingTaxCode;
    TableRelation="Withhold Code" }
    { 1130006;Label ;440 ;2090 ;3300 ;440 ;ParentControl=1130005 }

    // Delete the following line.
    { 1130007;TextBox ;13090;3190 ;1700 ;440 ;ParentControl=1130000;

    InPage=0;
    CaptionML=ENU=Vendor Bank Account;
    SourceExpr=VendorBankAccount;
    TableRelation="Vendor Bank Account";
    OnLookup=VAR
    ...

    Ny kode 1

    ...                                                   InPage=0;
    CaptionML=ENU=Withholding Tax Code;
    SourceExpr=WithholdingTaxCode;
    TableRelation="Withhold Code" }
    { 1130006;Label ;440 ;2090 ;3300 ;440 ;ParentControl=1130005 }

    // Add the following line.
    { 1130007;TextBox ;13090;3740 ;1700 ;440 ;ParentControl=1130000;

    InPage=0;
    CaptionML=ENU=Vendor Bank Account;
    SourceExpr=VendorBankAccount;
    TableRelation="Vendor Bank Account";
    OnLookup=VAR
    ...

    Eksisterende kode 2

    ...                                                              IF FORM.RUNMODAL(FORM::"Vendor Bank Account List",VendBankAcc,VendBankAcc.Code) = ACTION::LookupOK THEN
    VendorBankAccount := VendBankAcc.Code;
    // IT0001.end
    END;
    }

    // Delete the following line.
    { 1130008;Label ;9680 ;3190 ;3300 ;440 ;ParentControl=1130007 }

    { 1130009;TextBox ;3850 ;3190 ;5500 ;440 ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Description;
    SourceExpr=Desc }
    { 1130010;Label ;440 ;3190 ;3300 ;440 ;ParentControl=1130009 }
    ...

    Ny kode 2

    ...                                                              IF FORM.RUNMODAL(FORM::"Vendor Bank Account List",VendBankAcc,VendBankAcc.Code) = ACTION::LookupOK THEN
    VendorBankAccount := VendBankAcc.Code;
    // IT0001.end
    END;
    }

    // Add the following line.
    { 1130008;Label ;9680 ;3740 ;3300 ;440 ;ParentControl=1130007 }

    { 1130009;TextBox ;3850 ;3190 ;5500 ;440 ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Description;
    SourceExpr=Desc }
    { 1130010;Label ;440 ;3190 ;3300 ;440 ;ParentControl=1130009 }
    ...

    Eksisterende kode 3

    ...      { 1130013;TextBox   ;13090;990  ;1700 ;440  ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Total Amount;
    SourceExpr=TotalAmount }
    { 1130014;Label ;9680 ;990 ;3300 ;440 ;ParentControl=1130013 }

    // Delete the following line.
    { 1130015;TextBox ;13090;1540 ;2200 ;440 ;ParentControl=1130000;

    InPage=0;
    CaptionML=ENU=Document Type;
    OptionCaptionML=ENU=" ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund";
    OptionString=[ ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund];
    SourceExpr=DocumentType }
    ...

    Ny kode 3

    ...      { 1130013;TextBox   ;13090;990  ;1700 ;440  ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Total Amount;
    SourceExpr=TotalAmount }
    { 1130014;Label ;9680 ;990 ;3300 ;440 ;ParentControl=1130013 }

    // Add the following line.
    { 1130015;TextBox ;13090;2090 ;2200 ;440 ;ParentControl=1130000;

    InPage=0;
    CaptionML=ENU=Document Type;
    OptionCaptionML=ENU=" ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund";
    OptionString=[ ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund];
    SourceExpr=DocumentType }
    ...

    Eksisterende kode 4

    ...                                                   InPage=0;
    CaptionML=ENU=Document Type;
    OptionCaptionML=ENU=" ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund";
    OptionString=[ ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund];
    SourceExpr=DocumentType }

    // Delete the following lines.
    { 1130016;Label ;9680 ;1540 ;3300 ;440 ;ParentControl=1130015 }
    { 1130017;TextBox ;13090;2090 ;1700 ;440 ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Document No.;
    SourceExpr=DocumentNo }
    { 1130018;Label ;9680 ;2090 ;3300 ;440 ;ParentControl=1130017 }
    { 1130019;TextBox ;13090;2640 ;1700 ;440 ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Document Date;
    SourceExpr=DocumentDate }
    { 1130020;Label ;9680 ;2640 ;3300 ;440 ;ParentControl=1130019 }
    // End of the lines.

    { 1130024;TextBox ;3850 ;2640 ;2750 ;440 ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Social Security Code;
    SourceExpr=SocialSecurityCode;
    TableRelation="Contribution Code" }
    ...

    Ny kode 4

    ...                                                   InPage=0;
    CaptionML=ENU=Document Type;
    OptionCaptionML=ENU=" ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund";
    OptionString=[ ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund];
    SourceExpr=DocumentType }

    // Add the following lines.
    { 1130016;Label ;9680 ;2090 ;3300 ;440 ;ParentControl=1130015 }
    { 1130017;TextBox ;13090;2640 ;1700 ;440 ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Document No.;
    SourceExpr=DocumentNo }
    { 1130018;Label ;9680 ;2640 ;3300 ;440 ;ParentControl=1130017 }
    { 1130019;TextBox ;13090;3190 ;1700 ;440 ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Document Date;
    SourceExpr=DocumentDate }
    { 1130020;Label ;9680 ;3190 ;3300 ;440 ;ParentControl=1130019 }
    // End of the lines.

    { 1130024;TextBox ;3850 ;2640 ;2750 ;440 ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Social Security Code;
    SourceExpr=SocialSecurityCode;
    TableRelation="Contribution Code" }
    ...

    Eksisterende kode 5

    ...                                                   InPage=0;
    CaptionML=ENU=Social Security Code;
    SourceExpr=SocialSecurityCode;
    TableRelation="Contribution Code" }
    { 1130025;Label ;440 ;2640 ;3300 ;440 ;ParentControl=1130024 }
    { 1130021;CommandButton;14410;5720;2200;550 ;HorzGlue=Right;
    VertGlue=Bottom;
    PushAction=FormHelp }
    { 1130022;CommandButton;11990;5720;2200;550 ;HorzGlue=Right;
    VertGlue=Bottom;
    ...

    Ny kode 5

    ...                                                   InPage=0;
    CaptionML=ENU=Social Security Code;
    SourceExpr=SocialSecurityCode;
    TableRelation="Contribution Code" }
    { 1130025;Label ;440 ;2640 ;3300 ;440 ;ParentControl=1130024 }

    // Add the following lines.
    { 1130026;TextBox ;13090;1540 ;1700 ;440 ;ParentControl=1130000;
    InPage=0;
    CaptionML=ENU=Tax Base Amount;
    SourceExpr=TaxBaseAmount }
    { 1130027;Label ;9680 ;1540 ;3300 ;440 ;ParentControl=1130026 }
    // End of the lines.

    { 1130021;CommandButton;14410;5720;2200;550 ;HorzGlue=Right;
    VertGlue=Bottom;
    PushAction=FormHelp }
    { 1130022;CommandButton;11990;5720;2200;550 ;HorzGlue=Right;
    VertGlue=Bottom;
    ...

    Eksisterende kode 6

    ...                                                              "Due Date" := PostingDate;
    "External Document No." := ExternalDocNo;
    "Instalment Amount" := TotalAmount;
    "Remaining Amount" := TotalAmount;
    "Gross Amount to Pay" := TotalAmount;

    // Delete the following line.
    "Amount to Pay" := TotalAmount;

    "Manual Line" := TRUE;
    "Cumulative Transfers" := TRUE;
    SetWithholdCode(WithholdingTaxCode);
    SetSocialSecurityCode(SocialSecurityCode);
    INSERT(TRUE)
    ...

    Ny kode 6

    ...                                                              "Due Date" := PostingDate;
    "External Document No." := ExternalDocNo;
    "Instalment Amount" := TotalAmount;
    "Remaining Amount" := TotalAmount;
    "Gross Amount to Pay" := TotalAmount;

    // Add the following line.
    "Amount to Pay" := TaxBaseAmount;

    "Manual Line" := TRUE;
    "Cumulative Transfers" := TRUE;
    SetWithholdCode(WithholdingTaxCode);
    SetSocialSecurityCode(SocialSecurityCode);
    INSERT(TRUE)
    ...

  3. Legg til følgende global variabel i manuell leverandøren betalingslinjen skjemaet (12188):

    TaxBaseAmount@1130000 : Decimal;
  4. Endre koden i CalculateWithholdingTax -funksjonen i Withholding - bidrag kodeenhet (12101) som følger:
    Eksisterende kode 1

    ...      PROCEDURE CalculateWithholdingTax@1130001(VAR PurchHeader@1130000 : Record 38;Recalculate@1130001 : Boolean);
    VAR
    PurchWithSoc@1130002 : Record 12137;
    PurchLine@1130003 : Record 39;

    // Delete the following line.
    TotalAmount@1130004 : Decimal;

    BEGIN
    PurchLine.RESET;
    PurchLine.SETRANGE("Document Type",PurchHeader."Document Type");
    PurchLine.SETRANGE("Document No.",PurchHeader."No.");
    PurchLine.SETRANGE(Type,PurchLine.Type::"G/L Account");
    ...

    Ny kode 1

    ...      PROCEDURE CalculateWithholdingTax@1130001(VAR PurchHeader@1130000 : Record 38;Recalculate@1130001 : Boolean);
    VAR
    PurchWithSoc@1130002 : Record 12137;
    PurchLine@1130003 : Record 39;

    // Add the following lines.
    TempPurchLine@1130005 : TEMPORARY Record 39;
    TotalAmount@1130004 : Decimal;
    VATAmount@1130006 : Decimal;
    // End of the lines.

    BEGIN
    PurchLine.RESET;
    PurchLine.SETRANGE("Document Type",PurchHeader."Document Type");
    PurchLine.SETRANGE("Document No.",PurchHeader."No.");
    PurchLine.SETRANGE(Type,PurchLine.Type::"G/L Account");
    ...

    Eksisterende kode 2

    ...        PurchLine.SETRANGE(Type,PurchLine.Type::"G/L Account");

    TotalAmount := 0;
    IF PurchLine.FIND('-') THEN
    REPEAT

    // Delete the following lines.
    TotalAmount := TotalAmount + PurchLine."Line Amount";
    UNTIL PurchLine.NEXT = 0;

    // End of the lines.

    IF PurchWithSoc.GET(PurchHeader."Document Type", PurchHeader."No.") THEN
    IF (PurchWithSoc."Total Amount" = 0) OR
    Recalculate
    THEN BEGIN
    PurchWithSoc."Currency Code" := PurchHeader."Currency Code";
    ...

    Ny kode 2

    ...        PurchLine.SETRANGE(Type,PurchLine.Type::"G/L Account");

    TotalAmount := 0;
    IF PurchLine.FIND('-') THEN
    REPEAT

    // Add the following lines.
    IF PurchHeader."Prices Including VAT" THEN BEGIN
    TempPurchLine := PurchLine;
    TempPurchLine.VALIDATE("Amount Including VAT",PurchLine."Line Amount");
    TotalAmount += TempPurchLine."VAT Base Amount"
    END ELSE
    TotalAmount += PurchLine."Line Amount";
    UNTIL PurchLine.NEXT = 0;
    // End of the lines.

    IF PurchWithSoc.GET(PurchHeader."Document Type", PurchHeader."No.") THEN
    IF (PurchWithSoc."Total Amount" = 0) OR
    Recalculate
    THEN BEGIN
    PurchWithSoc."Currency Code" := PurchHeader."Currency Code";
    ...

Forutsetninger

Du må ha én av de følgende programmene installert for å bruke denne hurtigreparasjonen:

  • Den italienske versjonen av Microsoft Dynamics NAV 2009 R2

  • Den italienske versjonen av Microsoft Dynamics NAV 2009 Service Pack 1

Informasjon om fjerning

Du kan ikke fjerne denne hurtigreparasjonen.

Status

Microsoft har bekreftet at dette er et problem i Microsoft-produktene som er oppført i delen "Gjelder for".

Obs! Dette er en "RASKT PUBLISERE" artikkel opprettet direkte fra innenfor organisasjonen Microsoft Kundestøtte. Informasjonen i dette dokumentet tilbys som-er som svar på nye problemer. Som et resultat av hastigheten i å gjøre den tilgjengelig materialene kan inkludere typografiske feil, og den kunne bli revidert når som helst uten varsel. Se Vilkårene for Bruk for andre hensyn.

Trenger du mer hjelp?

Vil du ha flere alternativer?

Utforsk abonnementsfordeler, bla gjennom opplæringskurs, finn ut hvordan du sikrer enheten og mer.

Fellesskap hjelper deg med å stille og svare på spørsmål, gi tilbakemelding og høre fra eksperter med stor kunnskap.

Var denne informasjonen nyttig?

Hvor fornøyd er du med språkkvaliteten?
Hva påvirket opplevelsen din?
Når du trykker på Send inn, blir tilbakemeldingen brukt til å forbedre Microsoft-produkter og -tjenester. IT-administratoren kan samle inn disse dataene. Personvernerklæring.

Takk for tilbakemeldingen!

×