The massaction “Create bills from order” is a feature I often use.
I noticed for some time that there is an issue with the sorting of the items in the bill created but only today got around to invesitgate further.
Previosly when I used this feature it would create a bill like this:
order1 item 1
order1 item2
order1 item3
oder2 item1
oder2 item2
oder2 item3
Some time ago it changed to this behavior:
order1 item1
oder2 item1
order1 item2
oder2 item2
order1 item3
oder2 item3
I tracked it down to a change made in V13:
File core/actions_massactions.inc.php
V12.0.4 line 776 was changed from ‘$ii,’ to ‘$lines[$i]->rang,’ in V13
I tried to change the line back as it was in V12 and the sorting works again.
But I don’t really understand what this change means and what other issues it could cause.
I would appreciate if someone with more knowledge could help on this.