Changeset 689 for trunk/Modules/Subject/Subject.php
- Timestamp:
- Sep 7, 2014, 6:15:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Subject/Subject.php
r678 r689 36 36 'Invoices' => array('Type' => 'TFinanceInvoiceListSubject', 'Caption' => 'Faktury', 'Default' => ''), 37 37 'Payment' => array('Type' => 'Float', 'Caption' => 'Placení', 'Default' => '', 38 'ReadOnly' => true, 'Suffix' => 'Kč', 'SQL' => ' (SELECT SUM(`FinanceOperation`.`Value`) FROM `FinanceOperation` '.39 'WHERE `FinanceOperation`.`Subject`=#Id) -(SELECT SUM(`FinanceInvoice`.`Value`) FROM `FinanceInvoice` '.40 'WHERE `FinanceInvoice`.`Subject`=#Id) '),38 'ReadOnly' => true, 'Suffix' => 'Kč', 'SQL' => 'IFNULL((SELECT SUM(`FinanceOperation`.`Value`) FROM `FinanceOperation` '. 39 'WHERE `FinanceOperation`.`Subject`=#Id), 0) - IFNULL((SELECT SUM(`FinanceInvoice`.`Value`) FROM `FinanceInvoice` '. 40 'WHERE `FinanceInvoice`.`Subject`=#Id), 0)'), 41 41 ), 42 42 ));
Note:
See TracChangeset
for help on using the changeset viewer.