Ignore:
Timestamp:
Dec 29, 2014, 12:43:16 AM (10 years ago)
Author:
chronos
Message:
  • Modified: Some FormType definition moved from global file to corresponding modules.
File:
1 edited

Legend:

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

    r710 r711  
    507507      'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'),
    508508    ));
    509     $this->System->FormManager->RegisterClass('Employee', array(
    510       'Title' => 'Zaměstnanci',
    511       'Table' => 'Employee',
    512       'Items' => array(
    513         'FirstName' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),
    514         'SecondName' => array('Type' => 'String', 'Caption' => 'Příjmení', 'Default' => ''),
    515         'Salary' => array('Type' => 'Integer', 'Caption' => 'Pevná mzda', 'Default' => '0', 'Suffix' => 'Kč'),
    516         'ValidFrom' => array('Type' => 'Date', 'Caption' => 'Platnost od', 'Default' => ''),
    517         'ValidTo' => array('Type' => 'Date', 'Caption' => 'Platnost do', 'Default' => '', 'Null' => true),
    518         'SalaryList' => array('Type' => 'TEmployeeSalaryList', 'Caption' => 'Mzda', 'Default' => ''),
    519       ),
    520     ));
    521     $this->System->FormManager->RegisterClass('EmployeeSalary', array(
    522       'Title' => 'Výplaty zaměstnanců',
    523       'Table' => 'EmployeeSalary',
    524       'Items' => array(
    525         'Date' => array('Type' => 'Date', 'Caption' => 'Datum', 'Default' => ''),
    526         'Employee' => array('Type' => 'TEmployee', 'Caption' => 'Zaměstnance', 'Default' => ''),
    527         'Amount' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'),
    528         'Contract' => array('Type' => 'TContract', 'Caption' => 'Smlouva', 'Default' => ''),
    529       ),
    530     ));
     509    $this->System->FormManager->RegisterFormType('TFinanceVAT', array(
     510        'Type' => 'Reference',
     511        'Table' => 'FinanceVAT',
     512        'Id' => 'Id',
     513        'Name' => 'Name',
     514        'Filter' => '1',
     515    ));
     516    $this->System->FormManager->RegisterFormType('TFinanceVATType', array(
     517                'Type' => 'Reference',
     518                'Table' => 'FinanceVATType',
     519                'Id' => 'Id',
     520                'Name' => 'Name',
     521                'Filter' => '1',
     522    ));
     523   
    531524
    532525    $this->System->AddModule(new Bill($this->System));
Note: See TracChangeset for help on using the changeset viewer.