When saving a new payment, the lines would sometimes be saved to the entry number that was opened beforehand

When saving a new payment, the lines would sometimes be saved to the entry number that was opened beforehand.