Este artigo aplica-se ao Microsoft Dynamics NAV para a região de idioma italiano (it).
Sintomas
Suponha que utiliza uma fatura de memorando de crédito aplicada na versão italiana do Microsoft Dynamics NAV 2009 Service Pack 1 (SP1). Quando executa o relatório lista de faturas do cliente (12117) e o relatório lista de faturas da conta de fornecedor (12116), os relatórios imprime os memorandos de crédito aplicados à fatura duas vezes inesperadamente.
Resolução
Informações sobre o hotfix
Uma correção suportada está agora disponível na Microsoft. No entanto, destina-se apenas a corrigir o problema descrito neste artigo. Aplique-o apenas a sistemas com este problema específico. Esta correção pode receber testes adicionais. Por conseguinte, se não for gravemente afetado por este problema, recomendamos que aguarde pelo próximo service pack do Microsoft Dynamics NAV 2009 ou pela próxima versão do Microsoft Dynamics NAV que contém esta correção.
Nota Em casos especiais, os custos normalmente incorridos para chamadas de suporte poderão ser cancelados se um Profissional de Suporte Técnico do Microsoft Dynamics e produtos relacionados determinar que uma atualização específica irá resolve o seu problema. Os custos de suporte em geral aplicam-se a questões e problemas de suporte adicionais que não se enquadrem na atualização específica em questão.
Informações de instalação
A Microsoft fornece exemplos de programação apenas para ilustração, sem garantia expressa ou implícita. Isso inclui, mas não se limita a, as garantias implícitas de comercialização ou adequação a uma finalidade específica. Este artigo pressupõe 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 ajudá-lo, fornecendo a explicação da funcionalidade de determinado procedimento, mas não modificarão estes exemplos para fornecer funcionalidade adicional nem criarão procedimentos específicos para atender às suas necessidades específicas.
Nota Antes de instalar esta correção, verifique se todos os utilizadores cliente do Microsoft Navision têm sessão iniciada no sistema. Isto inclui utilizadores cliente do Microsoft Navision Application Services (NAS). Deve ser o único utilizador cliente com sessão iniciada quando implementa esta correção.
Para implementar esta correção, tem de ter uma licença de programador.
Recomendamos que a conta de utilizador na janela Inícios de Sessão do Windows ou na janela Inícios de Sessão da Base de Dados seja atribuída ao ID da função "SUPER". Se não for possível atribuir à conta de utilizador o ID de função "SUPER", tem de verificar se a conta de utilizador tem as seguintes permissões:
- A permissão Modificar para o objeto que irá alterar.
- A permissão Executar para o objeto ID de Objeto de Sistema 5210 e para o objeto ID de Objeto do Sistema 9015.
Nota Não tem de ter direitos sobre os arquivos de dados, a menos que tenha de efetuar a reparação de dados.
Alterações de código
Nota Teste sempre as correções de código num ambiente controlado antes de aplicar as correções aos seus computadores de produção.
Para resolver este problema, execute as seguintes etapas:
Altere o código do Item de Dados Número 2 no relatório Lista de Faturas da Conta do Fornecedor (12116) da seguinte forma:
Código existente... END; OnAfterGetRecord=BEGIN // Delete the following lines. IF (("Document Type" = "Document Type"::Payment) OR ("Document Type" = "Document Type"::" ")) AND (Open = FALSE) THEN // End of the lines. CurrReport.SKIP; CALCFIELDS("Amount (LCY)","Remaining Amt. (LCY)"); ...Código de substituição
... END; OnAfterGetRecord=BEGIN // Add the following lines. IF (("Document Type" = "Document Type"::Payment) OR ("Document Type" = "Document Type"::" ") OR ("Document Type" = "Document Type"::"Credit Memo")) AND NOT Open THEN // End of the lines. CurrReport.SKIP; CALCFIELDS("Amount (LCY)","Remaining Amt. (LCY)"); ...Altere o código das Secções Número de Item de Dados 2 no relatório Lista de Faturas da Conta do Fornecedor (12116) da seguinte forma:
Código existente... DataSetFieldName=VendLedgEntry1__External_Document_No___Control1130023 } { 1130024;TextBox ;1950 ;423 ;1350 ;423 ;SourceExpr="Document Type"; DataSetFieldName=VendLedgEntry1__Document_Type__Control1130024 } } } { PROPERTIES ...Código de substituição
... DataSetFieldName=VendLedgEntry1__External_Document_No___Control1130023 } { 1130024;TextBox ;1950 ;423 ;1350 ;423 ;SourceExpr="Document Type"; DataSetFieldName=VendLedgEntry1__Document_Type__Control1130024 } // Add the following lines. { 1130082;TextBox ;27600;0 ;150 ;423 ;Visible=No; ForeColor=65535; SourceExpr=FORMAT("Document Type",0,2); DataSetFieldName=VendLedgEntry1_DocumentType } // End of the lines. } } { PROPERTIES ...Altere o código das Secções Número de Item de Dados 4 no relatório Lista de Faturas da Conta do Fornecedor (12116) da seguinte forma:
Código existente 1... SectionWidth=27750; SectionHeight=846; OnPreSection=BEGIN // Delete the following lines. IF (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::Payment) OR (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::" ") THEN // End of the lines. CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); ...Código de substituição 1
... SectionWidth=27750; SectionHeight=846; OnPreSection=BEGIN // Add the following lines. IF (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::Payment) OR (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::"Credit Memo") OR (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::" ") OR ("Unapplied by Entry No." <> 0) THEN // End of the lines. CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); ...Código existente 2
... CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); // Delete the following lines. IF ("Unapplied by Entry No." <> 0) THEN CurrReport.SHOWOUTPUT(FALSE); // End of the lines. END; } ...Código de substituição 2
... CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); END; } ...Altere o código da Documentação no relatório Lista de Faturas da Conta do Fornecedor (12116) da seguinte forma:
Código existente 1... </TableCell> </TableCells> <Visibility> // Delete the following line. <Hidden>=IIF((Fields!Detailed_Vendor_Ledg__Entry_Entry_No_.Value=0 or Fields!Detailed_Vendor_Ledg__Entry__Unapplied_by_Entry_No__.Value<>0),TRUE,FALSE)</Hidden> // End of the line. </Visibility> </TableRow> <TableRow> ...Código de substituição 1
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!Detailed_Vendor_Ledg__Entry_Entry_No_.Value=0 OR Fields!Detailed_Vendor_Ledg__Entry__Unapplied_by_Entry_No__.Value<>0 OR Fields!VendLedgEntry1_DocumentType.Value="1" OR Fields!VendLedgEntry1_DocumentType.Value="3" OR Fields!VendLedgEntry1_DocumentType.Value="0", TRUE,FALSE)</Hidden> // End of the lines. </Visibility> </TableRow> <TableRow> ...Código existente 2
... </TableCell> </TableCells> <Visibility> // Delete the following lines. <Hidden>=IIF(Fields!VendLedgEntry1__Document_Type_.Value="Invoice" OR Fields!VendLedgEntry1__Document_Type_.Value="Finance Charge Memo" OR Fields!VendLedgEntry1__Document_Type_.Value="Reminder" OR Fields!VendLedgEntry1__Document_Type_.Value="Credit Memo", // End of the lines. FALSE,TRUE)</Hidden> </Visibility> </TableRow> ...Código de substituição 2
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!VendLedgEntry1_DocumentType.Value="2" OR Fields!VendLedgEntry1_DocumentType.Value="4" OR Fields!VendLedgEntry1_DocumentType.Value="5" OR Fields!VendLedgEntry1_DocumentType.Value="3", // End of the lines. FALSE,TRUE)</Hidden> </Visibility> </TableRow> ...Código existente 3
... </TableCell> </TableCells> <Visibility> // Delete the following lines. <Hidden>=IIF(Fields!VendLedgEntry1__Document_Type_.Value<>"Invoice" AND Fields!VendLedgEntry1__Document_Type_.Value<>"Finance Charge Memo" AND Fields!VendLedgEntry1__Document_Type_.Value<>"Reminder" AND Fields!VendLedgEntry1__Document_Type_.Value<>"Credit Memo" AND // End of the lines. Fields!VendLedgEntry1__Remaining_Amt___LCY__.Value<>0, FALSE,TRUE)</Hidden> </Visibility> ...Código de substituição 3
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!VendLedgEntry1_DocumentType.Value<>"2" AND Fields!VendLedgEntry1_DocumentType.Value<>"4" AND Fields!VendLedgEntry1_DocumentType.Value<>"5" AND Fields!VendLedgEntry1_DocumentType.Value<>"3" AND // End of the lines. Fields!VendLedgEntry1__Remaining_Amt___LCY__.Value<>0, FALSE,TRUE)</Hidden> </Visibility> ...Código existente 4
... <Field Name="VendLedgEntry1__Amount__LCY___Control1130017Format"> <DataField>VendLedgEntry1__Amount__LCY___Control1130017Format</DataField> </Field> <Field Name="Vendor_BalanceCaption"> <DataField>Vendor_BalanceCaption</DataField> </Field> ...Código de substituição 4
... <Field Name="VendLedgEntry1__Amount__LCY___Control1130017Format"> <DataField>VendLedgEntry1__Amount__LCY___Control1130017Format</DataField> </Field> // Add the following lines. <Field Name="VendLedgEntry1_DocumentType"> <DataField>VendLedgEntry1_DocumentType</DataField> </Field> // End of the lines. <Field Name="Vendor_BalanceCaption"> <DataField>Vendor_BalanceCaption</DataField> </Field> ...Altere o código do Item de Dados Número 2 no relatório Lista de Faturas do Cliente (12117) da seguinte forma:
Código existente... END; OnAfterGetRecord=BEGIN // Delete the following lines. IF (("Document Type" = "Document Type"::Payment) OR ("Document Type" = "Document Type"::" ")) AND (Open = FALSE) THEN // End of the lines. CurrReport.SKIP; ...Código de substituição
... END; OnAfterGetRecord=BEGIN // Add the following lines. IF (("Document Type" = "Document Type"::Payment) OR ("Document Type" = "Document Type"::" ") OR ("Document Type" = "Document Type"::"Credit Memo")) AND NOT Open THEN // End of the lines. CurrReport.SKIP; CALCFIELDS("Amount (LCY)","Remaining Amt. (LCY)"); ...Altere o código das Secções Número de Item de Dados 2 no relatório Lista de Faturas do Cliente (12117) da seguinte forma:
Código existente... ForeColor=65535; SourceExpr=CustLedgEntry1."Bank Receipt"; DataSetFieldName=CustLedgEntry1_CustLedgEntry1__Bank_Receipt_ } } } { PROPERTIES ...Código de substituição
... ForeColor=65535; SourceExpr=CustLedgEntry1."Bank Receipt"; DataSetFieldName=CustLedgEntry1_CustLedgEntry1__Bank_Receipt_ } // Add the following lines. { 1130008;TextBox ;24150;423 ;150 ;423 ;Visible=No; ForeColor=65535; SourceExpr=FORMAT("Document Type",0,2); DataSetFieldName=CustLedgEntry1_DocumentType } // End of the lines. } } { PROPERTIES ...Altere o código das Secções Número de Item de Dados 4 no relatório Lista de Faturas do Cliente (12117) da seguinte forma:
Código existente 1... SectionWidth=24450; SectionHeight=846; OnPreSection=BEGIN // Delete the following lines. IF (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::Payment) OR (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::" ") THEN // End of the lines. CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); ...Código de substituição 1
... SectionWidth=24450; SectionHeight=846; OnPreSection=BEGIN // Add the following lines. IF (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::Payment) OR (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::"Credit Memo") OR (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::" ") OR ("Unapplied by Entry No." <> 0) THEN // End of the lines. CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); ...Código existente 2
... CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); // Delete the following lines. IF ("Unapplied by Entry No." <> 0) THEN CurrReport.SHOWOUTPUT(FALSE); // End of the lines. END; } ...Código de substituição 2
... CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); END; } ...Altere o código da Documentação no relatório Lista de Faturas do Cliente (12117) da seguinte forma:
Código existente 1... </TableCell> </TableCells> <Visibility> // Delete the following line. <Hidden>=IIF(Fields!Detailed_Cust__Ledg__Entry_Entry_No_.Value=0,TRUE,FALSE)</Hidden> // End of the line. </Visibility> </TableRow> <TableRow> ...Código de substituição 1
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!Detailed_Cust__Ledg__Entry_Entry_No_.Value=0 OR Fields!CustLedgEntry1_DocumentType.Value="0" OR Fields!CustLedgEntry1_DocumentType.Value="1" OR Fields!CustLedgEntry1_DocumentType.Value="3", TRUE,FALSE)</Hidden> // End of the lines. </Visibility> </TableRow> <TableRow> ...Código existente 2
... </TableCell> </TableCells> <Visibility> // Delete the following lines. <Hidden>=IIF(Fields!CustLedgEntry1__Document_Type_.Value="Invoice" OR Fields!CustLedgEntry1__Document_Type_.Value="Finance Charge Memo" OR Fields!CustLedgEntry1__Document_Type_.Value="Reminder" OR Fields!CustLedgEntry1__Document_Type_.Value="Credit Memo", // End of the lines. FALSE,TRUE)</Hidden> </Visibility> </TableRow> ...Código de substituição 2
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!CustLedgEntry1_DocumentType.Value="2" OR Fields!CustLedgEntry1_DocumentType.Value="4" OR Fields!CustLedgEntry1_DocumentType.Value="5" OR Fields!CustLedgEntry1_DocumentType.Value="3", // End of the lines. FALSE,TRUE)</Hidden> </Visibility> </TableRow> ...Código existente 3
... </TableCell> </TableCells> <Visibility> // Delete the following lines. <Hidden>=IIF(Fields!CustLedgEntry1__Document_Type_.Value<>"Invoice" AND Fields!CustLedgEntry1__Document_Type_.Value<>"Finance Charge Memo" AND Fields!CustLedgEntry1__Document_Type_.Value<>"Reminder" AND Fields!CustLedgEntry1__Document_Type_.Value<>"Credit Memo" AND // End of the lines. Fields!CustLedgEntry1__Remaining_Amt___LCY__.Value<>0 AND Fields!CustLedgEntry1_CustLedgEntry1__Bank_Receipt_.Value=FALSE, FALSE,TRUE)</Hidden> ...Código de substituição 3
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!CustLedgEntry1_DocumentType.Value<>"2" AND Fields!CustLedgEntry1_DocumentType.Value<>"4" AND Fields!CustLedgEntry1_DocumentType.Value<>"5" AND Fields!CustLedgEntry1_DocumentType.Value<>"3" AND // End of the lines. Fields!CustLedgEntry1__Remaining_Amt___LCY__.Value<>0 AND Fields!CustLedgEntry1_CustLedgEntry1__Bank_Receipt_.Value=FALSE, FALSE,TRUE)</Hidden> ...Código existente 4
... <Field Name="CustLedgEntry1_CustLedgEntry1__Bank_Receipt_"> <DataField>CustLedgEntry1_CustLedgEntry1__Bank_Receipt_</DataField> </Field> <Field Name="Customer_BalanceCaption"> <DataField>Customer_BalanceCaption</DataField> </Field> ..Código de substituição 4
... <Field Name="CustLedgEntry1_CustLedgEntry1__Bank_Receipt_"> <DataField>CustLedgEntry1_CustLedgEntry1__Bank_Receipt_</DataField> </Field> // Add the following lines. <Field Name="CustLedgEntry1_DocumentType"> <DataField>CustLedgEntry1_DocumentType</DataField> </Field> // End of the lines. <Field Name="Customer_BalanceCaption"> <DataField>Customer_BalanceCaption</DataField> </Field> ...
Pré-requisitos
Tem de ter a versão italiana do Microsoft Dynamics NAV 2009 Service Pack 1 instalada para aplicar esta correção.
Informações sobre remoção
Não é possível remover esta correção.
Status
A Microsoft confirmou que este é um problema nos produtos da Microsoft listados na seção "Aplica-se a".
Observação Este é um artigo "FAST PUBLISH" criado diretamente na organização de suporte da Microsoft. As informações contidas aqui são fornecidas como resposta aos problemas possíveis. Como resultado da prontidão de disponibilizá-lo, os materiais pode conter erros tipográficos e podem ser revisados a qualquer momento são aviso prévio. Consulte Termos de Uso para obter outras considerações.