Changeset 647 for trunk/Modules/Network/Network.php
- Timestamp:
- Mar 25, 2014, 7:09:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r624 r647 155 155 'WHERE `FinanceOperation`.`Subject`=#Id) - (SELECT SUM(`FinanceInvoice`.`Value`) FROM `FinanceInvoice` '. 156 156 'WHERE `FinanceInvoice`.`Subject`=#Id)'), 157 ), 158 )); 159 $this->System->FormManager->RegisterClass('SubjectReport', array( 160 'Title' => 'Přehled subjektů', 161 'Table' => 'SubjectReport', 162 'DefaultSortColumn' => 'Id', 163 'SQL' => '(SELECT Id FROM Subject)', 164 'Items' => array( 165 'Id' => array('Type' => 'TSubject', 'Caption' => 'Subjekt', 'Default' => '', 'ReadOnly' => true), 166 'Income' => array('Type' => 'Integer', 'Caption' => 'Příjmy', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 167 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Subject` = TX.`Id`) '. 168 'AND (`FinanceOperation`.`Value` > 0))'), 169 'Spending' => array('Type' => 'Integer', 'Caption' => 'Výdaje', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 170 'SQL' => '(SELECT -ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Subject` = TX.`Id`) '. 171 'AND (`FinanceOperation`.`Value` < 0))'), 172 'OperationBalance' => array('Type' => 'Integer', 'Caption' => 'Zisk', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 173 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Subject` = TX.`Id`) '. 174 ')'), 157 175 ), 158 176 ));
Note:
See TracChangeset
for help on using the changeset viewer.