We're updating the issue view to help you get more done. 

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

Status

Assignee

Carlos Ruiz

Reporter

Carlos Ruiz

Labels

None

Tested By

None

Priority

Major