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

Legend:

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

    r711 r712  
    416416      ),
    417417    ));
     418    $this->System->FormManager->RegisterFormType('TFinanceTreasury', array(
     419        'Type' => 'Reference',
     420        'Table' => 'FinanceTreasury',
     421        'Id' => 'Id',
     422        'Name' => 'Name',
     423        'Filter' => '1',
     424    ));
    418425    $this->System->FormManager->RegisterClass('FinanceBankAccount', array(
    419426      'Title' => 'Účty',
     
    442449      ),
    443450    ));
     451    $this->System->FormManager->RegisterFormType('TFinanceBankAccount'. array(
     452        'Type' => 'Reference',
     453        'Table' => 'FinanceBankAccount',
     454        'Id' => 'Id',
     455        'Name' => 'Comment',
     456        'Filter' => '1',
     457    ));   
    444458    $this->System->FormManager->RegisterClass('FinanceBank', array(
    445459      'Title' => 'Banky',
     
    451465        'Country' => array('Type' => 'TCountry', 'Caption' => 'Země', 'Default' => ''),
    452466      ),
     467    ));
     468    $this->System->FormManager->RegisterFormType('TFinanceBank', array(
     469      'Type' => 'Reference',
     470      'Table' => 'FinanceBank',
     471      'Id' => 'Id',
     472      'Name' => 'CONCAT(Name, " (", Code, ")")',
     473      'Filter' => '1',
    453474    ));
    454475    $this->System->FormManager->RegisterClass('Currency', array(
     
    507528      'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'),
    508529    ));
     530    $this->System->FormManager->RegisterFormType('TContract', array(
     531      'Type' => 'Reference',
     532      'Table' => 'Contract',
     533      'Id' => 'Id',
     534      'Name' => 'BillCode',
     535      'Filter' => '1',
     536    ));
    509537    $this->System->FormManager->RegisterFormType('TFinanceVAT', array(
    510538        'Type' => 'Reference',
     
    521549                'Filter' => '1',
    522550    ));
    523    
     551    $this->System->FormManager->RegisterFormType('TBankAccount', array(
     552        'Type' => 'Reference',
     553        'Table' => 'FinanceBankAccount',
     554        'Id' => 'Id',
     555        'Name' => 'CONCAT(`Comment`, " (", `Number`, "/", '.
     556        '(SELECT `FinanceBank`.`Code` FROM `FinanceBank` WHERE `FinanceBank`.`Id`=`FinanceBankAccount`.`Bank`), ")")',
     557        'Filter' => '1',
     558    ));   
    524559
    525560    $this->System->AddModule(new Bill($this->System));
Note: See TracChangeset for help on using the changeset viewer.