Port modal dialog support from CyDoc/Hozr.
Start implementing manual bookings for debit invoices.