Modified the way payment status are handled.

 * Payments that are below the invoices total amount due are always partial
 * An invoice can have multiple partial payments make up a paid invoice
 * Invoices display paid in full if all non-pending payments add up to
  invoice's total  balance due