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

In questo articolo si applica a Microsoft Dynamics NAV per tutti i paesi e tutte le lingue.

Sintomi

Dopo avere applicato l'hotfix 2292157 e 2764340 per Microsoft Dynamics NAV 2009, il modulo Partite clienti e il modulo Partite fornitori visualizzare valori non corretti nel campo Saldo e il Pagam. Importo campo.

Questo problema si verifica nei seguenti prodotti:

  • Microsoft Dynamics NAV 2009 Service Pack 1

  • Microsoft Dynamics NAV 2009 R2

Per ulteriori informazioni sulle correzioni di 2292157 e 2764340, fare clic sui numeri per visualizzare gli articoli della Microsoft Knowledge Base riportato di seguito:

Il campo "Saldo" e "sconto pag 2292157 . Campo Importo"nel modulo partite clienti e nel modulo Partite fornitori Mostra valori non corretti Se si applica un pagamento a più documenti aperti in Microsoft Dynamics NAV

2764340 i movimenti fornitori verranno comunque selezionati anche se è stata deselezionata i movimenti fornitori precedentemente nel modulo "Partite fornitori" in Microsoft Dynamics NAV 2009

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 HandlChosenEntries in theApply modulo Mov (232) come segue:
    Codice esistente 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";
    ...

    Codice sostitutivo 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";
    ...

    Codice esistente 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;
    ...

    Codice di sostituzione 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. Modificare il codice nella funzione HandlChosenEntries nel modulo Partite fornitori (233) come segue:
    Codice esistente 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";
    ...

    Codice sostitutivo 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";
    ...

    Codice esistente 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;
    ...

    Codice di sostituzione 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;
    ...


Prerequisiti

Deve avere uno dei seguenti prodotti per applicare questo hotfix:

  • Microsoft Dynamics NAV 2009 Service Pack 1

  • Microsoft Dynamics NAV 2009 R2

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!

×