Changeset 761
- Timestamp:
- Nov 4, 2015, 9:00:41 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r760 r761 1 1 <?php 2 2 3 $Revision = 76 0; // Subversion revision3 $Revision = 761; // Subversion revision 4 4 $DatabaseRevision = 759; // SQL structure revision 5 5 $ReleaseTime = strtotime('2015-10-26'); -
trunk/Common/Setup/Updates.php
r759 r761 1583 1583 $Manager->Execute('ALTER TABLE `Scheduler` ADD `Duration` INT NOT NULL AFTER `Period`;'); 1584 1584 } 1585 1586 /* 1587 function UpdateTo761($Manager) 1588 { 1589 $Manager->Execute('INSERT INTO `MACAddress` (SELECT "" AS `Id`,`MAC` AS `Value` FROM `NetworkSignal` GROUP BY `MAC`)'); 1590 $Manager->Execute('ALTER TABLE `NetworkSignal` ADD `Address` INT NOT NULL AFTER `MAC`;'); 1591 $Manager->Execute('UPDATE `NetworkSignal` SET `Address`=(SELECT `Id` FROM `MACAddress` WHERE `MACAddress`.`Value`=`NetworkSignal`.`MAC`)'); 1592 } 1593 */ 1585 1594 1586 1595 class Updates -
trunk/Modules/Finance/Finance.php
r760 r761 124 124 $Group = $DbResult->fetch_assoc(); 125 125 return($Group); 126 } else die('Finance group not found');126 } else die('Finance group id '.$Id.' not found in table '.$Table); 127 127 } 128 128 … … 167 167 $Consumption = 0; 168 168 } 169 $Consumption = 0; 169 170 $this->Database->insert('MemberPayment', array('Member' => $Member['Id'], 170 171 'MonthlyInternet' => $MonthlyInet, -
trunk/Modules/Finance/Manage.php
r748 r761 177 177 178 178 // Load invoice group 179 $FinanceGroup = $this->System->Modules['Finance']->GetFinanceGroupById($InvoiceGroupId, 'FinanceInvoice ');179 $FinanceGroup = $this->System->Modules['Finance']->GetFinanceGroupById($InvoiceGroupId, 'FinanceInvoiceGroup'); 180 180 foreach($InvoiceItems as $Index => $Item) { 181 181 $InvoiceItems[$Index]['Price'] = $Item['Price'] * $FinanceGroup['ValueSign']; … … 271 271 $Row = $DbResult->fetch_row(); 272 272 $TotalMemberCash = $Row[0]; 273 $Output .= 'Stav pokladny: Členové('. $TotalMemberCash.')';273 $Output .= 'Stav pokladny: Členové('.round($TotalMemberCash).')<br/>'; 274 274 275 275 $DbResult = $this->Database->query('SELECT SUM(`Product`.`Consumption`) AS `Consumption` FROM `StockSerialNumber` '. -
trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
r755 r761 86 86 $Preset = array( 87 87 'presetTime' => $Item['Time'], 88 'presetValue ' => $Item['Value'],88 'presetValueUser' => abs($Item['Value']), 89 89 'presetTaxable' => 1, 90 90 'presetText' => $Item['Description'], 91 91 'presetNetwork' => 1, 92 92 'presetBankAccount' => $Item['BankAccount'], 93 'preset DocumentLine' => $FinanceGroup['DocumentLine']);93 'presetGroup' => $FinanceGroup['Id']); 94 94 return($Preset); 95 95 } -
trunk/Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php
r738 r761 119 119 // Redirect unregistred clients to free access activation page 120 120 $Items[] = array('chain' => 'dstnat', 'dst-address' => '!10.145.0.0/16', 121 'src-address-list' => 'unregistred', 'in-interface' => $LocalInterface, 121 'src-address-list' => 'unregistred', 'in-interface' => $LocalInterface, 'protocol' => 'tcp', 122 122 'action' => 'dst-nat', 'to-addresses' => '10.145.64.8', 'to-ports' => 82, 'comment' => 'Redirect_unregistred'); 123 123 -
trunk/Modules/Scheduler/Scheduler.php
r760 r761 82 82 $Duration = $StopTime - $StartTime; 83 83 $this->Database->update('Scheduler', 'Id='.$DbRow['Id'], 84 array('Log' => $Output, 'LastExecutedTime' => TimeToMysqlDateTime($StartTime))); 84 array('Log' => $Output, 'LastExecutedTime' => TimeToMysqlDateTime($StartTime), 85 'Duration' => $Duration)); 85 86 if($DbRow['Period'] != '') { 86 87 if($DbRow['ScheduledTime'] == '') $NewScheduledTime = $StartTime + $DbRow['Period']; -
trunk/Modules/Subject/Subject.php
r755 r761 36 36 'Invoices' => array('Type' => 'TFinanceInvoiceListSubject', 'Caption' => 'Faktury', 'Default' => ''), 37 37 'Payment' => array('Type' => 'Float', 'Caption' => 'Placení', 'Default' => '', 38 'ReadOnly' => true, 'Suffix' => 'Kč', 'SQL' => ' IFNULL((SELECT SUM(`FinanceOperation`.`Value`) FROM `FinanceOperation` '.38 'ReadOnly' => true, 'Suffix' => 'Kč', 'SQL' => 'ROUND(IFNULL((SELECT SUM(`FinanceOperation`.`Value`) FROM `FinanceOperation` '. 39 39 'WHERE `FinanceOperation`.`Subject`=#Id), 0) - IFNULL((SELECT SUM(`FinanceInvoice`.`Value`) FROM `FinanceInvoice` '. 40 'WHERE `FinanceInvoice`.`Subject`=#Id), 0) '),41 'BankAccounts' => array('Type' => 'TFinanceBankAccountListSubject', 'Caption' => 'Bankovní úč ety', 'Default' => ''),40 'WHERE `FinanceInvoice`.`Subject`=#Id), 0))'), 41 'BankAccounts' => array('Type' => 'TFinanceBankAccountListSubject', 'Caption' => 'Bankovní účty', 'Default' => ''), 42 42 ), 43 43 ));
Note:
See TracChangeset
for help on using the changeset viewer.