<th><?php _e('Invoice Date', 'erp-accounting'); ?> :</th> <td><?php echo erp_ac_format_date($transaction->issue_date); ?> </td> </tr> <tr> <th><?php _e('Due Date', 'erp-accounting'); ?> :</th> <td><?php echo erp_ac_format_date($transaction->due_date); ?> </td> </tr> <tr> <th><?php _e('Amount Due', 'erp-accounting'); ?> :</th> <td><?php echo $transaction->due; ?> </td> </tr> </tbody> </table>
/** * Render the issue date column * * @param object $item * * @return string */ function column_issue_date($item) { return sprintf('<a href="%1$s">%2$s</a>', admin_url('admin.php?page=' . $this->slug . '&action=view&id=' . $item->id), erp_ac_format_date($item->issue_date)); }