Changeset 844 for trunk/Application


Ignore:
Timestamp:
Jan 1, 2017, 10:21:42 PM (8 years ago)
Author:
chronos
Message:
  • Added: Autocreate new finance year if necessary for new document line items.
Location:
trunk/Application
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/FormClasses.php

    r817 r844  
    2929      'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),
    3030      'Shortcut' => array('Type' => 'String', 'Caption' => 'Kód', 'Default' => ''),
     31      'Yearly' => array('Type' => 'Boolean', 'Caption' => 'Ročně', 'Default' => 0),
    3132      'Sequence' => array('Type' => 'TDocumentLineSequenceListLine', 'Caption' => 'Čísleníky', 'Default' => ''),
    3233      'Codes' => array('Type' => 'TDocumentLineCodeList', 'Caption' => 'Kódy', 'Default' => ''),
  • trunk/Application/UpdateTrace.php

    r839 r844  
    20362036{
    20372037  $Manager->Execute('ALTER TABLE `News` CHANGE `Date` `Date` DATETIME NULL, CHANGE `TargetDate` `TargetDate` DATETIME NULL;');
     2038}
     2039
     2040function UpdateTo844($Manager)
     2041{
     2042  $Manager->Execute('ALTER TABLE `DocumentLine` ADD `Yearly` BOOLEAN NOT NULL DEFAULT FALSE AFTER `Shortcut`;');
    20382043}
    20392044
     
    21322137      824 => array('Revision' => 831, 'Function' => 'UpdateTo831'),
    21332138      831 => array('Revision' => 838, 'Function' => 'UpdateTo838'),
     2139      838 => array('Revision' => 844, 'Function' => 'UpdateTo844'),
    21342140    ));
    21352141  }
  • trunk/Application/Version.php

    r843 r844  
    22
    33$Revision = 844; // Subversion revision
    4 $DatabaseRevision = 838; // SQL structure revision
     4$DatabaseRevision = 844; // SQL structure revision
    55$ReleaseTime = strtotime('2017-01-01');
Note: See TracChangeset for help on using the changeset viewer.