Wrong GL postings for matched invoice in RMA/Vendor Return/Credit Memo

Description

When recording a vendor RMA, Return to Vendor and Vendor Credit Memo, the system creates a matched invoice document between Vendor Credit Memo and Return to Vendor, however, the GL posting is incorrect:
CR Inventory Clearing, DR NIR
The correct GL posting would be DR Inventory Clearing, CR NIR because return to Vendor debits GL NIR and credit memo credits GL Inventory Clearing.

This error was introduced in the past year and could be related to https://idempiere.atlassian.net/browse/IDEMPIERE-4006.

Michael

Environment

None

Assignee

Unassigned

Reporter

Michael Powacht

Labels

None

Tested By

None

Components

Affects versions

Priority

Major
Configure