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

Sintomi

Dopo l'aggiornamento da Microsoft Dynamics NAV 3.7 a Microsoft Dynamics NAV 2009, il report Valutazione magazzino - WIP (5802) possa dimostrare importi non corretti. Il toolkit di aggiornamento ha popolato campo previsto costo registrato in C/G nel movimento valorizzazione quando i costi non è stato registrato in C/g. seguire i passaggi nella sezione modifiche al codice per risolvere questo problema. Questo problema si verifica nei seguenti prodotti:

  • Microsoft Dynamics NAV 2009 R2

  • 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, modificare il codice nella funzione UpdateValueEntry della codeunit aggiornamento Nav 2009 passaggio 2 (104048) come segue:

Codice esistente 1

...ExpValueEntry."Sales Amount (Expected)" += "Sales Amount (Expected)";
ExpValueEntry."Cost Amount (Expected) (ACY)" += "Cost Amount (Expected) (ACY)";

// Delete the following lines.
CASE TRUE OF
(("Cost Posted to G/L" = 0) AND ("Cost Posted to G/L (ACY)" = 0) AND
ItemLedgEntry."Completely Invoiced"):
BEGIN
"Expected Cost Posted to G/L" := "Cost Amount (Expected)";
"Exp. Cost Posted to G/L (ACY)" := "Cost Amount (Expected) (ACY)";

ExpValueEntry."Expected Cost Posted to G/L" -= "Expected Cost Posted to G/L";
ExpValueEntry."Exp. Cost Posted to G/L (ACY)" -= "Exp. Cost Posted to G/L (ACY)";
END;
(("Cost Posted to G/L" = "Cost Amount (Expected)") AND
("Cost Posted to G/L (ACY)" = "Cost Amount (Expected) (ACY)")):
BEGIN
"Expected Cost Posted to G/L" := "Cost Amount (Expected)";
"Exp. Cost Posted to G/L (ACY)" := "Cost Amount (Expected) (ACY)";
END;
("Cost Posted to G/L" <> 0) OR ("Cost Posted to G/L (ACY)" <> 0):
BEGIN
"Expected Cost Posted to G/L" :=
ROUND("Cost Amount (Expected)" * QtyFactor,GLSetup."Amount Rounding Precision");
"Exp. Cost Posted to G/L (ACY)" :=
ROUND("Cost Amount (Expected) (ACY)" * QtyFactor,Currency."Amount Rounding Precision");

ExpValueEntry."Expected Cost Posted to G/L" -=
ROUND("Expected Cost Posted to G/L",GLSetup."Amount Rounding Precision");
ExpValueEntry."Exp. Cost Posted to G/L (ACY)" -=
ROUND("Exp. Cost Posted to G/L (ACY)",Currency."Amount Rounding Precision");
END;
// End of the deleted lines.

END;
"Cost Posted to G/L" := 0;
"Cost Posted to G/L (ACY)" := 0;
...

Codice sostitutivo 1

...ExpValueEntry."Sales Amount (Expected)" += "Sales Amount (Expected)";
ExpValueEntry."Cost Amount (Expected) (ACY)" += "Cost Amount (Expected) (ACY)";

// Add the following lines.
IF InvtSetup."Expected Cost Posting to G/L" THEN
CASE TRUE OF
(("Cost Posted to G/L" = 0) AND ("Cost Posted to G/L (ACY)" = 0) AND
ItemLedgEntry."Completely Invoiced"):
BEGIN
"Expected Cost Posted to G/L" := "Cost Amount (Expected)";
"Exp. Cost Posted to G/L (ACY)" := "Cost Amount (Expected) (ACY)";

