Este artigo se aplica ao Microsoft Dynamics NAV para todos os países e todas as localidades de idiomas.
Sintomas
Depois que você aplicar hotfixes, 2292157 e 2764340 para o Microsoft Dynamics NAV 2009, os formulários de Aplicar entradas de cliente e as Entradas de fornecedor se aplicam exibem valores incorretos no campo Saldo e o disco de PGTO. . Valor campo.
Esse problema ocorre nos seguintes produtos:-
Microsoft Dynamics NAV 2009 Service Pack 1
-
Microsoft Dynamics NAV 2009 R2
Para obter mais informações sobre os hotfixes 2292157 e 2764340, clique nos números abaixo para visualizar os artigos na Base de Conhecimento da Microsoft:
O campo "Saldo" e o "disco de PGTO. 2292157 . Campo de valor"no formulário aplicar entradas de cliente e no formulário aplicar entradas de fornecedor Mostrar valores incorretos se você aplicar um pagamento para vários documentos abertos no Microsoft Dynamics NAV
2764340 entradas de fornecedor são ainda selecionadas mesmo se você desmarcou as entradas de fornecedor anteriormente no formulário "Aplicar entradas de fornecedor" no Microsoft Dynamics NAV 2009
Resolução
Informações sobre o hotfix
Um hotfix suportado está disponível agora na Microsoft. No entanto, apenas destina-se a corrigir o problema descrito neste artigo. Aplique-o somente aos sistemas que apresentarem esse problema específico. Esta correção poderá ser submetida a testes adicionais. Portanto, se esse problema não o prejudicar, recomendamos que você aguarde o próximo service pack do Microsoft Dynamics NAV 2009 ou a próxima versão do Microsoft Dynamics NAV que contém esse hotfix.
Observação: Em alguns casos, as taxas cobradas para suporte a chamadas podem ser canceladas se um profissional de suporte técnico do Microsoft Dynamics e produtos relacionados determina que uma atualização específica resolverá o problema. Os custos normais de suporte serão aplicados para questões de suporte adicionais e problemas que não se qualificam à atualização específica em questão.Informações sobre a instalação
A Microsoft fornece exemplos de programação somente para ilustração, sem garantia expressa ou implícita. Isso inclui, mas não está limitado a, garantias implícitas de comercialização ou adequação a um propósito específico. Este artigo presume que você esteja familiarizado com a linguagem de programação que está sendo demonstrada e com as ferramentas usadas para criar e depurar procedimentos. Os engenheiros de suporte da Microsoft podem ajudar a explicar a funcionalidade de um determinado procedimento. No entanto, eles não modificarão esses exemplos para fornecer funcionalidades adicionais ou construir procedimentos para atender às suas necessidades específicas.
Observação: Antes de instalar esse hotfix, verifique se todos os usuários do cliente do Microsoft Dynamics NAV estiver desconectados do sistema. Isso inclui os serviços do Microsoft Dynamics NAV Application Server (NAS). Você deve ser o único usuário do cliente conectado ao implementar esse hotfix. Para implementar esse hotfix, você deve ter uma licença de desenvolvedor. É recomendável que a conta de usuário na janela de Logins do Windows ou na janela banco de dados seja atribuída a ID de função "SUPER". Se a conta de usuário não pode ser atribuída a ID de função "SUPER", você deverá verificar se a conta de usuário tem as seguintes permissões:-
A permissão Modificar para o objeto que será alterado.
-
A permissão de execução para o objeto 5210 de identificação de objeto de sistema e o sistema 9015 de identificação de objeto
objeto.
Observação: Você não precisa ter direitos para os armazenamentos de dados, a menos que você precise executar o reparo de dados.
Alterações de código
Observação: Sempre teste código correções em um ambiente controlado antes de aplicar as correções para os computadores de produção.
Para resolver esse problema, execute as seguintes etapas:-
Altere o código na função HandlChosenEntries theApply formulário de entradas de cliente (232) da seguinte forma:
1 de código existente...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"; ...1 código de substituição
...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"; ...2 de código existente
...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; ...Código de substituição 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; ... -
Altere o código na função HandlChosenEntries no formulário aplicar entradas de fornecedor (233) da seguinte forma:
1 de código existente...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"; ...1 código de substituição
...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"; ...2 de código existente
...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; ...Código de substituição 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; ...
Pré-requisitos:
Você deve ter um dos seguintes produtos instalados para aplicar esse hotfix:
-
Microsoft Dynamics NAV 2009 Service Pack 1
-
Microsoft Dynamics NAV 2009 R2
Informações sobre remoção
Você não pode remover esse hotfix.
Status
A Microsoft confirma que este é um problema em seus produtos listados na seção "Aplica-se a".
Observação: Este é um artigo de "PUBLICAÇÃO RÁPIDA" criado diretamente de dentro da organização de suporte da Microsoft. As informações contidas neste documento são fornecidas desta maneira, em resposta a problemas emergentes. Como um dos resultados da velocidade da publicação, os materiais podem incluir erros tipográficos e podem ser revisados a qualquer momento sem aviso prévio. Consulte os Termos de usopara outras considerações.