Ignore:
Timestamp:
Apr 1, 2013, 7:14:59 PM (11 years ago)
Author:
chronos
Message:
  • Opraveno: Generování nastavení sítě. Generování front Queue nyní pracuje s přiřazením služeb k zařízením a podsítím.
  • Opraveno: Zjišťování adresáře souborů na disku dle id adresáře.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/finance/finance.php

    r497 r507  
    2626  var $Tariffs;
    2727  var $ExternalSubject = 96;
    28   var $MainSubject = 71;
     28  var $MainSubject;
    2929  var $BillingPeriods;
     30  var $DirectoryId;
    3031 
    3132  function LoadTariffs()
     
    3536    while($Tariff = $DbResult->fetch_array())
    3637    {
    37       $Tariff['InternetSpeedMin'] = $Tariff['InternetSpeedMin'] * 1024;
    38       $Tariff['InternetSpeedMax'] = $Tariff['InternetSpeedMax'] * 1024;
     38      $Tariff['InternetSpeedMin'] = $Tariff['InternetSpeedMin'] * 1000;
     39      $Tariff['InternetSpeedMax'] = $Tariff['InternetSpeedMax'] * 1000;
    3940      $this->Tariffs[$Tariff['Id']] = $Tariff;
    4041    } 
     
    4344  function RecalculateTariffs()
    4445  {
    45     $ResidualSpeed = $this->MaxSpeed * 1024;
     46    $ResidualSpeed = $this->MaxSpeed * 1000;
    4647 
    4748    $this->LoadTariffs();
     
    9293      }
    9394      $this->Database->update('Service', 'Id='.$Tariff['Id'],
    94         array('InternetSpeedMin' => ($Tariff['InternetSpeedMin'] / 1024),
     95        array('InternetSpeedMin' => ($Tariff['InternetSpeedMin'] / 1000),
    9596        'CustomerCount' => $Tariff['CustomerCount']));
    9697    }
     
    211212        else $MonthlyInet = 0;
    212213     
    213       //if($Row['inet'] == 1)
    214214      $Monthly += $MonthlyInet;
    215215      $Monthly -= $this->W2Kc($ConsumptionPlus);
    216       $Monthly -= $Member['Hire'];
    217       //if($Row['overheads'] == 1) $Monthly += $Sprava; // + W2Kc($Consumption);
    218216      $Monthly = round($Monthly);
    219217     
Note: See TracChangeset for help on using the changeset viewer.