When original invoice date is in use and the option Use orig. invoice date on payment terms is activated in the Supplier ledger preferences (AP101000) window, the dates for due date, cash discount date and payment date are calculated from original invoice date.
Changing date from the purchase invoice was incorrectly updating the original invoice date. This has now been fixed.