Logga in med Microsoft
Logga in eller skapa ett konto.
Hej,
Välj ett annat konto.
Du har flera konton
Välj det konto som du vill logga in med.

Den här artikeln gäller för Microsoft Dynamics NAV för alla länder och språkversioner.

Symptom

Efter installation av snabbkorrigeringar som 2292157 och 2764340 för Microsoft Dynamics NAV 2009 visar formuläret Koppla kundtransaktioner och formuläret Koppla leverantörstrans felaktiga värden i fältet Saldo och Kassarabatt exkl. Belopp fält.

Det här problemet uppstår i följande produkter:

  • Microsoft Dynamics NAV 2009 servicepack 1

  • Microsoft Dynamics NAV 2009 R2

Mer information om snabbkorrigeringar för 2292157 och 2764340 klickar du på följande artikelnummer och läser artiklarna i Microsoft Knowledge Base:

2292157 fältet "Balans" och "Kassarabatt exkl. Beloppsfältet "i formuläret Koppla kundtransaktioner och i formuläret Koppla leverantörstrans visa felaktiga värden om du kopplar en betalning till flera öppna dokument i Microsoft Dynamics NAV

2764340 leverantörstransaktioner är fortfarande markerade trots att du avmarkerat leverantörstransaktioner tidigare i formuläret "Koppla leverantörstrans." i Microsoft Dynamics NAV 2009

Lösning

Information om snabbkorrigeringen

En snabbkorrigering är nu tillgänglig från Microsoft. Den är endast avsedd att åtgärda det problem som beskrivs i denna artikel. Använd den bara på datorer där detta problem uppstår. Snabbkorrigeringen kan komma att testas igen. Om inte störs alltför mycket av detta problem rekommenderar vi att du väntar på Nästa service pack-versionen för Microsoft Dynamics NAV 2009 eller nästa Microsoft Dynamics NAV-version som innehåller den här snabbkorrigeringen.

Obs! I särskilda fall, de avgifter som är normalt för support vara avgiftsfri om en supporttekniker för Microsoft Dynamics och relaterade produkter som bestämmer att en särskild uppdatering kan lösa ditt problem. De vanliga supportkostnaderna gäller för övriga supportfrågor och problem som inte berör den särskilda uppdateringen.

Installationsinformation

Microsoft tillhandahåller programmeringsexempel endast utan garanti varken uttryckliga eller underförstådda. Detta inkluderar men är inte begränsat till, underförstådda garantier om säljbarhet eller lämplighet för ett särskilt ändamål. Den här artikeln förutsätter att du är bekant med det programmeringsspråk som demonstreras och de verktyg som används för att skapa och felsöka procedurer. Microsofts supporttekniker kan hjälpa till att förklara funktionen hos en viss procedur. De kommer inte ändra dessa exempel för att ge ytterligare funktioner eller skapa procedurer som motsvarar dina speciella behov.

Obs! Innan du installerar den här snabbkorrigeringen måste du kontrollera att alla användare i Microsoft Dynamics NAV-klienten har loggat ut. Detta omfattar tjänster för Microsoft Dynamics NAV Application Server (NAS). Du ska endast klientanvändare som är inloggad när du implementerar den här snabbkorrigeringen.

Om du vill genomföra den här snabbkorrigeringen måste du ha en utvecklarlicens.

Vi rekommenderar att tilldelas användarkontot i fönstret Windows-inloggningar eller i fönstret databasinloggningar "SUPER" roll-ID. Om användarkontot inte kan tilldelas "SUPER" roll-ID måste du kontrollera att användarkontot har följande behörigheter:

  • Ändra behörighet för objektet ändras.

  • Körbehörighet för systemet objektet ID 5210 objekt och System objektet ID 9015

    objektet.

Obs! Du har inte behörighet för datalager inte data reparation.

Kod ändras

Obs! Alltid åtgärdas testa koden i en kontrollerad miljö innan du installerar korrigeringar för produktionsdatorer.

