Undefined variable custom_fields on partial_invoice_table

Hi there @UnderDog how to print on invoice list (partial_invoice_table.php) my custom field ‘6’?

I’m getting the Message: Undefined variable: custom_fields… I thought the variable goes through the invoices without a problem.

Cheers

<?php echo $custom_fields['invoice'][6]; ?>
<?php echo $invoice->client_custom_field[6]; ?>
<?php echo $invoice->custom_field[6]; ?>