]>
Commit | Line | Data |
---|---|---|
64bcfcdb SP |
1 | --- modules/balancelist.php 2011/01/18 08:12:20 1.64 |
2 | +++ modules/balancelist.php 2011/04/01 10:35:12 1.65 | |
3 | @@ -21,7 +21,7 @@ | |
4 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
5 | * USA. | |
6 | * | |
7 | - * $Id$ | |
8 | + * $Id$ | |
9 | */ | |
10 | ||
11 | function GetBalanceList($search=NULL, $cat=NULL, $group=NULL, $pagelimit=100, $page=NULL, $from, $to) | |
12 | @@ -42,7 +42,7 @@ | |
13 | $where = ' AND documents.number = '.intval($search); | |
14 | break; | |
15 | case 'cdate': | |
16 | - $where = ' AND cash.time >= '.$search.' AND cash.time < '.($search+86400); | |
17 | + $where = ' AND cash.time >= '.intval($search).' AND cash.time < '.(intval($search)+86400); | |
18 | break; | |
19 | case 'ten': | |
20 | $where = ' AND c.ten = '.$DB->Escape($search); | |
21 | @@ -68,9 +68,9 @@ | |
22 | } | |
23 | ||
24 | if($from) | |
25 | - $where .= ' AND cash.time >= '.$from; | |
26 | + $where .= ' AND cash.time >= '.intval($from); | |
27 | if($to) | |
28 | - $where .= ' AND cash.time <= '.$to; | |
29 | + $where .= ' AND cash.time <= '.intval($to); | |
30 | ||
31 | if($res = $DB->Exec('SELECT cash.id AS id, time, cash.userid AS userid, cash.value AS value, | |
32 | cash.customerid AS customerid, comment, docid, cash.type AS type, |