Bag_invoiced is failing after partial bag_confirmed

Hi Team,
After a Shipment is partially confirmed [bag_confirmed] , bag_invoiced is getting invalid state transition error.

Steps to reproduce:

  1. Place an order with multiple SKUs.
  2. Confirm only a part of the shipment. A new shipment is created for bag_not_confirmed SKUs.
  3. Now change state of bag_confirmed shipment to bag_invoiced.

Point 3 will fails with the following error:
“bag_invoiced is getting invalid state transition”

Please help here.