Ignore:
Timestamp:
Sep 7, 2014, 6:15:54 PM (10 years ago)
Author:
chronos
Message:
  • Opraveno: Zobrazení stavu placení u Subjektů v ISu.
  • Přidáno: Výchozí řazení u fronty emailů podle času.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Subject/Subject.php

    r678 r689  
    3636        'Invoices' => array('Type' => 'TFinanceInvoiceListSubject', 'Caption' => 'Faktury', 'Default' => ''),
    3737        '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)'),
    4141      ),
    4242    ));
Note: See TracChangeset for help on using the changeset viewer.