+ 'cust_main' => $cust_main, # cust_main,
+ 'status' => 'open' # type of invoices to show. Possible values are:
+ # open - shows only open invoices
+ # void - shows only voided invoices
+ # all - shows all invoices, this is default if no status is set.