Merge pull request #536 from dg9vh/patch-5
Updating requested-counter to include queued QSLs also
这个提交包含在:
当前提交
e02695017c
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -1156,14 +1156,14 @@ class Logbook_model extends CI_Model {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return total number of QSL Cards requested */
|
/* Return total number of QSL Cards requested for printing - that means "requested" or "queued" */
|
||||||
function total_qsl_requested() {
|
function total_qsl_requested() {
|
||||||
|
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
$CI->load->model('Stations');
|
$CI->load->model('Stations');
|
||||||
$station_id = $CI->Stations->find_active();
|
$station_id = $CI->Stations->find_active();
|
||||||
|
|
||||||
$query = $this->db->query('SELECT DISTINCT (COL_QSL_SENT) AS band, count(COL_QSL_SENT) AS count FROM '.$this->config->item('table_name').' WHERE station_id = '.$station_id.' AND COL_QSL_SENT = "R" GROUP BY band');
|
$query = $this->db->query('SELECT DISTINCT (COL_QSL_SENT) AS band, count(COL_QSL_SENT) AS count FROM '.$this->config->item('table_name').' WHERE station_id = '.$station_id.' AND COL_QSL_SENT in ("Q", "R") GROUP BY band');
|
||||||
|
|
||||||
$row = $query->row();
|
$row = $query->row();
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用