Changeset 507 for trunk/finance/finance.php
- Timestamp:
- Apr 1, 2013, 7:14:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/finance.php
r497 r507 26 26 var $Tariffs; 27 27 var $ExternalSubject = 96; 28 var $MainSubject = 71;28 var $MainSubject; 29 29 var $BillingPeriods; 30 var $DirectoryId; 30 31 31 32 function LoadTariffs() … … 35 36 while($Tariff = $DbResult->fetch_array()) 36 37 { 37 $Tariff['InternetSpeedMin'] = $Tariff['InternetSpeedMin'] * 10 24;38 $Tariff['InternetSpeedMax'] = $Tariff['InternetSpeedMax'] * 10 24;38 $Tariff['InternetSpeedMin'] = $Tariff['InternetSpeedMin'] * 1000; 39 $Tariff['InternetSpeedMax'] = $Tariff['InternetSpeedMax'] * 1000; 39 40 $this->Tariffs[$Tariff['Id']] = $Tariff; 40 41 } … … 43 44 function RecalculateTariffs() 44 45 { 45 $ResidualSpeed = $this->MaxSpeed * 10 24;46 $ResidualSpeed = $this->MaxSpeed * 1000; 46 47 47 48 $this->LoadTariffs(); … … 92 93 } 93 94 $this->Database->update('Service', 'Id='.$Tariff['Id'], 94 array('InternetSpeedMin' => ($Tariff['InternetSpeedMin'] / 10 24),95 array('InternetSpeedMin' => ($Tariff['InternetSpeedMin'] / 1000), 95 96 'CustomerCount' => $Tariff['CustomerCount'])); 96 97 } … … 211 212 else $MonthlyInet = 0; 212 213 213 //if($Row['inet'] == 1)214 214 $Monthly += $MonthlyInet; 215 215 $Monthly -= $this->W2Kc($ConsumptionPlus); 216 $Monthly -= $Member['Hire'];217 //if($Row['overheads'] == 1) $Monthly += $Sprava; // + W2Kc($Consumption);218 216 $Monthly = round($Monthly); 219 217
Note:
See TracChangeset
for help on using the changeset viewer.