Exemplo n.º 1
0
function erp_ac_get_currency()
{
    $currency = erp_get_option('base_currency', 'erp_settings_accounting', false);
    if ($currency) {
        return $currency;
    } else {
        return 'AUD';
    }
}
 /**
  * Render the designation name column
  *
  * @param  object  $item
  *
  * @return string
  */
 function column_name($entitlement)
 {
     $actions = array();
     $delete_url = '';
     if (erp_get_option('erp_debug_mode', false, 0)) {
         $actions['delete'] = sprintf('<a href="%s" class="submitdelete" data-id="%d" data-user_id="%d" data-policy_id="%d" title="%s">%s</a>', $delete_url, $entitlement->id, $entitlement->user_id, $entitlement->policy_id, __('Delete this item', 'wp-erp'), __('Delete', 'wp-erp'));
     }
     return sprintf('<a href="%3$s"><strong>%1$s</strong></a> %2$s', esc_html($entitlement->employee_name), $this->row_actions($actions), erp_hr_url_single_employee($entitlement->user_id));
 }
Exemplo n.º 3
0
/**
 * Get Company financial start date
 *
 * @since  0.1
 *
 * @return string date
 */
function erp_financial_start_date()
{
    return date('Y-m-d H:i:s', mktime(0, 0, 0, erp_get_option('gen_financial_month', 'erp_settings_general', 1), 1));
}