AR Credit Memo updates Sales Order Line QtyInvoiced in the wrong direction

Description

Recreate bug:

  • Invoice the order too many times (it's a bug that this happens). On the order line it should say that Qty Invoiced > Delivered Qty.

  • The generate invoices (manual) doesn't pick up this problem. It shows the order that has Qty Invoiced > Delivered Qty but no invoice is created.

  • Create the Credit Memo and use create from order.

  • Complete

  • The Qty Invoiced value will be increased and not decreased as it should.

Suggested patch (version 2.0), might apply to later versions as well.

https://bitbucket.org/dantam/idempiere.se-historic/commits/dcfc84ea9d576c6ddb2cbf5f9485d92b07832ec4

Environment

None

Activity

Show:
Daniel Tamm
January 7, 2016, 5:57 PM

Open to log time.

Carlos Ruiz
July 10, 2019, 2:05 PM
Edited

To detect if there are data errors, the following query can help:

And the corresponding update can help to fix the data:

Assignee

Daniel Tamm

Reporter

Daniel Tamm

Labels

Tested By

None

Time tracking

1h

Components

Fix versions

Affects versions

Priority

Major
Configure