Updating requested-counter to include queued QSLs also

As if we extended the coloring of outgoing QSL cards to include queued cards also to get yellow and include them also to the list of "to be printed" cards, we have to count them also in the summary.
pull/536/head
Kim - DG9VH 2020-06-11 08:18:19 +02:00 zatwierdzone przez GitHub
rodzic 0e15b79f4e
commit 78f0126412
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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() {
$CI =& get_instance();
$CI->load->model('Stations');
$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();