Changeset 825 for trunk/Modules/Finance


Ignore:
Timestamp:
Apr 16, 2016, 9:53:17 PM (9 years ago)
Author:
chronos
Message:
  • Added: Allow to independently select table page and column order. This solves a problem where going between pages with tables incorrectly set default ordering column.
Location:
trunk/Modules/Finance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/Manage.php

    r823 r825  
    8181    $DbResult = $this->Database->query('SELECT COUNT(*) FROM ('.$SQL.') AS T');
    8282    $DbRow = $DbResult->fetch_row();
    83     $PageList = GetPageList($DbRow[0]);
     83    $PageList = GetPageList('MonthlyPayment', $DbRow[0]);
    8484
    8585    $Output = $PageList['Output'];
     
    9494      array('Name' => 'BillingPeriodName', 'Title' => 'Perioda'),
    9595    );
    96     $Order = GetOrderTableHeader($TableColumns, 'SubjectName', 0);
     96    $Order = GetOrderTableHeader('MonthlyPayment', $TableColumns, 'SubjectName', 0);
    9797    $Output .= $Order['Output'];
    9898
  • trunk/Modules/Finance/UserState.php

    r756 r825  
    2222    $DbResult = $this->Database->query('SELECT COUNT(*) FROM '.$UserOperationTableQuery.' AS `T1`');
    2323    $DbRow = $DbResult->fetch_row();
    24     $PageList = GetPageList($DbRow[0]);
     24    $PageList = GetPageList('FinanceOperation', $DbRow[0]);
    2525
    2626    $Output .= $PageList['Output'];
     
    3535        array('Name' => 'BillCode', 'Title' => 'Doklad'),
    3636    );
    37     $Order = GetOrderTableHeader($TableColumns, 'Time', 1);
     37    $Order = GetOrderTableHeader('FinanceOperation', $TableColumns, 'Time', 1);
    3838    $Output .= $Order['Output'];
    3939
Note: See TracChangeset for help on using the changeset viewer.