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.
Before applying the change, please import all SEPA updates.
To resolve this problem, change the code in the Properties in the Sales-Post Codeunit (80) as follows:
...
TempDocDim,DATABASE::"Sales Line","Document Type","No.",SalesInvLine."Line No.",
DATABASE::"Sales Invoice Line",SalesInvHeader."No.");
ItemJnlPostLine.CollectValueEntryRelation(TempValueEntryRelation,SalesInvLine.RowID1);
// PS38534.begin
// Delete the following line.
SetVATClause;
// End of the deleted line.
// PS38534.end
END ELSE BEGIN // Credit Memo
SalesCrMemoLine.INIT;
SalesCrMemoLine.TRANSFERFIELDS(TempSalesLine);
...
...
TempDocDim,DATABASE::"Sales Line","Document Type","No.",SalesInvLine."Line No.",
DATABASE::"Sales Invoice Line",SalesInvHeader."No.");
ItemJnlPostLine.CollectValueEntryRelation(TempValueEntryRelation,SalesInvLine.RowID1);
// PS38534.begin
// Add the following lines.
IF SalesInvLine.Quantity <> 0 THEN
SetVATClause;
// End of the added lines.
// PS38534.end
END ELSE BEGIN // Credit Memo
SalesCrMemoLine.INIT;
SalesCrMemoLine.TRANSFERFIELDS(TempSalesLine);
...