Matched PO Posting error "error org.adempiere.exceptions.AverageCostingZeroQtyException"

Description

Posting Error message "error org.adempiere.exceptions.AverageCostingZeroQtyException" when posting matched PO documents under the following condition:

CLIENT_ACCOUNTING=Q
Costing Method=Average PO

1. Create NEW Product (therefore, no Average PO costing records yet)
2. Create Purchase Order for the product
3. MR(1)=>Creates a Matched PO document which doesn't get posted yet as the accounting engine hasn't picked up this document yet
4. Reverse/Correct MR(1) immediately after creating MR(1)=>Creates a second Matched PO document with negative quantity.
5. The Accounting Engine runs and posting fails for both documents with the above error.
6. Trying to repost the documents manually results in the same error message.

Environment

None

Activity

Show:
Anna Fadeeva
August 22, 2020, 8:45 PM

Hello, !
Not reprodused on 7.1z.
After complete MR Match PO automaticaly posted.

Michael Powacht
August 23, 2020, 2:59 AM

Hello Anna, I re-tested under 7.1 and I still face the same issue. Have you created a new product so the current costing quantity is zero?

Anna Fadeeva
August 23, 2020, 7:51 AM

Good morning, !
Yes, it was a new product.
I try again.

Anna Fadeeva
August 23, 2020, 7:53 AM
Edited

Hello, ,

On which server are you reproducing?

Can you reproduce in idempiere test server?

For example https://triage3.idempiere.org/webui/

Michael Powacht
August 23, 2020, 9:10 AM

Hello Anna, I tested it on our own release 7.1 server. In order to reproduce it on one of the public servers, one would have to change system configurator setting CLIENT_ACCOUNTING from I to Q, which is posting in background, not immediately. This change also requires a server restart I believe.

Assignee

Unassigned

Reporter

Michael Powacht

Labels

Tested By

Anna Fadeeva

Components

Affects versions

Priority

Minor
Configure