V21.0.1 When shipping multiple batches, total units is only calculated on last batch quantity

Good morning, V21 is much improved regarding batch capability. Thank you.
I think I’ve discovered a bug, which is a bit troublesome.
If I ship several batches within the same Product SKU, the total shipped does not sum the total for that SKU, but only counts the quantity of the last batch number.
If I then create an invoice from this shipment, it carries over the incorrect quantity.
See screenshot from the expedition module:


@eldy any help would be greatly appreciated. Thank you!

Wondering if anyone has any suggestions or fixes? Thank you.

Hi @Luke123

All bugs should be reported to Dolibarr Github page

Check if the following is related to your problem

Otherwise open a new bug report