Could you describe "it generates me wrong lines and total values on the invoices" ??
Don't know why but It duplicates invoice lines many times, causing wrong totals, maybe there is some loop happening with one of my custom modules, I prefer not to focus on this as it's a collateral error of a "trick".
Maybe a solution to avoid the grouping error is to save the first invoice in case None is found, so for the next runs the invoices will be already grouped
Altought your case only is reproducible when deleting I image the behaviour will be also wrong when processing two sales that generate a grouped invoice in a single call as the first invoice won't be saved, so the second sale will create another one.
I thought the same but I ignored as it's not a user can do and thought that if we find a solution this should also work for your scenario.
|2022-09-05 16:20:21||acaubet||set||messageid: <1662387621.3164432.N25WPFYD2UKWEYRX.email@example.com>|
|2022-09-05 16:20:21||acaubet||set||recipients: + ced, pokoli|
|2022-09-05 16:20:21||acaubet||link||issue11685 messages|
Showing 10 items. Show all history (warning: this could be VERY long)