HomeHelpTrac

Ignore:
Timestamp:
04/06/09 22:50:09 (3 years ago)
Author:
Andrey Prikaznov
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/finance.php

    r9395 r9984  
    4646{ 
    4747    case 'total': 
    48         $tr_query = "SELECT * FROM `Transactions` WHERE `Status` = 'approved' ORDER BY `Date` DESC"; 
     48        $tr_query = "SELECT * FROM `sys_transactions` WHERE `Status` = 'approved' ORDER BY `Date` DESC"; 
    4949        break; 
    5050 
     
    5252        $order_id = process_db_input( $_POST['tr_order_num'] ); 
    5353        $tr['order_num'] = process_pass_data( $_POST['tr_order_num'] ); 
    54         $tr_query = "SELECT * FROM `Transactions` WHERE `gtwTransactionID` = '$order_id' AND `Status` = 'approved' ORDER BY `Date` DESC"; 
     54        $tr_query = "SELECT * FROM `sys_transactions` WHERE `gtwTransactionID` = '$order_id' AND `Status` = 'approved' ORDER BY `Date` DESC"; 
    5555        $order_num_disabled = ""; 
    5656        break; 
     
    5959        $last_days = (int)$_POST['tr_last_days']; 
    6060        $tr['last_days'] = process_pass_data( $_POST['tr_last_days'] ); 
    61         $tr_query = "SELECT * FROM `Transactions` WHERE ( TO_DAYS( NOW() ) - TO_DAYS( `Date` ) <= $last_days ) AND `Status` = 'approved' ORDER BY `Date` DESC"; 
     61        $tr_query = "SELECT * FROM `sys_transactions` WHERE ( TO_DAYS( NOW() ) - TO_DAYS( `Date` ) <= $last_days ) AND `Status` = 'approved' ORDER BY `Date` DESC"; 
    6262        $last_disabled = ""; 
    6363        break; 
     
    6868        if ( $exact_date != -1 ) 
    6969        { 
    70             $tr_query = "SELECT * FROM `Transactions` WHERE TO_DAYS( FROM_UNIXTIME($exact_date) ) = TO_DAYS( `Date` ) AND `Status` = 'approved' ORDER BY `Date` DESC"; 
     70            $tr_query = "SELECT * FROM `sys_transactions` WHERE TO_DAYS( FROM_UNIXTIME($exact_date) ) = TO_DAYS( `Date` ) AND `Status` = 'approved' ORDER BY `Date` DESC"; 
    7171        } 
    7272        else 
     
    9898        if ( $between_date1 != -1 && $between_date2 != -1 ) 
    9999        { 
    100             $tr_query = "SELECT * FROM `Transactions` WHERE ( TO_DAYS( FROM_UNIXTIME($between_date1) ) <= TO_DAYS( `Date` ) AND TO_DAYS( FROM_UNIXTIME($between_date2) ) >= TO_DAYS( `Date` ) ) AND `Status` = 'approved' ORDER BY `Date` DESC"; 
     100            $tr_query = "SELECT * FROM `sys_transactions` WHERE ( TO_DAYS( FROM_UNIXTIME($between_date1) ) <= TO_DAYS( `Date` ) AND TO_DAYS( FROM_UNIXTIME($between_date2) ) >= TO_DAYS( `Date` ) ) AND `Status` = 'approved' ORDER BY `Date` DESC"; 
    101101        } 
    102102        else 
Note: See TracChangeset for help on using the changeset viewer.