Changeset 394
- Timestamp:
- 10/18/07 08:50:26 (1 year ago)
- Files:
-
- branches/1.3/A2BCustomer_UI/lib/Class.RateEngine.php (modified) (1 diff)
- branches/1.3/A2Billing_AGI/libs_a2billing/Class.RateEngine.php (modified) (1 diff)
- branches/1.3/A2Billing_UI/lib/Class.RateEngine.php (modified) (1 diff)
- trunk/A2BCustomer_UI/lib/Class.RateEngine.php (modified) (1 diff)
- trunk/A2Billing_AGI/libs_a2billing/Class.RateEngine.php (modified) (1 diff)
- trunk/A2Billing_UI/lib/Class.RateEngine.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.3/A2BCustomer_UI/lib/Class.RateEngine.php
r389 r394 363 363 $diffday = $dayofweek - $startday; 364 364 if ($A2B->config["database"]['dbtype'] == "postgres"){ 365 $ UNIX_TIMESTAMP = "(now() - interval '$diffday day') ";365 $CLAUSE_DATE = "date_consumption >= (now() - interval '$diffday day') "; 366 366 }else{ 367 $ UNIX_TIMESTAMP = "DATE_SUB(NOW(), INTERVAL $diffday DAY) ";367 $CLAUSE_DATE = "date_consumption >= DATE_SUB(NOW(), INTERVAL $diffday DAY) "; 368 368 } 369 369 } branches/1.3/A2Billing_AGI/libs_a2billing/Class.RateEngine.php
r389 r394 365 365 $diffday = $dayofweek - $startday; 366 366 if ($A2B->config["database"]['dbtype'] == "postgres"){ 367 $ UNIX_TIMESTAMP = "(now() - interval '$diffday day') ";367 $CLAUSE_DATE = "date_consumption >= (now() - interval '$diffday day') "; 368 368 }else{ 369 $ UNIX_TIMESTAMP = "DATE_SUB(NOW(), INTERVAL $diffday DAY) ";369 $CLAUSE_DATE = "date_consumption >= DATE_SUB(NOW(), INTERVAL $diffday DAY) "; 370 370 } 371 371 } branches/1.3/A2Billing_UI/lib/Class.RateEngine.php
r389 r394 363 363 $diffday = $dayofweek - $startday; 364 364 if ($A2B->config["database"]['dbtype'] == "postgres"){ 365 $ UNIX_TIMESTAMP = "(now() - interval '$diffday day') ";365 $CLAUSE_DATE = "date_consumption >= (now() - interval '$diffday day') "; 366 366 }else{ 367 $ UNIX_TIMESTAMP = "DATE_SUB(NOW(), INTERVAL $diffday DAY) ";367 $CLAUSE_DATE = "date_consumption >= DATE_SUB(NOW(), INTERVAL $diffday DAY) "; 368 368 } 369 369 } trunk/A2BCustomer_UI/lib/Class.RateEngine.php
r389 r394 381 381 $diffday = $dayofweek - $startday; 382 382 if ($A2B->config["database"]['dbtype'] == "postgres"){ 383 $ UNIX_TIMESTAMP = "(now() - interval '$diffday day') ";383 $CLAUSE_DATE = "date_consumption >= (now() - interval '$diffday day') "; 384 384 }else{ 385 $ UNIX_TIMESTAMP = "DATE_SUB(NOW(), INTERVAL $diffday DAY) ";385 $CLAUSE_DATE = "date_consumption >= DATE_SUB(NOW(), INTERVAL $diffday DAY) "; 386 386 } 387 387 } trunk/A2Billing_AGI/libs_a2billing/Class.RateEngine.php
r389 r394 381 381 $diffday = $dayofweek - $startday; 382 382 if ($A2B->config["database"]['dbtype'] == "postgres"){ 383 $ UNIX_TIMESTAMP = "(now() - interval '$diffday day') ";383 $CLAUSE_DATE = "date_consumption >= (now() - interval '$diffday day') "; 384 384 }else{ 385 $ UNIX_TIMESTAMP = "DATE_SUB(NOW(), INTERVAL $diffday DAY) ";385 $CLAUSE_DATE = "date_consumption >= DATE_SUB(NOW(), INTERVAL $diffday DAY) "; 386 386 } 387 387 } trunk/A2Billing_UI/lib/Class.RateEngine.php
r389 r394 380 380 $diffday = $dayofweek - $startday; 381 381 if ($A2B->config["database"]['dbtype'] == "postgres"){ 382 $ UNIX_TIMESTAMP = "(now() - interval '$diffday day') ";382 $CLAUSE_DATE = "date_consumption >= (now() - interval '$diffday day') "; 383 383 }else{ 384 $ UNIX_TIMESTAMP = "DATE_SUB(NOW(), INTERVAL $diffday DAY) ";384 $CLAUSE_DATE = "date_consumption >= DATE_SUB(NOW(), INTERVAL $diffday DAY) "; 385 385 } 386 386 }
