The posting line of the advance payment (step 2) must have the same payment reference as the invoice. Only in this case the program is able to match payment and invoice.
I looked to your posting in K30. There is no payment reference.
The following posting are not necessary. They will done by the program. You only have to clear the documents.