Changeset 647 for trunk/Application
- Timestamp:
- Mar 25, 2014, 7:09:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/FormClasses.php
r645 r647 86 86 'Closed' => array('Type' => 'Boolean', 'Caption' => 'Uzavřen', 'Default' => 0), 87 87 'Sequence' => array('Type' => 'TDocumentLineSequenceListYear', 'Caption' => 'Čísleníky', 'Default' => ''), 88 ), 89 //'AfterInsert' => array($this, 'AfterInsertFinanceYear'), 90 ), 91 'FinanceYearReport' => array( 92 'Title' => 'Roční výkaz', 93 'Table' => 'FinanceYearReport', 94 'SQL' => 'SELECT Id, DateEnd, DateStart FROM FinanceYear', 95 'DefaultSortColumn' => 'Id', 96 'Items' => array( 97 'Id' => array('Type' => 'TFinanceYear', 'Caption' => 'Rok', 'Default' => '', 98 'ReadOnly' => true), 88 99 'Income' => array('Type' => 'Integer', 'Caption' => 'Příjmy', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 89 100 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 90 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.` Taxable` = 1) AND (`FinanceOperation`.`Value` > 0))'),101 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Value` > 0))'), 91 102 'Spending' => array('Type' => 'Integer', 'Caption' => 'Výdaje', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 92 103 'SQL' => '(SELECT -ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 104 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Value` < 0))'), 105 'OperationBalance' => array('Type' => 'Integer', 'Caption' => 'Zisk', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 106 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 107 'AND (`FinanceOperation`.`Time` >= `DateStart`))'), 108 'TaxIncome' => array('Type' => 'Integer', 'Caption' => 'Daňové příjmy', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 109 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 110 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Taxable` = 1) AND (`FinanceOperation`.`Value` > 0))'), 111 'TaxSpending' => array('Type' => 'Integer', 'Caption' => 'Daňové výdaje', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 112 'SQL' => '(SELECT -ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 93 113 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Taxable` = 1) AND (`FinanceOperation`.`Value` < 0))'), 94 ' OperationBalance' => array('Type' => 'Integer', 'Caption' => 'Zisk', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true,114 'TaxBase' => array('Type' => 'Integer', 'Caption' => 'Základ daně', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 95 115 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 96 116 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Taxable` = 1))'), … … 233 253 'Filter' => '1', 234 254 ), 255 'TContract' => array( 256 'Type' => 'Reference', 257 'Table' => 'Contract', 258 'Id' => 'Id', 259 'Name' => 'BillCode', 260 'Filter' => '1', 261 ), 262 'TEmployee' => array( 263 'Type' => 'Reference', 264 'Table' => 'Employee', 265 'Id' => 'Id', 266 'Name' => 'CONCAT(FirstName, " ", SecondName)', 267 'Filter' => '1', 268 ), 269 'TEmployeeSalaryList' => array( 270 'Type' => 'ManyToOne', 271 'Table' => 'EmployeeSalary', 272 'Id' => 'Id', 273 'Ref' => 'Employee', 274 'Filter' => '1', 275 ), 235 276 'TMemberListSubject' => array( 236 277 'Type' => 'ManyToOne',
Note:
See TracChangeset
for help on using the changeset viewer.