New feature for whatever comes after Typica 1.9.1: https://code.typica.us/neal/Typica/issues/7
Altering history is generally not a good idea, but the question comes up enough specifically for INVENTORY transactions that I'd rather have a better answer than "here's some SQL you can run to fix that."