Entrar com a conta da Microsoft
Entrar ou criar uma conta.
Olá,
Selecionar uma conta diferente.
Você tem várias contas
Escolha a conta com a qual você deseja entrar.

Sintomas

Após instalar KB3034441 a versão em espanhol do Microsoft Dynamics NAV 2009, quando você aplicar um pagamento normal e uma lista de entradas contábeis de cliente ou fornecedor, as entradas de razão lançadas consulte ambos para a mesma conta está incorreta. Siga as etapas na seção alterações de código para resolver o problema. Esse problema ocorre nos seguintes produtos:

  • A versão em espanhol do Microsoft Dynamics NAV 2009 R2

  • A versão em espanhol do Microsoft Dynamics NAV 2009 SP1

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:

  1. Alterar o código de função PostDtldCustLedgEntries em geral Jnl.-lançar linha codeunit (12) da seguinte maneira:
    1 de código existente

    ...LOCAL PROCEDURE PostDtldCustLedgEntries@46(GenJnlLine2@1000 : Record 81;VAR DtldCVLedgEntryBuf@1001 : Record 383;CustPostingGr@1002 : Record 92;GLSetup@1003 : Record 98;NextTransactionNo@1004 : Integer;CustLedgEntryInserted@1012 : Boolean);
    VAR
    DtldCustLedgEntry@1005 : Record 379;
    Currency@1007 : Record 4;
    GenPostingSetup@1008 : Record 252;
    TotalAmountLCY@1009 : Decimal;
    TotalAmountAddCurr@1010 : Decimal;
    PaymentDiscAcc@1011 : Code[20];
    DtldCustLedgEntryNoOffset@1006 : Integer;
    PaymentTolAcc@1013 : Code[20];
    ...

    1 código de substituição

    ...LOCAL PROCEDURE PostDtldCustLedgEntries@46(GenJnlLine2@1000 : Record 81;VAR DtldCVLedgEntryBuf@1001 : Record 383;CustPostingGr@1002 : Record 92;GLSetup@1003 : Record 98;NextTransactionNo@1004 : Integer;CustLedgEntryInserted@1012 : Boolean);
    VAR
    DtldCustLedgEntry@1005 : Record 379;
    Currency@1007 : Record 4;
    GenPostingSetup@1008 : Record 252;

    // Add the following line.
    DtldCustLedgEntry3@1100044 : Record 379;
    // End of the added line.

    TotalAmountLCY@1009 : Decimal;
    TotalAmountAddCurr@1010 : Decimal;
    PaymentDiscAcc@1011 : Code[20];
    DtldCustLedgEntryNoOffset@1006 : Integer;
    PaymentTolAcc@1013 : Code[20];
    ...

    2 de código existente

    ...ReceivableAccAmtLCY@1100001 : Decimal;
    ReceivableAccAmtAddCurr@1100000 : Decimal;
    DtldCustLedgEntry2@1100003 : TEMPORARY Record 379;
    ExistDtldCVLedgEntryBuf@1000003 : Boolean;
    FindBill@1100004 : Boolean;
    BEGIN
    TotalAmountLCY := 0;
    TotalAmountAddCurr := 0;
    PositiveLCYAppAmt := 0;
    PositiveACYAppAmt := 0;
    ...

    Código de substituição 2

    ...ReceivableAccAmtLCY@1100001 : Decimal;
    ReceivableAccAmtAddCurr@1100000 : Decimal;
    DtldCustLedgEntry2@1100003 : TEMPORARY Record 379;
    ExistDtldCVLedgEntryBuf@1000003 : Boolean;
    FindBill@1100004 : Boolean;

    // Add the following line.
    EntryUnapplied@1100051 : Boolean;
    // End of the added line.

    BEGIN
    TotalAmountLCY := 0;
    TotalAmountAddCurr := 0;
    PositiveLCYAppAmt := 0;
    PositiveACYAppAmt := 0;
    ...

    3 de código existente

    ... TotalAmountAddCurr := 0;
    PositiveLCYAppAmt := 0;
    PositiveACYAppAmt := 0;
    NegativeLCYAppAmt := 0;
    NegativeACYAppAmt := 0;

    IF GenJnlLine2."Account Type" = GenJnlLine2."Account Type"::Customer THEN BEGIN
    IF DtldCustLedgEntry.FINDLAST THEN
    DtldCustLedgEntryNoOffset := DtldCustLedgEntry."Entry No."
    ELSE
    ...

    Código de substituição 3

    ...TotalAmountAddCurr := 0;
    PositiveLCYAppAmt := 0;
    PositiveACYAppAmt := 0;
    NegativeLCYAppAmt := 0;
    NegativeACYAppAmt := 0;

    // Add the following line.
    EntryUnapplied := FALSE;
    // End of the added line.

    IF GenJnlLine2."Account Type" = GenJnlLine2."Account Type"::Customer THEN BEGIN
    IF DtldCustLedgEntry.FINDLAST THEN
    DtldCustLedgEntryNoOffset := DtldCustLedgEntry."Entry No."
    ELSE
    ...

    4 de código existente

    ... END;
    InsertGLEntry(TRUE);
    GenJnlLine."Posting Date" := OriginalPostingDate;
    END;

    // Delete the following line.
    PostReceivableDocs(GenJnlLine);
    // End of the deleted line.

    IF NOT GLEntryTmp.FINDFIRST AND ExistDtldCVLedgEntryBuf THEN BEGIN
    InitGLEntry(CustPostingGr."Receivables Account",PositiveLCYAppAmt,PositiveACYAppAmt,FALSE,TRUE);
    InsertGLEntry(FALSE);
    InitGLEntry(CustPostingGr."Receivables Account",NegativeLCYAppAmt,NegativeACYAppAmt,FALSE,TRUE);
    ...

    Código de substituição 4

    ... END;
    InsertGLEntry(TRUE);
    GenJnlLine."Posting Date" := OriginalPostingDate;
    END;

    // Add the following lines.
    WITH DtldCustLedgEntry3 DO BEGIN
    SETCURRENTKEY("Cust. Ledger Entry No.");
    SETRANGE("Cust. Ledger Entry No.",DtldCustLedgEntry."Cust. Ledger Entry No.");
    SETFILTER("Applies-to Bill No.",'<>%1','');
    SETRANGE(Unapplied,TRUE);
    EntryUnapplied := NOT ISEMPTY;
    END;

    PostReceivableDocs(EntryUnapplied);
    // End of the added lines.

    IF NOT GLEntryTmp.FINDFIRST AND ExistDtldCVLedgEntryBuf THEN BEGIN
    InitGLEntry(CustPostingGr."Receivables Account",PositiveLCYAppAmt,PositiveACYAppAmt,FALSE,TRUE);
    InsertGLEntry(FALSE);
    InitGLEntry(CustPostingGr."Receivables Account",NegativeLCYAppAmt,NegativeACYAppAmt,FALSE,TRUE);
    ...
  2. Alterar o código de função PostDtldVendLedgEntries em geral Jnl.-lançar linha codeunit (12) da seguinte maneira:
    1 de código existente

    ...  PROCEDURE PostDtldVendLedgEntries@32(GenJnlLine2@1000 : Record 81;VAR DtldCVLedgEntryBuf@1001 : Record 383;VendPostingGr@1002 : Record 93;NextTransactionNo@1003 : Integer;VendLedgEntryInserted@1011 : Boolean);
    VAR
    DtldVendLedgEntry@1004 : Record 380;
    Currency@1006 : Record 4;
    GenPostingSetup@1007 : Record 252;
    TotalAmountLCY@1008 : Decimal;
    TotalAmountAddCurr@1009 : Decimal;
    PaymentDiscAcc@1010 : Code[20];
    DtldVendLedgEntryNoOffset@1005 : Integer;
    PaymentTolAcc@1012 : Code[20];
    ...

    1 código de substituição

    ...PROCEDURE PostDtldVendLedgEntries@32(GenJnlLine2@1000 : Record 81;VAR DtldCVLedgEntryBuf@1001 : Record 383;VendPostingGr@1002 : Record 93;NextTransactionNo@1003 : Integer;VendLedgEntryInserted@1011 : Boolean);
    VAR
    DtldVendLedgEntry@1004 : Record 380;
    Currency@1006 : Record 4;
    GenPostingSetup@1007 : Record 252;

    // Add the following line.
    DtldVendLedgEntry3@1100055 : Record 380;
    // End of the added line.

    TotalAmountLCY@1008 : Decimal;
    TotalAmountAddCurr@1009 : Decimal;
    PaymentDiscAcc@1010 : Code[20];
    DtldVendLedgEntryNoOffset@1005 : Integer;
    PaymentTolAcc@1012 : Code[20];
    ...

    2 de código existente

    ...PayableAccAmtLCY@1100002 : Decimal;
    PayableAccAmtAddCurr@1100010 : Decimal;
    DtldVendLedgEntry2@1100003 : Record 380;
    ExistDtldCVLedgEntryBuf@1100004 : Boolean;
    FindBill@1100005 : Boolean;
    BEGIN
    TotalAmountLCY := 0;
    TotalAmountAddCurr := 0;
    PositiveLCYAppAmt := 0;
    PositiveACYAppAmt := 0;
    ...

    Código de substituição 2

    ...PayableAccAmtLCY@1100002 : Decimal;
    PayableAccAmtAddCurr@1100010 : Decimal;
    DtldVendLedgEntry2@1100003 : Record 380;
    ExistDtldCVLedgEntryBuf@1100004 : Boolean;
    FindBill@1100005 : Boolean;

    // Add the following line.
    EntryUnapplied@1100051 : Boolean;
    // End of the added line.

    BEGIN
    TotalAmountLCY := 0;
    TotalAmountAddCurr := 0;
    PositiveLCYAppAmt := 0;
    PositiveACYAppAmt := 0;
    ...

    3 de código existente

    ...TotalAmountAddCurr := 0;
    PositiveLCYAppAmt := 0;
    PositiveACYAppAmt := 0;
    NegativeLCYAppAmt := 0;
    NegativeACYAppAmt := 0;

    IF GenJnlLine2."Account Type" = GenJnlLine2."Account Type"::Vendor THEN BEGIN
    IF DtldVendLedgEntry.FINDLAST THEN
    DtldVendLedgEntryNoOffset := DtldVendLedgEntry."Entry No."
    ELSE
    ...

    Código de substituição 3

    ...TotalAmountAddCurr := 0;
    PositiveLCYAppAmt := 0;
    PositiveACYAppAmt := 0;
    NegativeLCYAppAmt := 0;
    NegativeACYAppAmt := 0;

    // Add the following line.
    EntryUnapplied := FALSE;
    // End of the added line.

    IF GenJnlLine2."Account Type" = GenJnlLine2."Account Type"::Vendor THEN BEGIN
    IF DtldVendLedgEntry.FINDLAST THEN
    DtldVendLedgEntryNoOffset := DtldVendLedgEntry."Entry No."
    ELSE
    ...

    4 de código existente

    ...END;
    InsertGLEntry(TRUE);
    GenJnlLine."Posting Date" := OriginalPostingDate;
    END;

    // Delete the following line.
    PostPayableDocs(GenJnlLine);
    // End of the deleted line.

    IF NOT GLEntryTmp.FINDFIRST AND ExistDtldCVLedgEntryBuf THEN BEGIN
    InitGLEntry(VendPostingGr."Payables Account",PositiveLCYAppAmt,PositiveACYAppAmt,FALSE,TRUE);
    InsertGLEntry(FALSE);
    InitGLEntry(VendPostingGr."Payables Account",NegativeLCYAppAmt,NegativeACYAppAmt,FALSE,TRUE);
    ...

    Código de substituição 4

    ...END;
    InsertGLEntry(TRUE);
    GenJnlLine."Posting Date" := OriginalPostingDate;
    END;

    // Add the following lines.
    WITH DtldVendLedgEntry3 DO BEGIN
    SETCURRENTKEY("Vendor Ledger Entry No.");
    SETRANGE("Vendor Ledger Entry No.",DtldVendLedgEntry."Vendor Ledger Entry No.");
    SETFILTER("Applies-to Bill No.",'<>%1','');
    SETRANGE(Unapplied,TRUE);
    EntryUnapplied := NOT ISEMPTY;
    END;

    PostPayableDocs(EntryUnapplied);
    // End of the added lines.

    IF NOT GLEntryTmp.FINDFIRST AND ExistDtldCVLedgEntryBuf THEN BEGIN
    InitGLEntry(VendPostingGr."Payables Account",PositiveLCYAppAmt,PositiveACYAppAmt,FALSE,TRUE);
    InsertGLEntry(FALSE);
    InitGLEntry(VendPostingGr."Payables Account",NegativeLCYAppAmt,NegativeACYAppAmt,FALSE,TRUE);
    ...
  3. Alterar o código de função PostPayableDocs em geral Jnl.-lançar linha codeunit (12) da seguinte maneira:
    1 de código existente

    ...ELSE
    VATEntry."Bill-to/Pay-to No." := GenJnlLine2."Account No.";
    END;
    END;

    // Delete the following line.
    LOCAL PROCEDURE PostPayableDocs@1100009(VAR GenJnlLine@1100000 : Record 81);
    // End of the deleted line.

    BEGIN
    IF (DocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) THEN
    IF NextEntryNo2 = NextEntryNo THEN
    NextEntryNo := NextEntryNo - 1;
    IF DocAmountLCY <> 0 THEN BEGIN
    ...

    1 código de substituição

    ...ELSE
    VATEntry."Bill-to/Pay-to No." := GenJnlLine2."Account No.";
    END;
    END;

    // Add the following line.
    LOCAL PROCEDURE PostPayableDocs@1100009(EntryUnapplied@1100001 : Boolean);
    // End of the added line.

    BEGIN
    IF (DocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) THEN
    IF NextEntryNo2 = NextEntryNo THEN
    NextEntryNo := NextEntryNo - 1;
    IF DocAmountLCY <> 0 THEN BEGIN
    ...

    2 de código existente

    ...BEGIN
    IF (DocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) THEN
    IF NextEntryNo2 = NextEntryNo THEN
    NextEntryNo := NextEntryNo - 1;
    IF DocAmountLCY <> 0 THEN BEGIN

    // Delete the following lines.
    // VSTF330588.begin
    //IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) THEN BEGIN
    IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) OR
    (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::" ")
    THEN BEGIN
    // VSTF330588.end
    // End of the deleted lines.

    VendPostingGr.TESTFIELD("Payables Account");
    InitGLEntry(VendPostingGr."Payables Account",DocAmountLCY,DocAmtCalcAddCurrency(DocAmountLCY),TRUE,TRUE);
    GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type";
    GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
    InsertGLEntry(TRUE);
    ...

    Código de substituição 2

    ...BEGIN
    IF (DocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) THEN
    IF NextEntryNo2 = NextEntryNo THEN
    NextEntryNo := NextEntryNo - 1;
    IF DocAmountLCY <> 0 THEN BEGIN

    // Add the following lines.
    IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) OR
    EntryUnapplied
    THEN BEGIN
    // End of the added lines.

    VendPostingGr.TESTFIELD("Payables Account");
    InitGLEntry(VendPostingGr."Payables Account",DocAmountLCY,DocAmtCalcAddCurrency(DocAmountLCY),TRUE,TRUE);
    GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type";
    GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
    InsertGLEntry(TRUE);
    ...
  4. Alterar o código de função PostReceivableDocs em geral Jnl.-lançar linha codeunit (12) da seguinte maneira:
    1 de código existente

    ... GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
    InsertGLEntry(TRUE);
    END;
    END;

    // Delete the following line.
    LOCAL PROCEDURE PostReceivableDocs@1100003(VAR GenJnlLine@1100000 : Record 81);
    // End of the deleted line.

    BEGIN
    IF (DocAmountLCY <> 0) OR (DiscDocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) OR (RejDocAmountLCY <> 0) OR
    (DiscRiskFactAmountLCY <> 0) OR (DiscUnriskFactAmountLCY <> 0) OR (CollFactAmountLCY <> 0) THEN
    IF NextEntryNo2 = NextEntryNo THEN
    NextEntryNo := NextEntryNo - 1;
    ...

    1 código de substituição

    ...GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
    InsertGLEntry(TRUE);
    END;
    END;

    // Add the following line.
    LOCAL PROCEDURE PostReceivableDocs@1100003(EntryUnapplied@1100001 : Boolean);
    // End of the added line.

    BEGIN
    IF (DocAmountLCY <> 0) OR (DiscDocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) OR (RejDocAmountLCY <> 0) OR
    (DiscRiskFactAmountLCY <> 0) OR (DiscUnriskFactAmountLCY <> 0) OR (CollFactAmountLCY <> 0) THEN
    IF NextEntryNo2 = NextEntryNo THEN
    NextEntryNo := NextEntryNo - 1;
    ...

    2 de código existente

    ...IF (DocAmountLCY <> 0) OR (DiscDocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) OR (RejDocAmountLCY <> 0) OR
    (DiscRiskFactAmountLCY <> 0) OR (DiscUnriskFactAmountLCY <> 0) OR (CollFactAmountLCY <> 0) THEN
    IF NextEntryNo2 = NextEntryNo THEN
    NextEntryNo := NextEntryNo - 1;
    IF DocAmountLCY <> 0 THEN BEGIN

    // Delete the following lines.
    // VSTF330588.begin
    //IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) THEN BEGIN
    IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) OR
    (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::" ")
    THEN BEGIN
    // VSTF330588.end
    // End of the deleted lines.

    CustPostingGr.TESTFIELD("Receivables Account");
    InitGLEntry(CustPostingGr."Receivables Account",DocAmountLCY,DocAmtCalcAddCurrency(DocAmountLCY),TRUE,TRUE);
    GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type";
    GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
    InsertGLEntry(TRUE);
    ...

    Código de substituição 2

    ...IF (DocAmountLCY <> 0) OR (DiscDocAmountLCY <> 0) OR (CollDocAmountLCY <> 0) OR (RejDocAmountLCY <> 0) OR
    (DiscRiskFactAmountLCY <> 0) OR (DiscUnriskFactAmountLCY <> 0) OR (CollFactAmountLCY <> 0) THEN
    IF NextEntryNo2 = NextEntryNo THEN
    NextEntryNo := NextEntryNo - 1;
    IF DocAmountLCY <> 0 THEN BEGIN

    // Add the following lines.
    IF (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Invoice) OR
    EntryUnapplied
    THEN BEGIN
    // End of the added lines.

    CustPostingGr.TESTFIELD("Receivables Account");
    InitGLEntry(CustPostingGr."Receivables Account",DocAmountLCY,DocAmtCalcAddCurrency(DocAmountLCY),TRUE,TRUE);
    GLEntry."Bal. Account Type" := GenJnlLine."Bal. Account Type";
    GLEntry."Bal. Account No." := GenJnlLine."Bal. Account No.";
    InsertGLEntry(TRUE);
    ...

Pré-requisitos:

Você deve ter um dos seguintes produtos instalados para aplicar esse hotfix:

  • A versão em espanhol do Microsoft Dynamics NAV 2009 R2

  • A versão em espanhol do Microsoft Dynamics NAV 2009 SP1

Além disso, você deve ter o KB3034441 instalado.

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.

Precisa de mais ajuda?

Quer mais opções

Explore os benefícios da assinatura, procure cursos de treinamento, saiba como proteger seu dispositivo e muito mais.

As comunidades ajudam você a fazer e responder perguntas, fazer comentários e ouvir especialistas com conhecimento avançado.

Essas informações foram úteis?

Qual é o seu grau de satisfação com a qualidade do idioma?
O que afetou sua experiência?
Ao pressionar enviar, seus comentários serão usados para aprimorar os produtos e serviços da Microsoft. Seu administrador de TI poderá coletar esses dados. Política de Privacidade.

Agradecemos seus comentários!

×