Changeset 809


Ignore:
Timestamp:
Mar 6, 2016, 5:09:26 PM (9 years ago)
Author:
chronos
Message:
  • Fixed: Calculated sum of values need to be read only.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Version.php

    r808 r809  
    11<?php
    22
    3 $Revision = 808; // Subversion revision
     3$Revision = 809; // Subversion revision
    44$DatabaseRevision = 808; // SQL structure revision
    55$ReleaseTime = strtotime('2016-03-06');
  • trunk/Modules/Finance/Finance.php

    r808 r809  
    447447        'Value2000' => array('Type' => 'Integer', 'Caption' => 'Hodnota 2000', 'Default' => '0', 'Suffix' => 'ks'),
    448448        'Value5000' => array('Type' => 'Integer', 'Caption' => 'Hodnota 5000', 'Default' => '0', 'Suffix' => 'ks'),
    449         'Sum' => array('Type' => 'Integer', 'Caption' => 'Součet', 'Default' => '0', 'Suffix' => 'Kč',
     449        'Sum' => array('Type' => 'Integer', 'Caption' => 'Součet', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true,
    450450          'SQL' => '(`Value1` * 1 + `Value2` * 2 + `Value5` * 5 + `Value10` * 10 + '.
    451451          '`Value20` * 20 + `Value50` * 50 + `Value100` * 100 + `Value200` * 200 + '.
Note: See TracChangeset for help on using the changeset viewer.