From e862fa82ff1ea1bccc993b38f7f4dca62d041372 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Sun, 2 Jun 2013 02:10:57 +0200 Subject: [PATCH] Poznamky do budoucna... --- assistants/bank.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assistants/bank.inc.php b/assistants/bank.inc.php index 4c816cb..e83af44 100644 --- a/assistants/bank.inc.php +++ b/assistants/bank.inc.php @@ -179,7 +179,8 @@ switch($SUBPATH[0]) { (SELECT SUM(${bank_table}_amount) FROM ${bank_table} x WHERE ${bank_table}_to=$account_sql AND x.${bank_table}_id<=${bank_table}.${bank_table}_id) -(SELECT SUM(${bank_table}_amount) FROM ${bank_table} x WHERE ${bank_table}_from=$account_sql AND x.${bank_table}_id<=${bank_table}.${bank_table}_id) ) as ${bank_table}_subtotal":''; - $result = $this->db->safe_query_fetch("SELECT *${subtotal} FROM `${bank_table}` WHERE (`${bank_table}_to`=$account_sql OR `${bank_table}_from`=$account_sql) AND (".bank_month_sql($this,$month).") ORDER BY ${bank_table}_time DESC;"); //TADY + //(@flux := IF(transaction_to='harvie',IF(transaction_from='harvie',0,1),IF(transaction_from='harvie',-1,0))) as flux + $result = $this->db->safe_query_fetch("SELECT *${subtotal} FROM `${bank_table}` WHERE (`${bank_table}_to`=$account_sql OR `${bank_table}_from`=$account_sql) AND (".bank_month_sql($this,$month).") ORDER BY ${bank_table}_time DESC;"); } echo ("

Přehled transakcí $month

"); echo $this->html->render_item_table($result,$bank_table); -- 2.30.2