Wrong invoice reversal for a price changed from zero to non-zero

Description

Test case:

  • create a product with price zero

  • create a POS sales order selling that product - price will be zero - complete the order - it willl create an invoice with value zero

  • now change the price to 5 - and cache reset

  • reactivate the sales order
    ERROR - the reversal invoice has a wrong value of -5
    SECOND ERROR WITH DATA CORRUPTION - the original invoice changed price from zero to 5, and same change on line net amt, so, now you have an invoice where totallines != sum(lines)

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Priority

Created January 22, 2018 at 11:50 PM
Updated March 1, 2018 at 3:32 PM
Resolved January 23, 2018 at 12:03 AM