public static function calcLink($invoice) { return link_to('invoices/' . $invoice->public_id, $invoice->invoice_number); }