When creating a sales invoice from a sales order, adjustments in the sales invoice lines were not saved

When creating a sales invoice from a sales order, it is possible to remove sales invoice lines. However, these adjustments were not implemented when saving the sales invoice. As a result, the sales order line did not receive the status 'Invoiced'.