sales commission events on invoices, #25847
fix editing of events that have reasons, from #31702