I have found a problem I think is a bug.
I have a Sales Order with X amount. I have created an invoice with 30% advanced payment. Then, my customer pays the whole Sales Order, instead of just the advanced.
I have created the new invoice for the 70% left. Finally, I registered the payment for the first invoice, but the amount was not the invoice amount, but the sales order amount.
The problem is that, if Sales Order was fully paid, all associated invoice should change status to paid also.
In my case, the second invoice remained unpaid. I edited it, and tried to generate a payment with amount of 0 but system did not allow that.
I think this should be fixed, but at the moment, what workaround can I try?