Changeset 786 for trunk/Application


Ignore:
Timestamp:
Jan 11, 2016, 12:06:08 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Now billing period for invoice generation is calculated as aligned to year boundary and if period is not complete then only valid months are used.
  • Removed: ToDo list and list of task and bugs is available in Trac web system.
  • Modified: BillingPeriodNext was replaced by more general ChangeAction in Member table.
  • Added: Log new monthly finance recalculation report to log table.
Location:
trunk/Application
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/FormClasses.php

    r765 r786  
    3030      'Shortcut' => array('Type' => 'String', 'Caption' => 'Kód', 'Default' => ''),
    3131      'Sequence' => array('Type' => 'TDocumentLineSequenceListLine', 'Caption' => 'Čísleníky', 'Default' => ''),
    32         'Codes' => array('Type' => 'TDocumentLineCodeList', 'Caption' => 'Kódy', 'Default' => ''),
     32      'Codes' => array('Type' => 'TDocumentLineCodeList', 'Caption' => 'Kódy', 'Default' => ''),
     33      'Operations' => array('Type' => 'TFinanceOperationGroupListDocumentLine', 'Caption' => 'Skupiny finančních operací', 'Default' => ''),
     34      'Invoices' => array('Type' => 'TFinanceInvoiceGroupListDocumentLine', 'Caption' => 'Skupiny faktur', 'Default' => ''),
    3335    ),
    3436  ),
     
    4244      'NextNumber' => array('Type' => 'Integer', 'Caption' => 'Další číslo', 'Default' => '1'),
    4345      'YearPrefix' => array('Type' => 'Boolean', 'Caption' => 'Rok jako přípona', 'Default' => '1'),
    44       'Operations' => array('Type' => 'TFinanceOperationListDocumentLine', 'Caption' => 'Finanční operace', 'Default' => ''),
    45       'Invoices' => array('Type' => 'TFinanceInvoiceListDocumentLine', 'Caption' => 'Faktury', 'Default' => ''),
    4646    ),
    4747  ),
     
    461461    'Filter' => '1',
    462462  ),
    463   'TFinanceOperationListDocumentLine' => array(
    464     'Type' => 'ManyToOne',
    465     'Table' => 'FinanceOperation',
     463  'TFinanceOperationGroupListDocumentLine' => array(
     464    'Type' => 'ManyToOne',
     465    'Table' => 'FinanceOperationGroup',
    466466    'Id' => 'Id',
    467467    'Ref' => 'DocumentLine',
    468468    'Filter' => '1',
    469469  ),
    470   'TFinanceInvoiceListDocumentLine' => array(
    471     'Type' => 'ManyToOne',
    472     'Table' => 'FinanceInvoice',
     470  'TFinanceInvoiceGroupListDocumentLine' => array(
     471    'Type' => 'ManyToOne',
     472    'Table' => 'FinanceInvoiceGroup',
    473473    'Id' => 'Id',
    474474    'Ref' => 'DocumentLine',
  • trunk/Application/UpdateTrace.php

    r785 r786  
    17931793{
    17941794  $Manager->Execute('DROP TABLE `NetworkInterfaceStat`');
     1795}
     1796
     1797function UpdateTo786($Manager)
     1798{
     1799  $Manager->Execute('ALTER TABLE `Member` DROP FOREIGN KEY Member_ibfk_28;');
     1800  $Manager->Execute('ALTER TABLE `Member` DROP `BillingPeriodNext`;');
     1801  $Manager->Execute('ALTER TABLE `Member` ADD `Action` ENUM( "add", "modify", "remove" ) NULL');
     1802  $Manager->Execute('ALTER TABLE `Member` ADD `ChangeTime` DATETIME NULL');
     1803  $Manager->Execute('ALTER TABLE `Member` ADD `ReplaceId` `ChangeReplaceId` INT(11) NULL DEFAULT NULL;');
     1804  $Manager->Execute('ALTER TABLE `Member` ADD FOREIGN KEY (`ChangeReplaceId`) REFERENCES `Member`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;');
    17951805}
    17961806
     
    18761886      768 => array('Revision' => 770, 'Function' => 'UpdateTo770'),
    18771887      770 => array('Revision' => 785, 'Function' => 'UpdateTo785'),
     1888      775 => array('Revision' => 786, 'Function' => 'UpdateTo786'),
    18781889    ));
    18791890  }
Note: See TracChangeset for help on using the changeset viewer.