Iniciar sessão com a Microsoft
Iniciar sessão ou criar uma conta.
Olá,
Selecione uma conta diferente.
Tem várias contas
Selecione a conta com a qual pretende iniciar sessão.

Este artigo descreve um problema ao imprimir os relatórios de Stock recebidos não facturada e Stock enviado não facturado no Reino Unido a localização do Microsoft Dynamics NAV 2009. Este problema persiste depois da implementação KB 2882942.

Siga os passos na secção de alterações de código para resolver este problema. Este problema ocorre nos seguintes produtos:

  • A Reino Unido a localização do Microsoft Dynamics NAV 2009 R2

  • A Reino Unido a localização do Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)

Resolução

Informações sobre correção

Agora tem uma correcção suportada disponível na Microsoft. Contudo, destina-se apenas a corrigir o problema descrito neste artigo. Aplique-a apenas em sistemas que tenham este problema específico. Esta correcção poderá ser submetida a testes adicionais. Por conseguinte, se não estiver a ser gravemente afectado por este problema, recomendamos que aguarde o próximo service pack do Microsoft Dynamics NAV 2009 ou a próxima versão do Microsoft Dynamics NAV que contenha esta correcção.

Nota Em casos especiais, os custos normalmente inerentes para suporte chamadas poderão ser anuladas se um técnico de suporte técnico do Microsoft Dynamics e produtos relacionados determina que uma actualização específica resolverá o problema. Os custos de normais do suporte serão aplicados a questões de suporte adicionais e problemas 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 a título ilustrativo, sem garantia expressa ou implícita. Isto inclui, mas não está limitado a, garantias implícitas de comercialização ou adequação a um fim específico. Este artigo pressupõe que está familiarizado com a linguagem de programação que está a ser demonstrada e com as ferramentas que são utilizadas para criar e depurar procedimentos. Técnicos de suporte da Microsoft podem ajudar a explicar a funcionalidade de um determinado procedimento. No entanto, não modificarão estes exemplos para proporcionarem funcionalidades adicionais nem criarão procedimentos adaptados às necessidades específicas do utilizador.

Nota Antes de instalar esta correcção, certifique-se de que todos os utilizadores de cliente do Microsoft Dynamics NAV são registados no sistema. Isto inclui os serviços de servidor de aplicações (NAS) do Microsoft Dynamics NAV. Deve ser o único usuário do cliente que tem sessão iniciada quando implementar esta correcção.

Para implementar esta correcção, tem de ter uma licença de desenvolvedor.

Recomendamos que a conta de utilizador na janela Logins do Windows ou na janela Logins de base de dados seja atribuída a ID de função "SUPER". Se a conta de utilizador não é possível atribuir o ID de função "SUPER", tem de verificar que a conta de utilizador tem as seguintes permissões:

  • A permissão Modificar para o objecto que estará a alterar.

  • A permissão executar para o objecto 5210 de ID de objecto de sistema e para o 9015 de ID de objecto de sistema

    objecto.

Nota Não tem de ter direitos para os arquivos de dados, excepto se tiver de efectuar a reparação de dados.

Alterações de código

Nota Sempre o código de ensaio corrige num ambiente controlado antes de aplicar as correcções para os computadores de produção.

