There isn't such a field. In 2.2 and lower, whether an invoice is paid or
not is determined by whether it has any invoice items that haven't been
paid. This is determined by looking at the InvoiceItems table, PaymentID
field and seeing if its null.
Off the top of my head its like: