Changeset 425 for branches/Modular/Modules/Finance/FinanceOverview.php
- Timestamp:
- Oct 10, 2012, 12:21:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Modules/Finance/FinanceOverview.php
r377 r425 14 14 $Output .= '<a href="tarify/">Tarify</a><br />'; 15 15 $Output .= '<a href="zarizeni/">Výpis zařízení</a><br />'; 16 if($this->System->Mod els['User']->CheckPermission('Finance', 'SubjectList'))16 if($this->System->Modules['User']->Models['User']->CheckPermission('Finance', 'SubjectList')) 17 17 $Output .= '<a href="clenove/">Seznam členů</a><br />'; 18 18 $Output .= '<a href="spotreba/">Spotřeba energie</a><br />'; … … 60 60 $TotalGain = 0; 61 61 $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'); 63 63 $Row = $DbResult->fetch_array(); 64 64 $TotalConsumption = $this->System->Modules['Finance']->W2Kc($Row[0]);
Note:
See TracChangeset
for help on using the changeset viewer.