Invoice Status Flags

The invoice now keeps track of whether the invoice has been sent to the
customer.

Payments are tracked as well, and we can now notify the user if the
invoice is open, has a partial payment, or full payment.