Para resolver este problema, siga estes passos:

  1. Alterar o código em dados produto número 1 secções recebido o depósito regulador não facturado relatório (10540) do seguinte modo:
    Código existente 1

    ...VertAlign=Bottom;
    FontBold=Yes;
    MultiLine=Yes;
    DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__Caption }
    { 1040042;Label ;5700 ;0 ;1550 ;846 ;ParentControl=1040040;
    VertAlign=Bottom;
    ...

    Código de substituição 1

    ...VertAlign=Bottom;
    FontBold=Yes;
    MultiLine=Yes;

    // Adding the following line.
    CaptionML=ENU=Cost Amount (Expected);
    // End of the added line.

    DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__Caption }
    { 1040042;Label ;5700 ;0 ;1550 ;846 ;ParentControl=1040040;
    VertAlign=Bottom;
    ...

    Código existente 2

    ...SourceExpr="Value Entry"."Invoiced Quantity";
    DataSetFieldName=Item_Ledger_Entry___Invoiced_Quantity_ }
    { 1040039;TextBox ;13050;0 ;1800 ;423 ;FontBold=Yes;

    // Deleting the following line.
    SourceExpr="Item Ledger Entry"."Cost Amount (Expected)";
    // End of the deleted line.

    DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected__ }
    { 1040045;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
    SourceExpr=Text1040005 + ' ' + Item."No.";
    ...

    Código de substituição 2

    ...SourceExpr="Value Entry"."Invoiced Quantity";
    DataSetFieldName=Item_Ledger_Entry___Invoiced_Quantity_ }
    { 1040039;TextBox ;13050;0 ;1800 ;423 ;FontBold=Yes;

    // Adding the following line.
    SourceExpr=ItemCostAmtExpected;
    // End of the added line.

    DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected__ }
    { 1040045;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
    SourceExpr=Text1040005 + ' ' + Item."No.";
    ...

    Código existente 3

    ...DataSetFieldName=Value_Entry___Cost_Amount__Actual__ }
    { 1040059;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
    CaptionML=ENU=Rec. not invoiced;

    // Deleting the following line.
    SourceExpr="Item Ledger Entry"."Cost Amount (Expected)" - "Value Entry"."Cost Amount (Actual)";
    // End of the deleted line.

    DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual__ }
    { 1040064;TextBox ;15000;0 ;1500 ;423 ;FontBold=Yes;
    SourceExpr="Value Entry"."Invoiced Quantity";
    ...

    Código de substituição 3

    ...DataSetFieldName=Value_Entry___Cost_Amount__Actual__ }
    { 1040059;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
    CaptionML=ENU=Rec. not invoiced;

    // Adding the following line.
    SourceExpr=ItemCostAmtExpected - ValueCostAmtActual;
    // End of the added line.

    DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual__ }
    { 1040064;TextBox ;15000;0 ;1500 ;423 ;FontBold=Yes;
    SourceExpr="Value Entry"."Invoiced Quantity";
    ...

    Código existente 4

    ...DataSetFieldName=Item_Ledger_Entry___Invoiced_Quantity__Control1040067 }
    { 1040068;TextBox ;13050;423 ;1800 ;423 ;FontSize=7;
    FontBold=Yes;

    // Deleting the following lines.
    SourceExpr="Item Ledger Entry"."Cost Amount (Expected)";
    DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected___Control1040068 }
    { 1040069;TextBox ;7350 ;423 ;1550 ;423 ;FontSize=7;
    FontBold=Yes;
    CaptionML=ENU=Rec. not invoiced;
    SourceExpr="Item Ledger Entry"."Cost Amount (Expected)" - "Value Entry"."Cost Amount (Actual)";
    // End of the deleted lines.

    DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual___Control1040069 }
    { 1040070;TextBox ;15000;423 ;1500 ;423 ;FontSize=7;
    FontBold=Yes;
    ...

    Código de substituição 4

    ...DataSetFieldName=Item_Ledger_Entry___Invoiced_Quantity__Control1040067 }
    { 1040068;TextBox ;13050;423 ;1800 ;423 ;FontSize=7;
    FontBold=Yes;

    // Adding the following lines.
    SourceExpr=ItemCostAmtExpectedTotal }
    { 1040069;TextBox ;7350 ;423 ;1550 ;423 ;FontSize=7;
    FontBold=Yes;
    CaptionML=ENU=Rec. not invoiced;
    SourceExpr=ItemCostAmtExpectedTotal - ValueCostAmtActualTotal;
    // End of the added lines.

    DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual___Control1040069 }
    { 1040070;TextBox ;15000;423 ;1500 ;423 ;FontSize=7;
    FontBold=Yes;
    ...

    Código existente 5

    ...ForeColor=65535;
    SourceExpr=ItemInvoicedQtyTotal;
    DataSetFieldName=ItemInvoicedQtyTotal }

    // Delete the following lines.
    { 1040103;TextBox ;300 ;0 ;150 ;423 ;Name=ItemCostAmtExpectedTotal;
    Visible=No;
    ForeColor=65535;
    SourceExpr=ItemCostAmtExpectedTotal;
    DataSetFieldName=ItemCostAmtExpectedTotal }
    // End of the deleted lines.

    { 1040104;TextBox ;0 ;0 ;150 ;423 ;Name=ItemReceivedQtyTotal;
    Visible=No;
    ForeColor=65535;
    ...

    Código de substituição 5

    ...ForeColor=65535;
    SourceExpr=ItemInvoicedQtyTotal;
    DataSetFieldName=ItemInvoicedQtyTotal }
    { 1040104;TextBox ;0 ;0 ;150 ;423 ;Name=ItemReceivedQtyTotal;
    Visible=No;
    ForeColor=65535;
    ...
  2. Alterar o código em dados produto número 2 secções recebido o depósito regulador não facturado relatório (10540) do seguinte modo:
    Código existente 1

    ...NoOfItems := NoOfItems + 1;
    CurrReport.CREATETOTALS(Quantity,"Invoiced Quantity","Cost Amount (Expected)");
    CurrReport.CREATETOTALS("Value Entry"."Cost Amount (Actual)","Value Entry"."Invoiced Quantity");

    // Delete the following lines.
    // GB1004.begin
    ItemReceivedQty += Quantity;
    ItemInvoicedQty += "Invoiced Quantity";
    ItemCostAmtExpected += "Cost Amount (Expected)";
    ItemReceivedQtyTotal += Quantity;
    ItemInvoicedQtyTotal += "Invoiced Quantity";
    ItemCostAmtExpectedTotal += "Cost Amount (Expected)";
    // End of the deleted lines.

    // GB1004.end
    END;
    ...

    Código de substituição 1

    ...NoOfItems := NoOfItems + 1;
    CurrReport.CREATETOTALS(Quantity,"Invoiced Quantity","Cost Amount (Expected)");
    CurrReport.CREATETOTALS("Value Entry"."Cost Amount (Actual)","Value Entry"."Invoiced Quantity");

    // Add the following lines.
    CALCFIELDS("Cost Amount (Actual)");
    CALCFIELDS("Cost Amount (Expected)");
    // GB1004.begin
    ItemReceivedQty += Quantity;
    ItemInvoicedQty += "Invoiced Quantity";
    ItemCostAmtExpected += "Cost Amount (Expected)" + "Cost Amount (Actual)";
    ItemReceivedQtyTotal += Quantity;
    ItemInvoicedQtyTotal += "Invoiced Quantity";
    ItemCostAmtExpectedTotal += "Cost Amount (Expected)" + "Cost Amount (Actual)";
    // End of the added lines.

    // GB1004.end
    END;
    ...

    Código existente 2

    ...{ 1040047;TextBox   ;2100 ;0    ;1500 ;423  ;HorzAlign=Left;
    SourceExpr="Source No.";
    DataSetFieldName=Item_Ledger_Entry__Source_No__ }

    // Delete the following line.
    { 1040030;TextBox ;13050;0 ;1800 ;423 ;SourceExpr="Cost Amount (Expected)";
    // End of the deleted line.

    DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__ }
    }
    }
    ...

    Código de substituição 2

    ...{ 1040047;TextBox   ;2100 ;0    ;1500 ;423  ;HorzAlign=Left;
    SourceExpr="Source No.";
    DataSetFieldName=Item_Ledger_Entry__Source_No__ }

    // Add the following line.
    { 1040030;TextBox ;13050;0 ;1800 ;423 ;SourceExpr="Cost Amount (Expected)" + "Cost Amount (Actual)";
    // End of the added line.

    DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__ }
    }
    }
    ...

    Código existente 3

    ...SourceExpr="Value Entry"."Invoiced Quantity";
    DataSetFieldName=Item_Ledger_Entry__Item_Ledger_Entry___Invoiced_Quantity_ }
    { 1040076;TextBox ;13050;0 ;1800 ;423 ;FontBold=Yes;

    // Delete the following line.
    SourceExpr="Item Ledger Entry"."Cost Amount (Expected)";
    // End of the deleted line.

    DataSetFieldName=Item_Ledger_Entry__Item_Ledger_Entry___Cost_Amount__Expected__ }
    { 1040079;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
    SourceExpr=Text1040005 + ' ' + Item."No.";
    ...

    Código de substituição 3

    ...SourceExpr="Value Entry"."Invoiced Quantity";
    DataSetFieldName=Item_Ledger_Entry__Item_Ledger_Entry___Invoiced_Quantity_ }
    { 1040076;TextBox ;13050;0 ;1800 ;423 ;FontBold=Yes;

    // Add the following line.
    SourceExpr=ItemCostAmtExpected;
    // End of the added line.

    DataSetFieldName=Item_Ledger_Entry__Item_Ledger_Entry___Cost_Amount__Expected__ }
    { 1040079;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
    SourceExpr=Text1040005 + ' ' + Item."No.";
    ...

    Código existente 4

    ...DataSetFieldName=Item_Ledger_Entry__Quantity____Item_Ledger_Entry___Invoiced_Quantity__Control1040080 }
    { 1040081;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
    CaptionML=ENU=Cost;

    // Delete the following line.
    SourceExpr="Item Ledger Entry"."Cost Amount (Expected)" - "Value Entry"."Cost Amount (Actual)";
    // End of the deleted line.

    DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual___Control1040081 }
    { 1040078;TextBox ;18000;0 ;150 ;423 ;Name=NoOfItems;
    Visible=No;
    ...

    Código de substituição 4

    ...DataSetFieldName=Item_Ledger_Entry__Quantity____Item_Ledger_Entry___Invoiced_Quantity__Control1040080 }
    { 1040081;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
    CaptionML=ENU=Cost;

    // Add the following line.
    SourceExpr=ItemCostAmtExpected - ValueCostAmtActual;
    // End of the added line.

    DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual___Control1040081 }
    { 1040078;TextBox ;18000;0 ;150 ;423 ;Name=NoOfItems;
    Visible=No;
    ...
  3. Alterar o código em dados produto número 3 secções recebido o depósito regulador não facturado relatório (10540) do seguinte modo:
    Código existente 1

    ...OnPreDataItem=BEGIN
    IF EndDate <> 0D THEN
    SETRANGE("Posting Date",0D,EndDate);

    // Delete the following line.
    SETFILTER("Invoiced Quantity",'<>%1',0);
    CurrReport.CREATETOTALS("Cost Amount (Actual)","Invoiced Quantity");
    // End of the deleted line.

    END;

    OnAfterGetRecord=BEGIN
    ...

    Código de substituição 1

    ...OnPreDataItem=BEGIN
    IF EndDate <> 0D THEN
    SETRANGE("Posting Date",0D,EndDate);

    // Add the following lines.
    CurrReport.CREATETOTALS("Cost Amount (Actual)","Invoiced Quantity");
    LastDocumentNo := '';
    // End of the added lines.

    END;

    OnAfterGetRecord=BEGIN
    ...

    Código existente 2

    ...ValueInvoicedQty += "Invoiced Quantity";
    ValueCostAmtActualTotal += "Cost Amount (Actual)";
    ValueInvoicedQtyTotal += "Invoiced Quantity";
    // GB1004.end
    END;
    ...

    Código de substituição 2

    ...ValueInvoicedQty += "Invoiced Quantity";
    ValueCostAmtActualTotal += "Cost Amount (Actual)";
    ValueInvoicedQtyTotal += "Invoiced Quantity";

    // Add the following line.
    CalcSumDocumentNo("Value Entry");
    // End of the added line.

    // GB1004.end
    END;
    ...

    Código existente 3

    ...SectionWidth=18150;
    SectionHeight=423;
    OnPreSection=BEGIN

    // Delete the following line.
    CurrReport.SHOWOUTPUT(PrintDetails);
    // End of the deleted line.

    END;

    }
    ...

    Código de substituição 3

    ...SectionWidth=18150;
    SectionHeight=423;
    OnPreSection=BEGIN

    // Add the following line.
    CurrReport.SHOWOUTPUT(PrintDetails AND ("Invoiced Quantity" <> 0));
    // End of the added line.

    END;

    }
    ...
  4. Alterar o código de variáveis globais a recepção do depósito regulador não facturado relatório (10540) do seguinte modo:
    Código existente

    ...</TableCell>
    </TableCells>
    <Visibility>

    // Delete the following line.
    <Hidden>=iif (Fields!PrintDetails.Value and Fields!Value_Entry_Entry_No_.Value > 0,FALSE,TRUE)</Hidden>
    // End of the deleted line.

    </Visibility>
    </TableRow>
    </TableRows>
    ...

    Código de substituição

    ...</TableCell>
    </TableCells>
    <Visibility>

    // Adding the following line.
    <Hidden>=iif (Fields!PrintDetails.Value and Fields!Value_Entry_Entry_No_.Value and Fields!Value_Entry__Invoiced_Quantity_.Value <> 0,FALSE,TRUE)</Hidden>
    // End of the added line.

    </Visibility>
    </TableRow>
    </TableRows>
    ...
  5. Alterar o código em dados produto número 1 secções os Stock enviada não facturada relatório (10541) do seguinte modo:
    Código existente 1

    ...VertAlign=Bottom;
    FontBold=Yes;
    MultiLine=Yes;
    DataSetFieldName=Value_Entry__Cost_Amount__Actual__Caption }
    { 1040026;Label ;15000;846 ;1500 ;846 ;ParentControl=1040025;
    HorzAlign=Right;
    ...

    Código de substituição 1

    ...VertAlign=Bottom;
    FontBold=Yes;
    MultiLine=Yes;

    // Add the following line.
    CaptionML=ENU=Cost Amount (Actual);
    // End of the added line.

    DataSetFieldName=Value_Entry__Cost_Amount__Actual__Caption }
    { 1040026;Label ;15000;846 ;1500 ;846 ;ParentControl=1040025;
    HorzAlign=Right;
    ...

    Código existente 2

    ...VertAlign=Bottom;
    FontBold=Yes;
    MultiLine=Yes;
    DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__Caption }
    { 1040042;Label ;5700 ;0 ;1550 ;846 ;ParentControl=1040040;
    VertAlign=Bottom;
    ...

    Código de substituição 2

    ...VertAlign=Bottom;
    FontBold=Yes;
    MultiLine=Yes;

    // Add the following line.
    CaptionML=ENU=Cost Amount (Expected);
    // End of the added line.

    DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__Caption }
    { 1040042;Label ;5700 ;0 ;1550 ;846 ;ParentControl=1040040;
    VertAlign=Bottom;
    ...

    Código existente 3

    ...SourceExpr=Text1040005 + ' ' + Item."No.";
    DataSetFieldName=Text1040005_________Item__No__ }
    { 1040054;TextBox ;16650;0 ;1500 ;423 ;FontBold=Yes;

    // Delete the following line.
    SourceExpr="Value Entry"."Cost Amount (Actual)";
    // End of the deleted line.

    DataSetFieldName=Value_Entry___Cost_Amount__Actual__ }
    { 1040059;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
    CaptionML=ENU=Rec. not invoiced;
    ...

    Código de substituição 3

    ...SourceExpr=Text1040005 + ' ' + Item."No.";
    DataSetFieldName=Text1040005_________Item__No__ }
    { 1040054;TextBox ;16650;0 ;1500 ;423 ;FontBold=Yes;

    // Add the following line.
    SourceExpr=-"Value Entry"."Cost Amount (Actual)";
    // End of the added line.

    DataSetFieldName=Value_Entry___Cost_Amount__Actual__ }
    { 1040059;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
    CaptionML=ENU=Rec. not invoiced;
    ...

    Código existente 4

    ...DataSetFieldName=Value_Entry___Invoiced_Quantity__Control1040070 }
    { 1040071;TextBox ;16650;423 ;1500 ;423 ;FontSize=7;
    FontBold=Yes;

    // Delete the following line.
    SourceExpr="Value Entry"."Cost Amount (Actual)";
    // End of the deleted line.

    DataSetFieldName=Value_Entry___Cost_Amount__Actual___Control1040071 }
    { 1040072;Label ;0 ;423 ;5550 ;423 ;FontSize=9;
    FontBold=Yes;
    ...

    Código de substituição 4

    ...DataSetFieldName=Value_Entry___Invoiced_Quantity__Control1040070 }
    { 1040071;TextBox ;16650;423 ;1500 ;423 ;FontSize=7;
    FontBold=Yes;

    // Add the following line.
    SourceExpr=-"Value Entry"."Cost Amount (Actual)";
    // End of the added line.

    DataSetFieldName=Value_Entry___Cost_Amount__Actual___Control1040071 }
    { 1040072;Label ;0 ;423 ;5550 ;423 ;FontSize=9;
    FontBold=Yes;
    ...
  6. Alterar o código de Data Item número 2 nos Stock enviada não facturada relatório (10541) do seguinte modo:
    Código existente 1

    ...OnAfterGetRecord=BEGIN
    NoOfItems := NoOfItems + 1;
    CurrReport.CREATETOTALS("Value Entry"."Cost Amount (Actual)","Value Entry"."Invoiced Quantity");

    // Delete the following lines.
    ItemCostAmount += "Cost Amount (Expected)";
    ItemShippedQty += -Quantity;
    ItemInvoicedQty += -"Invoiced Quantity";
    ItemCostAmtExpected += "Cost Amount (Expected)";

    ItemCostAmountTotal += "Cost Amount (Expected)";
    ItemShippedQtyTotal += -Quantity;
    ItemInvoicedQtyTotal += -"Invoiced Quantity";
    ItemCostAmtExpectedTotal += "Cost Amount (Expected)";
    // End of the deleted lines.

    END;

    DataItemLink=Item No.=FIELD(No.);
    ...

    Código de substituição 1

    ...OnAfterGetRecord=BEGIN
    NoOfItems := NoOfItems + 1;
    CurrReport.CREATETOTALS("Value Entry"."Cost Amount (Actual)","Value Entry"."Invoiced Quantity");

    // Add the following lines.
    CALCFIELDS("Cost Amount (Actual)");
    CALCFIELDS("Cost Amount (Expected)");

    ItemCostAmount -= ("Cost Amount (Expected)" + "Cost Amount (Actual)");
    ItemShippedQty -= Quantity;
    ItemInvoicedQty -= "Invoiced Quantity";
    ItemCostAmtExpected -= ("Cost Amount (Expected)" + "Cost Amount (Actual)");

    ItemCostAmountTotal -= ("Cost Amount (Expected)" + "Cost Amount (Actual)");
    ItemShippedQtyTotal -= Quantity;
    ItemInvoicedQtyTotal -= "Invoiced Quantity";
    ItemCostAmtExpectedTotal -= ("Cost Amount (Expected)" + "Cost Amount (Actual)");
    // End of the added lines.

    END;

    DataItemLink=Item No.=FIELD(No.);
    ...

    Código existente 2

    ...{ 1040047;TextBox   ;2100 ;0    ;1500 ;423  ;HorzAlign=Left;
    SourceExpr="Source No.";
    DataSetFieldName=Item_Ledger_Entry__Source_No__ }

    // Delete the following line.
    { 1040030;TextBox ;13050;0 ;1800 ;423 ;SourceExpr="Cost Amount (Expected)";
    // End of the deleted line.

    DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__ }
    { 1040082;TextBox ;18000;0 ;150 ;423 ;Name="Entry No.";
    Visible=No;
    ...

    Código de substituição 2

    ...{ 1040047;TextBox   ;2100 ;0    ;1500 ;423  ;HorzAlign=Left;
    SourceExpr="Source No.";
    DataSetFieldName=Item_Ledger_Entry__Source_No__ }

    // Add the following line.
    { 1040030;TextBox ;13050;0 ;1800 ;423 ;SourceExpr=-("Cost Amount (Expected)" + "Cost Amount (Actual)");
    // End of the added line.

    DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__ }
    { 1040082;TextBox ;18000;0 ;150 ;423 ;Name="Entry No.";
    Visible=No;
    ...
  7. Alterar o código de Data Item número 3 nos Stock enviada não facturada relatório (10541) do seguinte modo:
    Código existente 1

    ...OnPreDataItem=BEGIN
    IF EndDate <> 0D THEN
    SETRANGE("Posting Date",0D,EndDate);

    // Delete the following lines.
    SETFILTER("Invoiced Quantity",'<>%1',0);
    CurrReport.CREATETOTALS("Cost Amount (Actual)","Invoiced Quantity");
    END;

    OnAfterGetRecord=BEGIN
    ValueInvoicedQty += -"Invoiced Quantity";
    ValueCostAmtActual += "Cost Amount (Actual)";

    ValueInvoicedQtyTotal += -"Invoiced Quantity";
    ValueCostAmtActualTotal += "Cost Amount (Actual)";
    // End of the deleted lines.

    END;

    DataItemLink=Item Ledger Entry No.=FIELD(Entry No.);
    ...

    Código de substituição 1

    ...OnPreDataItem=BEGIN
    IF EndDate <> 0D THEN
    SETRANGE("Posting Date",0D,EndDate);

    // Add the following lines.
    CurrReport.CREATETOTALS("Cost Amount (Actual)","Invoiced Quantity");
    LastDocumentNo := '';
    END;

    OnAfterGetRecord=BEGIN
    ValueInvoicedQty -= "Invoiced Quantity";
    ValueCostAmtActual -= "Cost Amount (Actual)";

    ValueInvoicedQtyTotal -= "Invoiced Quantity";
    ValueCostAmtActualTotal -= "Cost Amount (Actual)";

    CalcSumDocumentNo("Value Entry");
    // End of the added lines.

    END;

    DataItemLink=Item Ledger Entry No.=FIELD(Entry No.);
    ...

    Código existente 3

    ...SectionWidth=18150;
    SectionHeight=423;
    OnPreSection=BEGIN

    // Delete the following line.
    CurrReport.SHOWOUTPUT(PrintDetails);
    // End of the deleted line.

    END;

    }
    ...

    Código de substituição 3

    ...SectionWidth=18150;
    SectionHeight=423;
    OnPreSection=BEGIN

    // Add the following line.
    CurrReport.SHOWOUTPUT(PrintDetails AND ("Invoiced Quantity" <> 0));
    // End of the added line.

    END;

    }
    ...

    Código existente 4

    ...{ 1040025;TextBox   ;15000;0    ;1500 ;423  ;CaptionML=ENU=Invoiced Quantity;
    SourceExpr=-"Invoiced Quantity";
    DataSetFieldName=Value_Entry__Invoiced_Quantity_ }

    // Delete the following line.
    { 1040027;TextBox ;16650;0 ;1500 ;423 ;SourceExpr="Cost Amount (Actual)";
    // End of the deleted line.

    DataSetFieldName=Value_Entry__Cost_Amount__Actual__ }
    }
    }
    ...

    Código de substituição 4

    ...{ 1040025;TextBox   ;15000;0    ;1500 ;423  ;CaptionML=ENU=Invoiced Quantity;
    SourceExpr=-"Invoiced Quantity";
    DataSetFieldName=Value_Entry__Invoiced_Quantity_ }

    // Add the following line.
    { 1040027;TextBox ;16650;0 ;1500 ;423 ;SourceExpr=-"Cost Amount (Actual)";
    // End of the added line.

    DataSetFieldName=Value_Entry__Cost_Amount__Actual__ }
    }
    }
    ...
  8. Alterar o código de dados Item número 4 o Stock enviado não facturado relatório (10541) do seguinte modo:
    Código existente

    ...SourceExpr=-"Value Entry"."Invoiced Quantity";
    DataSetFieldName=Value_Entry___Invoiced_Quantity__Control1040036 }
    { 1040044;TextBox ;16650;0 ;1500 ;423 ;FontBold=Yes;

    // Delete the following line.
    SourceExpr="Value Entry"."Cost Amount (Actual)";
    // End of the deleted line.

    DataSetFieldName=Value_Entry___Cost_Amount__Actual___Control1040044 }
    { 1040029;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
    SourceExpr=Text1040005 + ' ' + Item."No.";
    ...

    Código de substituição

    ...SourceExpr=-"Value Entry"."Invoiced Quantity";
    DataSetFieldName=Value_Entry___Invoiced_Quantity__Control1040036 }
    { 1040044;TextBox ;16650;0 ;1500 ;423 ;FontBold=Yes;

    // Add the following line.
    SourceExpr=-"Value Entry"."Cost Amount (Actual)";
    // End of the added line.

    DataSetFieldName=Value_Entry___Cost_Amount__Actual___Control1040044 }
    { 1040029;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
    SourceExpr=Text1040005 + ' ' + Item."No.";
    ...
  9. Alterar o código de variáveis globais nos Stock enviada não facturada relatório (10541) do seguinte modo:
    Código existente 1

    ...ItemCostAmtExpectedTotal@1040016 : Decimal;
    ValueInvoicedQtyTotal@1040019 : Decimal;
    ValueCostAmtActualTotal@1040020 : Decimal;

    BEGIN
    {
    ...

    Código de substituição 1

    ...ItemCostAmtExpectedTotal@1040016 : Decimal;
    ValueInvoicedQtyTotal@1040019 : Decimal;
    ValueCostAmtActualTotal@1040020 : Decimal;

    // Add the following lines.
    LastDocumentNo@1040023 : Code[20];

    LOCAL PROCEDURE CalcSumDocumentNo@1040000(VAR ValueEntry@1040000 : Record 5802);
    VAR
    ValueEntry1@1040001 : Record 5802;
    ValueCostAmtActualPer@1040002 : Decimal;
    ValueIncoicedQtyPer@1040003 : Decimal;
    BEGIN
    IF LastDocumentNo = ValueEntry."Document No." THEN BEGIN
    ValueEntry."Cost Amount (Actual)" := 0;
    ValueEntry."Invoiced Quantity" := 0;
    END ELSE BEGIN
    WITH ValueEntry1 DO BEGIN
    COPYFILTERS(ValueEntry);
    SETRANGE("Document No.",ValueEntry."Document No.");
    IF FINDSET THEN
    REPEAT
    ValueCostAmtActualPer += "Cost Amount (Actual)";
    ValueIncoicedQtyPer += "Invoiced Quantity";
    UNTIL NEXT = 0;
    END;
    ValueEntry."Cost Amount (Actual)" := ValueCostAmtActualPer;
    ValueEntry."Invoiced Quantity" := ValueIncoicedQtyPer;
    LastDocumentNo := ValueEntry."Document No.";
    END;
    END;
    // End of the added lines.

    BEGIN
    {
    ...

    Código existente 2

    ...</TableCell>
    </TableCells>
    <Visibility>

    // Delete the following line.
    <Hidden>=IIF(First(Fields!PrintDetails.Value) And (Fields!Value_Entry__Document_No__.Value<>""),False,True)</Hidden>
    // End of the deleted line.

    </Visibility>
    </TableRow>
    </TableRows>
    ...

    Código de substituição 2

    ...</TableCell>
    </TableCells>
    <Visibility>

    // Add the following line.
    <Hidden>=IIF(First(Fields!PrintDetails.Value) And (Fields!Value_Entry__Document_No__.Value<>"") And (Fields!Value_Entry__Invoiced_Quantity_.Value <>0),False,True)</Hidden>
    // End of the added line.

    </Visibility>
    </TableRow>
    </TableRows>
    ...


Pré-requisitos

Tem de ter a localização do Reino Unido do Microsoft Dynamics NAV 2009 R2 ou SP1 instalado para aplicar esta correcção.

Informações de remoção

Não é possível remover esta correcção.

Estado

A Microsoft confirmou que este é um problema nos produtos da Microsoft listados na secção "Aplica-se a".

Nota Este é um artigo "Publicação rápida" criado diretamente a partir da organização de suporte da Microsoft. As informações contidas neste documento são fornecidas como-se em resposta a questões emergentes. Como resultado da urgência na sua disponibilização, os materiais podem incluir erros tipográficos e podem ser revistos em qualquer altura sem aviso prévio. Para outras considerações, consulte os Termos de utilização.

Precisa de mais ajuda?

Quer mais opções?

Explore os benefícios da subscrição, navegue em cursos de formação, saiba como proteger o seu dispositivo e muito mais.

As comunidades ajudam-no a colocar e a responder perguntas, a dar feedback e a ouvir especialistas com conhecimentos abrangentes.

Estas informações foram úteis?

Quão satisfeito está com a qualidade do idioma?
O que afetou a sua experiência?
Ao selecionar submeter, o seu feedback será utilizado para melhorar os produtos e serviços da Microsoft. O seu administrador de TI poderá recolher estes dados. Declaração de Privacidade.

Obrigado pelo seu feedback!

×