Check on 'Quantity to be invoiced' field so that the correct quantity per line will be displayed

We have added a check to the Quantity to be Invoiced field, so that this field now correctly displays the number of items to invoice per line. Previously, it was not always clear from this field which purchase order lines had and had not been booked.