Fixed bug #1123: Paid deposit invoices are always shown as partially pai...

...d when fully paid