Lös problemet så här:

  1. Ändra koden i funktionen HandlChosenEntries i theApply i formuläret kundtransaktioner (232) enligt följande:
    Befintlig kod 1

    ...CurrentAmount := CurrentAmount + AppliedCustLedgEntryTemp."Remaining Amount" -
    AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    END ELSE IF (ABS(CurrentAmount) = ABS(AppliedCustLedgEntryTemp."Remaining Amount" -
    AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible"))
    THEN BEGIN

    // Delete the following lines.
    PmtDiscAmount := PmtDiscAmount + AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible" + PossiblePmtDisc;
    CurrentAmount := CurrentAmount + AppliedCustLedgEntryTemp."Remaining Amount" -
    AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible" - PossiblePmtDisc;
    PossiblePmtDisc := 0;
    // End of the deleted lines.

    AppliedAmount := AppliedAmount + CorrectionAmount;
    END ELSE IF (FromZeroGenJnl) THEN BEGIN
    PmtDiscAmount := PmtDiscAmount + AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    CurrentAmount := CurrentAmount +
    AppliedCustLedgEntryTemp."Remaining Amount" - AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    ...

    Ersättningskod 1

    ...CurrentAmount := CurrentAmount + AppliedCustLedgEntryTemp."Remaining Amount" -
    AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    END ELSE IF (ABS(CurrentAmount) = ABS(AppliedCustLedgEntryTemp."Remaining Amount" -
    AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible"))
    THEN BEGIN

    // Add the following lines.
    PmtDiscAmount := PmtDiscAmount + AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    CurrentAmount := CurrentAmount + AppliedCustLedgEntryTemp."Remaining Amount" -
    AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    // End of the added lines.

    AppliedAmount := AppliedAmount + CorrectionAmount;
    END ELSE IF (FromZeroGenJnl) THEN BEGIN
    PmtDiscAmount := PmtDiscAmount + AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    CurrentAmount := CurrentAmount +
    AppliedCustLedgEntryTemp."Remaining Amount" - AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    ...

    Befintlig kod 2

    ...END;
    CurrentAmount := CurrentAmount + AppliedCustLedgEntryTemp."Remaining Amount" -
    AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    END;
    END ELSE BEGIN

    // Delete the following lines.
    PossiblePmtDisc := AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    IF (((CurrentAmount - PossiblePmtDisc + AppliedCustLedgEntryTemp."Amount to Apply") * CurrentAmount) <= 0) THEN BEGIN
    PmtDiscAmount := PmtDiscAmount + PossiblePmtDisc;
    CurrentAmount := CurrentAmount - PossiblePmtDisc;
    PossiblePmtDisc := 0;
    AppliedAmount := AppliedAmount + CorrectionAmount;
    END;
    // End of the deleted lines.

    CurrentAmount := CurrentAmount + AppliedCustLedgEntryTemp."Amount to Apply";
    END;
    END ELSE BEGIN
    AppliedCustLedgEntryTemp.SETRANGE(Positive);
    AppliedCustLedgEntryTemp.FINDFIRST;
    ...

    Ersättningskod 2

    ...END;
    CurrentAmount := CurrentAmount + AppliedCustLedgEntryTemp."Remaining Amount" -
    AppliedCustLedgEntryTemp."Remaining Pmt. Disc. Possible";
    END;
    END ELSE BEGIN

    // Add the following lines.
    IF (((CurrentAmount + AppliedCustLedgEntryTemp."Amount to Apply") * CurrentAmount) <= 0) THEN
    AppliedAmount := AppliedAmount + CorrectionAmount;
    // End of the added lines.

    CurrentAmount := CurrentAmount + AppliedCustLedgEntryTemp."Amount to Apply";
    END;
    END ELSE BEGIN
    AppliedCustLedgEntryTemp.SETRANGE(Positive);
    AppliedCustLedgEntryTemp.FINDFIRST;
    ...
  2. Ändra koden i funktionen HandlChosenEntries i formuläret Koppla leverantörstrans (233) enligt följande:
    Befintlig kod 1

    ...CurrentAmount := CurrentAmount + AppliedVendLedgEntryTemp."Remaining Amount" -
    AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    END ELSE IF (ABS(CurrentAmount) = ABS(AppliedVendLedgEntryTemp."Remaining Amount" -
    AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible"))
    THEN BEGIN

    // Delete the following lines.
    PmtDiscAmount := PmtDiscAmount + AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible" + PossiblePmtdisc;
    CurrentAmount := CurrentAmount + AppliedVendLedgEntryTemp."Remaining Amount" -
    AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible" - PossiblePmtdisc;
    PossiblePmtdisc := 0;
    // End of the deleted lines.

    AppliedAmount := AppliedAmount + CorrectionAmount;
    END ELSE IF FromZeroGenJnl THEN BEGIN
    PmtDiscAmount := PmtDiscAmount + AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    CurrentAmount := CurrentAmount +
    AppliedVendLedgEntryTemp."Remaining Amount" - AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    ...

    Ersättningskod 1

    ...CurrentAmount := CurrentAmount + AppliedVendLedgEntryTemp."Remaining Amount" -
    AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    END ELSE IF (ABS(CurrentAmount) = ABS(AppliedVendLedgEntryTemp."Remaining Amount" -
    AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible"))
    THEN BEGIN

    // Add the following lines.
    PmtDiscAmount := PmtDiscAmount + AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    CurrentAmount := CurrentAmount + AppliedVendLedgEntryTemp."Remaining Amount" -
    AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    // End of the added lines.

    AppliedAmount := AppliedAmount + CorrectionAmount;
    END ELSE IF FromZeroGenJnl THEN BEGIN
    PmtDiscAmount := PmtDiscAmount + AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    CurrentAmount := CurrentAmount +
    AppliedVendLedgEntryTemp."Remaining Amount" - AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    ...

    Befintlig kod 2

    ...END;
    CurrentAmount := CurrentAmount + AppliedVendLedgEntryTemp."Remaining Amount" -
    AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    END;
    END ELSE BEGIN

    // Delete the following lines.
    PossiblePmtdisc := AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    IF (((CurrentAmount - PossiblePmtdisc + AppliedVendLedgEntryTemp."Amount to Apply") * CurrentAmount) >= 0) THEN BEGIN
    PmtDiscAmount := PmtDiscAmount + PossiblePmtdisc;
    CurrentAmount := CurrentAmount - PossiblePmtdisc;
    PossiblePmtdisc := 0;
    AppliedAmount := AppliedAmount + CorrectionAmount;
    END;
    // End of the deleted lines.

    CurrentAmount := CurrentAmount + AppliedVendLedgEntryTemp."Amount to Apply";
    END;
    END ELSE BEGIN
    AppliedVendLedgEntryTemp.SETRANGE(Positive);
    AppliedVendLedgEntryTemp.FINDFIRST;
    ...

    Ersättningskod 2

    ...END;
    CurrentAmount := CurrentAmount + AppliedVendLedgEntryTemp."Remaining Amount" -
    AppliedVendLedgEntryTemp."Remaining Pmt. Disc. Possible";
    END;
    END ELSE BEGIN

    // Add the following lines.
    IF (((CurrentAmount + AppliedVendLedgEntryTemp."Amount to Apply") * CurrentAmount) >= 0) THEN
    AppliedAmount := AppliedAmount + CorrectionAmount;
    // End of the added lines.

    CurrentAmount := CurrentAmount + AppliedVendLedgEntryTemp."Amount to Apply";
    END;
    END ELSE BEGIN
    AppliedVendLedgEntryTemp.SETRANGE(Positive);
    AppliedVendLedgEntryTemp.FINDFIRST;
    ...


Förutsättningar

Du måste ha någon av följande produkter som har installerat den här snabbkorrigeringen:

  • Microsoft Dynamics NAV 2009 servicepack 1

  • Microsoft Dynamics NAV 2009 R2

Information om borttagning

Du kan inte ta bort den här snabbkorrigeringen.

Status

Microsoft har bekräftat att detta är ett problem i Microsoft-produkterna som nämns i avsnittet "Gäller".

Obs! Detta är en "SNABBPUBLICERING"-artikel skapad direkt från Microsoft support-organisationen. Informationen häri tillhandahålls i befintligt skick som svar på nya problem. Till följd av hastigheten för att göra det tillgängligt kan materialet innehålla typografiska fel och kan ändras när som helst utan föregående meddelande. Se Villkoren för användningför andra överväganden.

Behöver du mer hjälp?

Vill du ha fler alternativ?

Utforska prenumerationsförmåner, bläddra bland utbildningskurser, lär dig hur du skyddar din enhet med mera.

Communities hjälper dig att ställa och svara på frågor, ge feedback och få råd från experter med rika kunskaper.

Hade du nytta av den här informationen?

Hur nöjd är du med språkkvaliteten?
Vad påverkade din upplevelse?
Genom att trycka på skicka, kommer din feedback att användas för att förbättra Microsofts produkter och tjänster. IT-administratören kan samla in denna data. Sekretesspolicy.

Tack för din feedback!

×