Ignore:
Timestamp:
Oct 10, 2012, 12:21:38 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Automatické spouštění instalovaných modulů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Modular/Modules/Finance/FinanceOverview.php

    r377 r425  
    1414    $Output .= '<a href="tarify/">Tarify</a><br />';
    1515    $Output .= '<a href="zarizeni/">Výpis zařízení</a><br />';
    16     if($this->System->Models['User']->CheckPermission('Finance', 'SubjectList'))
     16    if($this->System->Modules['User']->Models['User']->CheckPermission('Finance', 'SubjectList'))
    1717      $Output .= '<a href="clenove/">Seznam členů</a><br />';
    1818    $Output .= '<a href="spotreba/">Spotřeba energie</a><br />';
     
    6060    $TotalGain = 0;
    6161    $TotalExpense = 0;
    62     $DbResult = $this->Database->query('SELECT SUM(Consumption) FROM network_devices WHERE used=1');
     62    $DbResult = $this->Database->query('SELECT SUM(Consumption) FROM Product WHERE Used=1');
    6363    $Row = $DbResult->fetch_array();
    6464    $TotalConsumption = $this->System->Modules['Finance']->W2Kc($Row[0]);
Note: See TracChangeset for help on using the changeset viewer.