After some debuging I found that the problem is cost_invoice_line is not correctly save on shipment, so on each invoice a line is created for each shipment sent.
This is expected when the cost method is 'shipment'.
|2021-03-31 12:15:25||ced||set||messageid: <1617185725.5180213.JQFBPDBRZYLIELND.email@example.com>|
|2021-03-31 12:15:25||ced||set||recipients: + pokoli, reviewbot|
|2021-03-31 12:15:25||ced||link||issue10238 messages|
Showing 10 items. Show all history (warning: this could be VERY long)