You can apply full payments to the open balance line items in product payment priority order.
More: Enter and edit payments window