ExpValueEntry."Expected Cost Posted to G/L" -= "Expected Cost Posted to G/L";
ExpValueEntry."Exp. Cost Posted to G/L (ACY)" -= "Exp. Cost Posted to G/L (ACY)";
END;
(("Cost Posted to G/L" = "Cost Amount (Expected)") AND
("Cost Posted to G/L (ACY)" = "Cost Amount (Expected) (ACY)")):
BEGIN
"Expected Cost Posted to G/L" := "Cost Amount (Expected)";
"Exp. Cost Posted to G/L (ACY)" := "Cost Amount (Expected) (ACY)";
END;
("Cost Posted to G/L" <> 0) OR ("Cost Posted to G/L (ACY)" <> 0):
BEGIN
"Expected Cost Posted to G/L" :=
ROUND("Cost Amount (Expected)" * QtyFactor,GLSetup."Amount Rounding Precision");
"Exp. Cost Posted to G/L (ACY)" :=
ROUND("Cost Amount (Expected) (ACY)" * QtyFactor,Currency."Amount Rounding Precision");

ExpValueEntry."Expected Cost Posted to G/L" -=
ROUND("Expected Cost Posted to G/L",GLSetup."Amount Rounding Precision");
ExpValueEntry."Exp. Cost Posted to G/L (ACY)" -=
ROUND("Exp. Cost Posted to G/L (ACY)",Currency."Amount Rounding Precision");
END;
// End of the added lines.

END;
"Cost Posted to G/L" := 0;
"Cost Posted to G/L (ACY)" := 0;
...

Codice esistente 2

...TempDocValueEntry."Cost Amount (Expected) (ACY)" += "Cost Amount (Expected) (ACY)";
TempDocValueEntry.MODIFY;

// Delete the following lines.
IF (ABS(ExpValueEntry."Expected Cost Posted to G/L") > ABS("Cost Amount (Expected)")) OR
(ABS(ExpValueEntry."Exp. Cost Posted to G/L (ACY)") > ABS("Cost Amount (Expected) (ACY)"))
THEN BEGIN
"Expected Cost Posted to G/L" := "Cost Amount (Expected)";
"Exp. Cost Posted to G/L (ACY)" := "Cost Amount (Expected) (ACY)";

ExpValueEntry."Expected Cost Posted to G/L" -= "Cost Amount (Expected)";
ExpValueEntry."Exp. Cost Posted to G/L (ACY)" -= "Cost Amount (Expected) (ACY)";
END ELSE BEGIN
"Expected Cost Posted to G/L" := ExpValueEntry."Expected Cost Posted to G/L";
"Exp. Cost Posted to G/L (ACY)" := ExpValueEntry."Exp. Cost Posted to G/L (ACY)";

ExpValueEntry."Expected Cost Posted to G/L" := 0;
ExpValueEntry."Exp. Cost Posted to G/L (ACY)" := 0;
END;
// End of the deleted lines.

END;
END;
UpdateCostToPostToGL(ValueEntry);

...

Codice di sostituzione 2



...
 TempDocValueEntry."Cost Amount (Expected) (ACY)" += "Cost Amount (Expected) (ACY)";                      TempDocValueEntry.MODIFY;

// Add the following lines.
IF InvtSetup."Expected Cost Posting to G/L" THEN
IF (ABS(ExpValueEntry."Expected Cost Posted to G/L") > ABS("Cost Amount (Expected)")) OR
(ABS(ExpValueEntry."Exp. Cost Posted to G/L (ACY)") > ABS("Cost Amount (Expected) (ACY)"))
THEN BEGIN
"Expected Cost Posted to G/L" := "Cost Amount (Expected)";
"Exp. Cost Posted to G/L (ACY)" := "Cost Amount (Expected) (ACY)";

ExpValueEntry."Expected Cost Posted to G/L" -= "Cost Amount (Expected)";
ExpValueEntry."Exp. Cost Posted to G/L (ACY)" -= "Cost Amount (Expected) (ACY)";
END ELSE BEGIN
"Expected Cost Posted to G/L" := ExpValueEntry."Expected Cost Posted to G/L";
"Exp. Cost Posted to G/L (ACY)" := ExpValueEntry."Exp. Cost Posted to G/L (ACY)";

ExpValueEntry."Expected Cost Posted to G/L" := 0;
ExpValueEntry."Exp. Cost Posted to G/L (ACY)" := 0;
END;
// End of the added lines.

END;
END;
UpdateCostToPostToGL(ValueEntry);
...


Prerequisiti

Deve avere uno dei seguenti prodotti per applicare questo hotfix:

  • Microsoft Dynamics NAV 2009 R2

  • 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!

×