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:

Carlos Ruiz July 10, 2019 at 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:

Daniel Tamm January 7, 2016 at 5:57 PM

Open to log time.

Fixed

Details

Assignee

Reporter

Labels

Original estimate

Time tracking

25m logged35m remaining

Components

Fix versions

Affects versions

Priority

Created January 7, 2016 at 5:22 PM
Updated September 2, 2019 at 9:08 AM
Resolved July 10, 2019 at 1:42 PM