If you convert a document (proforma, order, budget, etc.) to an invoice and that document already has a prepayment, show in the PDF the amount already paid and the remaining amount automatically.
Right now it's possible to do it, but it's manually based on custom fields.