Ignore:
Timestamp:
Mar 6, 2016, 11:23:58 PM (9 years ago)
Author:
chronos
Message:
  • Fixed: Content of columns in finance Trade reports.
  • Fixed: Rounding in finance treasury total.
File:
1 edited

Legend:

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

    r809 r810  
    422422        'TimeCreate' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => ''),
    423423        'State' => array('Type' => 'Float', 'Caption' => 'Stav', 'Default' => '',
    424           'ReadOnly' => true, 'Suffix' => 'Kč', 'SQL' => '(SELECT SUM(`FinanceOperation`.`Value`) FROM `FinanceOperation` '.
    425           'WHERE `FinanceOperation`.`Treasury`=#Id)'),
     424          'ReadOnly' => true, 'Suffix' => 'Kč', 'SQL' => 'IFNULL(ROUND((SELECT SUM(`FinanceOperation`.`Value`) FROM `FinanceOperation` '.
     425          'WHERE `FinanceOperation`.`Treasury`=#Id), '.$Config['Finance']['Rounding'].'), 0)'),
    426426        'Operations' => array('Type' => 'TFinanceOperationListTreasury', 'Caption' => 'Operace', 'Default' => ''),
    427427        'Check' => array('Type' => 'TFinanceTreasuryCheckListTreasury', 'Caption' => 'Kontrola', 'Default' => ''),
Note: See TracChangeset for help on using the changeset viewer.