Changeset 765
- Timestamp:
- Nov 6, 2015, 8:40:19 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/FormClasses.php
r755 r765 377 377 'Filter' => '1', 378 378 ), 379 'TFinanceOperationListAccount' => array( 379 'TFinanceOperationListGroup' => array( 380 'Type' => 'ManyToOne', 381 'Table' => 'FinanceOperation', 382 'Id' => 'Id', 383 'Ref' => 'Group', 384 'Filter' => '1', 385 ), 386 'TFinanceOperationListAccount' => array( 380 387 'Type' => 'ManyToOne', 381 388 'Table' => 'FinanceOperation', -
trunk/Application/Version.php
r764 r765 1 1 <?php 2 2 3 $Revision = 76 4; // Subversion revision4 $DatabaseRevision = 76 3; // SQL structure revision5 $ReleaseTime = strtotime('2015-11-0 5');3 $Revision = 765; // Subversion revision 4 $DatabaseRevision = 765; // SQL structure revision 5 $ReleaseTime = strtotime('2015-11-06'); -
trunk/Common/Setup/Updates.php
r763 r765 1604 1604 } 1605 1605 1606 function UpdateTo765($Manager) 1607 { 1608 $Manager->Execute('CREATE TABLE IF NOT EXISTS `SupportActivity` ( 1609 `Id` int(11) NOT NULL AUTO_INCREMENT, 1610 `Description` text NOT NULL, 1611 `Customer` int(11) NOT NULL, 1612 `User` int(11) NOT NULL, 1613 `Time` datetime NOT NULL, 1614 PRIMARY KEY (`Id`), 1615 KEY `User` (`User`), 1616 KEY `Customer` (`Customer`) 1617 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;'); 1618 1619 $Manager->Execute('ALTER TABLE `SupportActivity` 1620 ADD CONSTRAINT `SupportActivity_ibfk_1` FOREIGN KEY (`Customer`) REFERENCES `Member` (`Id`), 1621 ADD CONSTRAINT `SupportActivity_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`Id`);'); 1622 1623 // IS menu item 1624 $Manager->Execute('INSERT INTO `Action` (`Id` ,`Name` ,`Title` ,`Type` ,`URL` , 1625 `Group` ,`Icon` ,`PermissionOperation` ,`Enable`) VALUES ( 1626 NULL , "", "Zákaznická podpora", "1", "/is/?t=SupportActivity&a=list", NULL , NULL , NULL , "1");'); 1627 $ActionId = $Manager->Database->insert_id; 1628 $DbResult = $Manager->Execute('SELECT `Id` FROM `MenuItem` WHERE `Name`="Zákazníci"'); 1629 if($DbResult->num_rows > 0) 1630 { 1631 $DbRow = $DbResult->fetch_assoc(); 1632 $Manager->Execute("INSERT INTO `MenuItem` (`Id` ,`Name` ,`Parent` ,`Action` ,`Menu`) ". 1633 "VALUES (NULL , 'Zákazická podpora', ".$DbRow['Id'].", '".$ActionId."', '1');"); 1634 } 1635 } 1606 1636 1607 1637 class Updates … … 1682 1712 759 => array('Revision' => 762, 'Function' => 'UpdateTo762'), 1683 1713 762 => array('Revision' => 763, 'Function' => 'UpdateTo763'), 1714 763 => array('Revision' => 765, 'Function' => 'UpdateTo765'), 1684 1715 )); 1685 1716 } -
trunk/Modules/Customer/Customer.php
r755 r765 34 34 'UserRel' => array('Type' => 'TUserCustomerRelListCustomer', 'Caption' => 'Přiřazení uživatelé', 'Default' => ''), 35 35 'ServiceRel' => array('Type' => 'TServiceCustomerRelListCustomer', 'Caption' => 'Placené služby', 'Default' => ''), 36 'SupportActivity' => array('Type' => 'TSupportActivityListCustomer', 'Caption' => 'Zákaznická podpora', 'Default' => ''), 36 37 'Consumption' => array('Type' => 'TCustomerStockSerialNumber', 'Caption' => 'Spotřeba zařízení', 'Default' => ''), 37 38 ), … … 148 149 'Filter' => '1', 149 150 )); 151 $this->System->FormManager->RegisterClass('SupportActivity', array( 152 'Title' => 'Zákaznická podpora', 153 'Table' => 'SupportActivity', 154 'DefaultSortColumn' => 'Time', 155 'Items' => array( 156 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''), 157 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''), 158 'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''), 159 'User' => array('Type' => 'TUser', 'Caption' => 'Pracovník', 'Default' => ''), 160 ), 161 )); 162 $this->System->FormManager->RegisterFormType('TSupportActivityListCustomer', array( 163 'Type' => 'ManyToOne', 164 'Table' => 'SupportActivity', 165 'Id' => 'Id', 166 'Ref' => 'Customer', 167 'Filter' => '1', 168 )); 150 169 151 170 $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Customer', -
trunk/Modules/Finance/Finance.php
r761 r765 297 297 'ValueSign' => array('Type' => 'TFinanceValueSign', 'Caption' => 'Znaménko hodnoty', 'Default' => '0'), 298 298 'Direction' => array('Type' => 'TFinanceDirection', 'Caption' => 'Směr', 'Default' => '0'), 299 'Items' => array('Type' => 'TFinanceOperationListGroup', 'Caption' => 'Operace', 'Default' => ''), 299 300 ), 300 301 )); -
trunk/Modules/FinanceBankAPI/FileImport.php
r764 r765 78 78 $DbResult = $this->Database->select('FinanceBank', '*', 'Id='.$BankAccount['Bank']); 79 79 $Bank = $DbResult->fetch_assoc(); 80 $Output .= 'Účet: '.$BankAccount['Number'].'/'.$Bank['Code'].' ('.$Bank['Name'].')' ;80 $Output .= 'Účet: '.$BankAccount['Number'].'/'.$Bank['Code'].' ('.$Bank['Name'].')'."\n"; 81 81 82 82 if($Bank['Code'] == '2010') $Import = new ImportFio($this->System); -
trunk/Modules/FinanceBankAPI/ImportFio.php
r738 r765 38 38 $Output .= '<td>'.$Record['UserIdent'].'</td>'; 39 39 $Output .= '<td>'.$Record['Value'].'</td>'; 40 $Output .= '</tr>' ;40 $Output .= '</tr>'."\n"; 41 41 } 42 42 }
Note:
See TracChangeset
for help on using the changeset viewer.