When crediting a sales invoice line, 'Manual Amount' was not determined correctly

When crediting a sales invoice line, the credited Manual Amount was set based on a quantity of 1, while the Total Amount showed the amount for the total quantity of the original invoice line. From now on, the Manual Amount will also be determined accordingly.