To implement this hotfix, you must have a developer license.
You do not have to have rights to the data stores unless you have to perform data repair.
To resolve this problem, change the code in the RDL part in the VAT Register - Print report (12120) as follows:
...
<Group Name="VAT_Register_Details_Group">
<GroupExpressions>
<GroupExpression>=Fields!VAT_Register_Code.Value</GroupExpression>
</GroupExpressions>
</Group>
<SortExpressions>
<SortExpression>
<Value>=Fields!VAT_Register_Code.Value</Value>
</SortExpression>
</SortExpressions>
<TablixMembers>
<TablixMember>
<Visibility>
// Delete the following line.
<Hidden>=IIF((First(Fields!VAT_Register_Type.Value) = "Sale"),FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>After</KeepWithGroup>
<RepeatOnNewPage>true</RepeatOnNewPage>
</TablixMember>
<TablixMember>
<Visibility>
// Delete the following line.
<Hidden>=IIF((First(Fields!VAT_Register_Type.Value) = "Sale"),FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>After</KeepWithGroup>
<RepeatOnNewPage>true</RepeatOnNewPage>
</TablixMember>
<TablixMember>
<Visibility>
// Delete the following line.
<Hidden>=IIF((First(Fields!VAT_Register_Type.Value) = "Purchase"),FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>After</KeepWithGroup>
<RepeatOnNewPage>true</RepeatOnNewPage>
</TablixMember>
<TablixMember>
<Visibility>
// Delete the following line.
<Hidden>=IIF((First(Fields!VAT_Register_Type.Value) = "Purchase"),FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>After</KeepWithGroup>
<RepeatOnNewPage>true</RepeatOnNewPage>
</TablixMember>
<TablixMember>
<Group Name="table1_Group1">
<GroupExpressions>
<GroupExpression>=Fields!VAT_Book_Entry__Document_No__.Value</GroupExpression>
</GroupExpressions>
</Group>
<TablixMembers>
<TablixMember>
<Group Name="table1_Details_Group">
<DataElementName>Detail</DataElementName>
</Group>
<TablixMembers>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!ShowFirstSection.Value=TRUE AND
// Delete the following line.
Fields!VAT_Register_Type.Value = "Sale") AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
</TablixMember>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!ShowFirstSection.Value=TRUE AND
// Delete the following line.
Fields!VAT_Register_Type.Value = "Purchase") AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
</TablixMember>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!ShowFirstSection.Value=FALSE AND Rownumber("table1_Group1")<>1 AND
// Delete the following line.
Fields!VAT_Register_Type.Value = "Purchase") AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
</TablixMember>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!ShowFirstSection.Value=FALSE AND Rownumber("table1_Group1")<>1 AND
// Delete the following line.
Fields!VAT_Register_Type.Value = "Sale") AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
</TablixMember>
</TablixMembers>
<DataElementName>Detail_Collection</DataElementName>
<DataElementOutput>Output</DataElementOutput>
<KeepTogether>true</KeepTogether>
</TablixMember>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!LedgCurrCode.Value<>"" AND
// Delete the following line.
/Fields!VAT_Register_Type.Value="Sale") AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>Before</KeepWithGroup>
<KeepTogether>true</KeepTogether>
</TablixMember>
<TablixMember>
<Visibility>
// Delete the following line.
<Hidden>=IIF((Fields!LedgCurrCode.Value<>"" AND Fields!VAT_Register_Type.Value="Purchase") AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>Before</KeepWithGroup>
<KeepTogether>true</KeepTogether>
</TablixMember>
<TablixMember>
<Visibility>
// Delete the following line.
<Hidden>=IIF((Fields!LedgCurrCode.Value<>"" AND Fields!VAT_Register_Type.Value="Purchase") AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>Before</KeepWithGroup>
...
...
<Group Name="VAT_Register_Details_Group">
<GroupExpressions>
<GroupExpression>=Fields!VAT_Register_Code.Value</GroupExpression>
</GroupExpressions>
</Group>
<SortExpressions>
<SortExpression>
<Value>=Fields!VAT_Register_Code.Value</Value>
</SortExpression>
</SortExpressions>
<TablixMembers>
<TablixMember>
<Visibility>
// Add the following line.
<Hidden>=IIF(Fields!RegisterTypeSales.Value,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>After</KeepWithGroup>
<RepeatOnNewPage>true</RepeatOnNewPage>
</TablixMember>
<TablixMember>
<Visibility>
// Add the following line.
<Hidden>=IIF(Fields!RegisterTypeSales.Value,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>After</KeepWithGroup>
<RepeatOnNewPage>true</RepeatOnNewPage>
</TablixMember>
<TablixMember>
<Visibility>
// Add the following line.
<Hidden>=IIF(Fields!RegisterTypePurchase.Value,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>After</KeepWithGroup>
<RepeatOnNewPage>true</RepeatOnNewPage>
</TablixMember>
<TablixMember>
<Visibility>
// Add the following line.
<Hidden>=IIF(Fields!RegisterTypePurchase.Value,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>After</KeepWithGroup>
<RepeatOnNewPage>true</RepeatOnNewPage>
</TablixMember>
<TablixMember>
<Group Name="table1_Group1">
<GroupExpressions>
<GroupExpression>=Fields!VAT_Book_Entry__Document_No__.Value</GroupExpression>
</GroupExpressions>
</Group>
<TablixMembers>
<TablixMember>
<Group Name="table1_Details_Group">
<DataElementName>Detail</DataElementName>
</Group>
<TablixMembers>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!ShowFirstSection.Value=TRUE AND
// Add the following line.
Fields!RegisterTypeSales.Value) AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
</TablixMember>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!ShowFirstSection.Value=TRUE AND
// Add the following line.
Fields!RegisterTypePurchase.Value) AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
</TablixMember>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!ShowFirstSection.Value=FALSE AND Rownumber("table1_Group1")<>1 AND
// Add the following line.
Fields!RegisterTypePurchase.Value) AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
</TablixMember>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!ShowFirstSection.Value=FALSE AND Rownumber("table1_Group1")<>1 AND
// Add the following line.
Fields!RegisterTypeSales.Value) AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
</TablixMember>
</TablixMembers>
<DataElementName>Detail_Collection</DataElementName>
<DataElementOutput>Output</DataElementOutput>
<KeepTogether>true</KeepTogether>
</TablixMember>
<TablixMember>
<Visibility>
<Hidden>=IIF((Fields!LedgCurrCode.Value<>"" AND
// Add the following line.
Fields!RegisterTypeSales.Value) AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>Before</KeepWithGroup>
<KeepTogether>true</KeepTogether>
</TablixMember>
<TablixMember>
<Visibility>
// Add the following line.
<Hidden>=IIF((Fields!LedgCurrCode.Value<>"" AND Fields!RegisterTypePurchase.Value) AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>Before</KeepWithGroup>
<KeepTogether>true</KeepTogether>
</TablixMember>
<TablixMember>
<Visibility>
// Add the following line.
<Hidden>=IIF((Fields!LedgCurrCode.Value<>"" AND Fields!RegisterTypeSales.Value) AND Fields!VATBookEntry__Entry_No__.Value <> 0,FALSE,TRUE)</Hidden>
</Visibility>
<KeepWithGroup>Before</KeepWithGroup>
...