Changeset 632
- Timestamp:
- Jan 3, 2014, 5:55:20 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/FormClasses.php
r628 r632 35 35 ), 36 36 ), 37 'FinanceInvoiceOperationRel' => array( 38 'Title' => 'Zaplacení faktůr', 39 'Table' => 'FinanceInvoiceOperationRel', 40 'Items' => array( 41 'Invoice' => array('Type' => 'TFinanceInvoice', 'Caption' => 'Faktura', 'Default' => ''), 42 'Operation' => array('Type' => 'TFinanceOperation', 'Caption' => 'Platba', 'Default' => ''), 43 ), 44 ), 37 45 'ServiceCustomerRel' => array( 38 46 'Title' => 'Vztahy služba - zákazník', … … 602 610 'Filter' => '1', 603 611 ), 612 'TFinanceInvoiceOperationRelListInvoice' => array( 613 'Type' => 'ManyToOne', 614 'Table' => 'FinanceInvoiceOperationRel', 615 'Id' => 'Id', 616 'Ref' => 'Invoice', 617 'Filter' => '1', 618 ), 619 'TFinanceInvoiceOperationRelListOperation' => array( 620 'Type' => 'ManyToOne', 621 'Table' => 'FinanceInvoiceOperationRel', 622 'Id' => 'Id', 623 'Ref' => 'Operation', 624 'Filter' => '1', 625 ), 604 626 'TServiceCustomerRelListCustomer' => array( 605 627 'Type' => 'ManyToOne', -
trunk/Application/Version.php
r630 r632 1 1 <?php 2 2 3 $Revision = 63 0; // Subversion revision4 $DatabaseRevision = 6 27; // SQL structure revision3 $Revision = 632; // Subversion revision 4 $DatabaseRevision = 632; // SQL structure revision 5 5 $ReleaseTime = mktime(0, 0, 0, 2, 2, 2014); -
trunk/Common/Setup/Updates.php
r627 r632 542 542 } 543 543 544 function UpdateTo632($Manager) 545 { 546 $Manager->Execute('CREATE TABLE IF NOT EXISTS `FinanceInvoiceOperationRel` ( 547 `Id` int(11) NOT NULL AUTO_INCREMENT, 548 `Invoice` int(11) NOT NULL, 549 `Operation` int(11) NOT NULL, 550 PRIMARY KEY (`Id`), 551 KEY `Invoice` (`Invoice`), 552 KEY `Operation` (`Operation`) 553 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;'); 554 $Manager->Execute('ALTER TABLE `FinanceInvoiceOperationRel` 555 ADD CONSTRAINT `FinanceInvoiceOperationRel_ibfk_2` FOREIGN KEY (`Operation`) REFERENCES `FinanceOperation` (`Id`), 556 ADD CONSTRAINT `FinanceInvoiceOperationRel_ibfk_1` FOREIGN KEY (`Invoice`) REFERENCES `FinanceInvoice` (`Id`);'); 557 } 558 544 559 class Updates 545 560 { … … 576 591 619 => array('Revision' => 620, 'Function' => 'UpdateTo620'), 577 592 620 => array('Revision' => 627, 'Function' => 'UpdateTo627'), 593 627 => array('Revision' => 632, 'Function' => 'UpdateTo632'), 578 594 )); 579 595 } -
trunk/Modules/Finance/Finance.php
r628 r632 345 345 'Treasury' => array('Type' => 'TFinanceTreasury', 'Caption' => 'Pokladna', 'Default' => '', 'Null' => true), 346 346 'Generate' => array('Type' => 'Boolean', 'Caption' => 'Generovat', 'Default' => ''), 347 'InvoiceRel' => array('Type' => 'TFinanceInvoiceOperationRelListOperation', 'Caption' => 'Zaplacené faktury', 'Default' => ''), 347 348 ), 348 349 'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'), … … 363 364 'Generate' => array('Type' => 'Boolean', 'Caption' => 'Generovat', 'Default' => ''), 364 365 'Items' => array('Type' => 'TFinanceInvoiceItemListInvoice', 'Caption' => 'Položky', 'Default' => ''), 366 'OperationRel' => array('Type' => 'TFinanceInvoiceOperationRelListInvoice', 'Caption' => 'Platba', 'Default' => ''), 365 367 ), 366 368 'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'), … … 450 452 'ReplaceId' => array('Type' => 'TFinanceCharge', 'Caption' => 'Cílová položka', 'Default' => '0', 'Null' => true), 451 453 ), 452 )); 454 )); 453 455 454 456 $this->System->AddModule(new Bill($this->System));
Note:
See TracChangeset
for help on using the changeset viewer.