At the import of a purchase invoice, the 'Subtotal' field was not calculated correctly in certain situations

At the import of a purchase invoice, the Subtotal field was not calculated correctly when the invoice related to multiple packing slips from the same purchase order line.