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

Can you provide the full url of the page of the screenshot ?

Hi Eldy, it is:
https://xxxxx/expedition/card.php?id=xxx

In summary, the qty shipped does not equal the total of lot/serial batch units shipped.
If you create an invoice from the shipment, this error carries forward to the invoice.