CI->load->model('Sale'); } public function token_id() { return 'CO'; } public function get_value() { return empty($value) ? $this->CI->Sale->get_invoice_count() : $value; } } ?>