Change the code of Global Variables in the Customer - Summary Aging report (105) as follows:
Existing code 1...
CustBalanceDueLCY@1007 : ARRAY [5] OF Decimal;
LineTotalCustBalance@1008 : Decimal;
TotalCustBalanceLCY@1009 : Decimal;
PrintLine@1010 : Boolean;
i@1011 : Integer;
BEGIN
END.
}
RDLDATA
...
Replacement code 1...
CustBalanceDueLCY@1007 : ARRAY [5] OF Decimal;
LineTotalCustBalance@1008 : Decimal;
TotalCustBalanceLCY@1009 : Decimal;
PrintLine@1010 : Boolean;
i@1011 : Integer;
// Add the following lines.
InCustBalanceDueLCY@1012 : ARRAY [5] OF Decimal;
InCustBalanceDueLCY2@1013 : ARRAY [5] OF Decimal;
// End of the lines.
BEGIN
END.
}
RDLDATA
...
Existing code 2...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="CustBalanceDueLCY_1__Control46">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_1_Format.Value</Format>
...
Replacement code 2...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InCustBalanceDueLCY_1">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_1_Format.Value</Format>
...
Existing code 3...
<PaddingLeft>0.525cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!CustBalanceDueLCY_1_.Value)</Value>
<ZIndex>23</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 3...
<PaddingLeft>0.525cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InCustBalanceDueLCY_1.Value)</Value>
<ZIndex>23</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 4...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="CustBalanceDueLCY_2__Control47">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_2_Format.Value</Format>
...
Replacement code 4...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InCustBalanceDueLCY_2">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_2_Format.Value</Format>
...
Existing code 5...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!CustBalanceDueLCY_2_.Value)</Value>
<ZIndex>22</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 5...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InCustBalanceDueLCY_2.Value)</Value>
<ZIndex>22</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 6...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="CustBalanceDueLCY_3__Control48">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_3_Format.Value</Format>
...
Replacement code 6...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InCustBalanceDueLCY_3">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_3_Format.Value</Format>
...
Existing code 7...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!CustBalanceDueLCY_3_.Value)</Value>
<ZIndex>21</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 7...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InCustBalanceDueLCY_3.Value)</Value>
<ZIndex>21</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 8...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="CustBalanceDueLCY_4__Control49">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_4_Format.Value</Format>
...
Replacement code 8...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InCustBalanceDueLCY_4">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_4_Format.Value</Format>
...
Existing code 9...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!CustBalanceDueLCY_4_.Value)</Value>
<ZIndex>20</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 9...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InCustBalanceDueLCY_4.Value)</Value>
<ZIndex>20</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 10...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="CustBalanceDueLCY_5__Control50">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_5_Format.Value</Format>
...
Replacement code 10...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InCustBalanceDueLCY_5">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceDueLCY_5_Format.Value</Format>
...
Existing code 11...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!CustBalanceDueLCY_5_.Value)</Value>
<ZIndex>19</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 11...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InCustBalanceDueLCY_5.Value)</Value>
<ZIndex>19</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 12...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!CustBalanceDueLCY_1_.Value)+ Sum(Fields!CustBalanceDueLCY_2_.Value) + Sum(Fields!CustBalanceDueLCY_3_.Value)+ Sum(Fields!CustBalanceDueLCY_4_.Value)+ Sum(Fields!CustBalanceDueLCY_5_.Value)</Value>
<ZIndex>18</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
...
Replacement code 12...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InCustBalanceDueLCY_1.Value) + Last(Fields!InCustBalanceDueLCY_2.Value) + Last(Fields!InCustBalanceDueLCY_3.Value)+ Last(Fields!InCustBalanceDueLCY_4.Value) + Last(Fields!InCustBalanceDueLCY_5.Value)</Value>
<ZIndex>18</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
...
Existing code 13...
Return Value
End Function
</Code>
<DataSets>
<DataSet Name="DataSet_Result">
// Delete the following lines.
<Query>
<CommandText />
<DataSourceName>DummyDataSource</DataSourceName>
</Query>
// End of the lines.
<Fields>
<Field Name="Customer___Summary_AgingCaption">
<DataField>Customer___Summary_AgingCaption</DataField>
</Field>
<Field Name="FORMAT_TODAY_0_4_">
...
Replacement code 13...
Return Value
End Function
</Code>
<DataSets>
<DataSet Name="DataSet_Result">
<Fields>
<Field Name="Customer___Summary_AgingCaption">
<DataField>Customer___Summary_AgingCaption</DataField>
</Field>
<Field Name="FORMAT_TODAY_0_4_">
...
Existing code 14...
<DataField>CustBalanceDueLCY_5__Control50Format</DataField>
</Field>
<Field Name="TotalCustBalanceLCY_Control51Format">
<DataField>TotalCustBalanceLCY_Control51Format</DataField>
</Field>
<Field Name="LineTotalCustBalance_Control67">
<DataField>LineTotalCustBalance_Control67</DataField>
</Field>
<Field Name="LineTotalCustBalance_Control67Format">
<DataField>LineTotalCustBalance_Control67Format</DataField>
...
Replacement code 14...
<DataField>CustBalanceDueLCY_5__Control50Format</DataField>
</Field>
<Field Name="TotalCustBalanceLCY_Control51Format">
<DataField>TotalCustBalanceLCY_Control51Format</DataField>
</Field>
// Add the following lines.
<Field Name="InCustBalanceDueLCY_1">
<DataField>InCustBalanceDueLCY_1</DataField>
</Field>
<Field Name="InCustBalanceDueLCY_1Format">
<DataField>InCustBalanceDueLCY_1Format</DataField>
</Field>
<Field Name="InCustBalanceDueLCY_2">
<DataField>InCustBalanceDueLCY_2</DataField>
</Field>
<Field Name="InCustBalanceDueLCY_2Format">
<DataField>InCustBalanceDueLCY_2Format</DataField>
</Field>
<Field Name="InCustBalanceDueLCY_3">
<DataField>InCustBalanceDueLCY_3</DataField>
</Field>
<Field Name="InCustBalanceDueLCY_3Format">
<DataField>InCustBalanceDueLCY_3Format</DataField>
</Field>
<Field Name="InCustBalanceDueLCY_4">
<DataField>InCustBalanceDueLCY_4</DataField>
</Field>
<Field Name="InCustBalanceDueLCY_4Format">
<DataField>InCustBalanceDueLCY_4Format</DataField>
</Field>
<Field Name="InCustBalanceDueLCY_5">
<DataField>InCustBalanceDueLCY_5</DataField>
</Field>
<Field Name="InCustBalanceDueLCY_5Format">
<DataField>InCustBalanceDueLCY_5Format</DataField>
</Field>
// End of the lines.
<Field Name="LineTotalCustBalance_Control67">
<DataField>LineTotalCustBalance_Control67</DataField>
</Field>
<Field Name="LineTotalCustBalance_Control67Format">
<DataField>LineTotalCustBalance_Control67Format</DataField>
...
Existing code 15...
</Field>
<Field Name="Customer__No___Control75">
<DataField>Customer__No___Control75</DataField>
</Field>
</Fields>
<rd:DataSetInfo>
<rd:DataSetName>DataSet</rd:DataSetName>
<rd:TableName>Result</rd:TableName>
</rd:DataSetInfo>
</DataSet>
...
Replacement code 15...
</Field>
<Field Name="Customer__No___Control75">
<DataField>Customer__No___Control75</DataField>
</Field>
</Fields>
// Add the following lines.
<Query>
<CommandText />
<DataSourceName>DummyDataSource</DataSourceName>
</Query>
// End of the lines.
<rd:DataSetInfo>
<rd:DataSetName>DataSet</rd:DataSetName>
<rd:TableName>Result</rd:TableName>
</rd:DataSetInfo>
</DataSet>
...
Change the code of Global Variables in the Vendor - Summary Aging report (305) as follows:
Existing code 1...
VendBalanceDue@1007 : ARRAY [5] OF Decimal;
VendBalanceDueLCY@1008 : ARRAY [5] OF Decimal;
PeriodLength@1009 : DateFormula;
PrintLine@1010 : Boolean;
i@1011 : Integer;
BEGIN
END.
}
RDLDATA
...
Replacement code 1...
VendBalanceDue@1007 : ARRAY [5] OF Decimal;
VendBalanceDueLCY@1008 : ARRAY [5] OF Decimal;
PeriodLength@1009 : DateFormula;
PrintLine@1010 : Boolean;
i@1011 : Integer;
// Add the following lines.
InVendBalanceDueLCY@1012 : ARRAY [5] OF Decimal;
InVendBalanceDueLCY2@1013 : ARRAY [5] OF Decimal;
// End of the lines.
BEGIN
END.
}
RDLDATA
...
Existing code 2...
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
<Visibility>
// Delete the following line.
<Hidden>=IIF(Fields!PrintAmountsInLCY.Value = "True" AND
Fields!LineTotalVendAmountDue.Value <> "0",False,True)</Hidden>
</Visibility>
</TableRow>
</TableRows>
</Details>
<Footer>
...
Replacement code 2...
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
<Visibility>
// Add the following line.
<Hidden>=IIF(Fields!LineTotalVendAmountDue.Value = "0",True,False)</Hidden>
</Visibility>
</TableRow>
</TableRows>
</Details>
<Footer>
...
Existing code 3...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="VendBalanceDueLCY_1__Control46">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_1_Format.Value)</Format>
...
Replacement code 3...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InVendBalanceDueLCY_1">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_1_Format.Value)</Format>
...
Existing code 4...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!VendBalanceDueLCY_1_.Value)</Value>
<ZIndex>23</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 4...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InVendBalanceDueLCY_1.Value)</Value>
<ZIndex>23</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 5...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="VendBalanceDueLCY_2__Control47">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_2_Format.Value)</Format>
...
Replacement code 5...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InVendBalanceDueLCY_2">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_2_Format.Value)</Format>
...
Existing code 6...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!VendBalanceDueLCY_2_.Value)</Value>
<ZIndex>22</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 6...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InVendBalanceDueLCY_2.Value)</Value>
<ZIndex>22</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 7...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="VendBalanceDueLCY_3__Control48">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_3_Format.Value)</Format>
...
Replacement code 7...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InVendBalanceDueLCY_3">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_3_Format.Value)</Format>
...
Existing code 8...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!VendBalanceDueLCY_3_.Value)</Value>
<ZIndex>21</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 8...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InVendBalanceDueLCY_3.Value)</Value>
<ZIndex>21</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 9...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="VendBalanceDueLCY_4__Control49">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_4_Format.Value)</Format>
...
Replacement code 9...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InVendBalanceDueLCY_4">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_4_Format.Value)</Format>
...
Existing code 10...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!VendBalanceDueLCY_4_.Value)</Value>
<ZIndex>20</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 10...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InVendBalanceDueLCY_4.Value)</Value>
<ZIndex>20</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 11...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="VendBalanceDueLCY_5__Control50">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_5_Format.Value)</Format>
...
Replacement code 11...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following line.
<Textbox Name="InVendBalanceDueLCY_5">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=First(Fields!VendBalanceDueLCY_5_Format.Value)</Format>
...
Existing code 12...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!VendBalanceDueLCY_5_.Value)</Value>
<ZIndex>19</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Replacement code 12...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>0.075cm</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InVendBalanceDueLCY_5.Value)</Value>
<ZIndex>19</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
...
Existing code 13...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!TotalVendAmtDueLCY.Value)</Value>
<ZIndex>18</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
...
Replacement code 13...
<PaddingLeft>0.075cm</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!InVendBalanceDueLCY_1.Value) + Last(Fields!InVendBalanceDueLCY_2.Value) + Last(Fields!InVendBalanceDueLCY_3.Value) + Last(Fields!InVendBalanceDueLCY_4.Value) + Last(Fields!InVendBalanceDueLCY_5.Value)</Value>
<ZIndex>18</ZIndex>
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
...
Existing code 14...
<GroupExpression>=Fields!Vendor__No__.Value</GroupExpression>
</GroupExpressions>
</Grouping>
</TableGroup>
</TableGroups>
// Delete the following line.
<Width>18.09524cm</Width>
</Table>
</ReportItems>
</Body>
<BottomMargin>2cm</BottomMargin>
<Code>Public Function BlankZero(ByVal Value As Decimal)
...
Replacement code 14...
<GroupExpression>=Fields!Vendor__No__.Value</GroupExpression>
</GroupExpressions>
</Grouping>
</TableGroup>
</TableGroups>
// Add the following line.
<Width>18.09522cm</Width>
</Table>
</ReportItems>
</Body>
<BottomMargin>2cm</BottomMargin>
<Code>Public Function BlankZero(ByVal Value As Decimal)
...
Existing code 15...
<DataField>VendBalanceDueLCY_5__Control50Format</DataField>
</Field>
<Field Name="TotalVendAmtDueLCY_Control51Format">
<DataField>TotalVendAmtDueLCY_Control51Format</DataField>
</Field>
<Field Name="Currency2_Code">
<DataField>Currency2_Code</DataField>
</Field>
<Field Name="LineTotalVendAmountDue_Control36">
<DataField>LineTotalVendAmountDue_Control36</DataField>
...
Replacement code 15...
<DataField>VendBalanceDueLCY_5__Control50Format</DataField>
</Field>
<Field Name="TotalVendAmtDueLCY_Control51Format">
<DataField>TotalVendAmtDueLCY_Control51Format</DataField>
</Field>
// Add the following lines.
<Field Name="InVendBalanceDueLCY_1">
<DataField>InVendBalanceDueLCY_1</DataField>
</Field>
<Field Name="InVendBalanceDueLCY_1Format">
<DataField>InVendBalanceDueLCY_1Format</DataField>
</Field>
<Field Name="InVendBalanceDueLCY_2">
<DataField>InVendBalanceDueLCY_2</DataField>
</Field>
<Field Name="InVendBalanceDueLCY_2Format">
<DataField>InVendBalanceDueLCY_2Format</DataField>
</Field>
<Field Name="InVendBalanceDueLCY_3">
<DataField>InVendBalanceDueLCY_3</DataField>
</Field>
<Field Name="InVendBalanceDueLCY_3Format">
<DataField>InVendBalanceDueLCY_3Format</DataField>
</Field>
<Field Name="InVendBalanceDueLCY_4">
<DataField>InVendBalanceDueLCY_4</DataField>
</Field>
<Field Name="InVendBalanceDueLCY_4Format">
<DataField>InVendBalanceDueLCY_4Format</DataField>
</Field>
<Field Name="InVendBalanceDueLCY_5">
<DataField>InVendBalanceDueLCY_5</DataField>
</Field>
<Field Name="InVendBalanceDueLCY_5Format">
<DataField>InVendBalanceDueLCY_5Format</DataField>
</Field>
// End of the lines.
<Field Name="Currency2_Code">
<DataField>Currency2_Code</DataField>
</Field>
<Field Name="LineTotalVendAmountDue_Control36">
<DataField>LineTotalVendAmountDue_Control36</DataField>
...