Ignore:
Timestamp:
May 1, 2009, 12:13:50 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Tabulka finance_tariffs přejmenována na FinanceTariff a přepracována její struktura podle aktuálních potřeb. Do tabulky uloženy průběžné výpočty jako sloupec MemberCount či dynamicky přepočítavaný sloupce SpeedMin. Zrušeno přepočítávání ceny a rychlosti dle cenových jednotek a rychlostních jednotek.
  • Přidáno: Sloupec Hire v tabulce Member sloužící pro záznam placení nájmu členům.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/finance/index.php

    r167 r204  
    2424    $Output .= '<br /><strong>Souhrn:</strong><br />';
    2525
    26     $DbResult = $this->Database->query("SELECT * FROM finance_monthly_overall ORDER BY date DESC LIMIT 0,1");
     26    $DbResult = $this->Database->query('SELECT * FROM finance_monthly_overall ORDER BY date DESC LIMIT 0,1');
    2727    $Row = $DbResult->fetch_array();
    2828    $Output .= 'Platba za internetovou linku ('.$Finance->RealMaxSpeed.'/'.$Finance->RealMaxSpeed.' kbit/s): <strong>'.$Finance->Internet.' Kč</strong><br />';
     
    5757    $TotalGain = 0;
    5858    $TotalExpense = 0;
    59     $DbResult = $this->Database->query("SELECT SUM(consumption) FROM network_devices WHERE used=1");
     59    $DbResult = $this->Database->query('SELECT SUM(consumption) FROM network_devices WHERE used=1');
    6060    $Row = $DbResult->fetch_array();
    6161    $TotalConsumption = $this->System->Modules['Finance']->W2Kc($Row[0]);
Note: See TracChangeset for help on using the changeset viewer.