1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Token_invoice_count class
*/
class Token_invoice_count extends Token
{
public function __construct()
{
parent::__construct();
$this->CI->load->model('Sale');
}
public function get_value()
{
return $this->CI->Sale->get_invoice_count();
}
}
?>