...
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.);
...
...
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.);
...
...
SectionWidth=18150;
SectionHeight=423;
OnPreSection=BEGIN
// Delete the following line.
CurrReport.SHOWOUTPUT(PrintDetails);
// End of the deleted line.
END;
}
...
...
SectionWidth=18150;
SectionHeight=423;
OnPreSection=BEGIN
// Add the following line.
CurrReport.SHOWOUTPUT(PrintDetails AND ("Invoiced Quantity" <> 0));
// End of the added line.
END;
}
...
...
{ 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__ }
}
}
...
...
{ 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__ }
}
}
...