1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Token_invoice_count class
*
* @link github.com/jekkos/opensourcepos
* @since 3.1
* @author SteveIreland
*/
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();
}
}
?>