I have added a custom status so I can mark invoices that won’t ever be paid (unfortunately this is something I have to deal with every once in a while). I would like to remove the invoice from the select field on the payments page (/payments/form). I have found this is the way that InvoicePlane gets the open invoices:
$open_invoices = $this->mdl_invoices ->where('ip_invoice_amounts.invoice_balance >', 0) ->or_where('ip_invoice_amounts.invoice_balance <', 0) ->get()->result();
This is in “application/models/payments/controllers/Payments.php”, but I how to I add “WHERE ip_invoices.invoice_status_id != 5” to the mix?