Ignore:
Timestamp:
Apr 14, 2015, 10:16:16 PM (10 years ago)
Author:
chronos
Message:
  • Added: Experimental models internal database structure regeneration.
File:
1 edited

Legend:

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

    r729 r737  
    222222      'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'),
    223223    ));
    224    
     224
    225225    $this->System->FormManager->RegisterClass('FinanceTreasuryIn', $this->System->FormManager->Classes['FinanceOperation']);
    226226    $this->System->FormManager->Classes['FinanceTreasuryIn']['Title'] = 'Pokladní příjmy';
     
    232232    $this->System->FormManager->Classes['FinanceTreasuryIn']['Items']['DocumentLine']['Filter'] = true;
    233233    $this->System->FormManager->Classes['FinanceTreasuryIn']['Items']['BankAccount']['Hidden'] = true;
    234        
     234
    235235    $this->System->FormManager->RegisterClass('FinanceTreasuryOut', $this->System->FormManager->Classes['FinanceOperation']);
    236236    $this->System->FormManager->Classes['FinanceTreasuryOut']['Title'] = 'Pokladní výdeje';
     
    242242    $this->System->FormManager->Classes['FinanceTreasuryOut']['Items']['DocumentLine']['Filter'] = true;
    243243    $this->System->FormManager->Classes['FinanceTreasuryOut']['Items']['BankAccount']['Hidden'] = true;
    244    
     244
    245245    $this->System->FormManager->RegisterClass('FinanceAccountIn', $this->System->FormManager->Classes['FinanceOperation']);
    246246    $this->System->FormManager->Classes['FinanceAccountIn']['Title'] = 'Příjmy na účet';
     
    252252    $this->System->FormManager->Classes['FinanceAccountIn']['Items']['DocumentLine']['Filter'] = true;
    253253    $this->System->FormManager->Classes['FinanceAccountIn']['Items']['Treasury']['Hidden'] = true;
    254    
    255    
     254
     255
    256256    $this->System->FormManager->RegisterClass('FinanceAccountOut', $this->System->FormManager->Classes['FinanceOperation']);
    257257    $this->System->FormManager->Classes['FinanceAccountOut']['Title'] = 'Výdeje z účtu';
     
    263263    $this->System->FormManager->Classes['FinanceAccountOut']['Items']['DocumentLine']['Filter'] = true;
    264264    $this->System->FormManager->Classes['FinanceAccountOut']['Items']['Treasury']['Hidden'] = true;
    265    
     265
    266266    $this->System->FormManager->RegisterFormType('TFinanceOperationDirection', array(
    267267      'Type' => 'Enumeration',
     
    303303    $this->System->FormManager->Classes['FinanceInvoiceIn']['Items']['DocumentLine']['Hidden'] = true;
    304304    $this->System->FormManager->Classes['FinanceInvoiceIn']['Items']['DocumentLine']['Filter'] = true;
    305        
     305
    306306    $this->System->FormManager->RegisterClass('FinanceInvoiceOut', $this->System->FormManager->Classes['FinanceInvoice']);
    307307    $this->System->FormManager->Classes['FinanceInvoiceOut']['Title'] = 'Vydané faktury';
     
    317317                'States' => array(-1 => 'Příjem', 1 => 'Výdej'),
    318318    ));
    319    
     319
    320320    $this->System->FormManager->RegisterClass('Company', array(
    321321      'Title' => 'Firma',
     
    333333        'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Položka'),
    334334        'Price' => array('Type' => 'Float', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'),
    335         'Quantity' => array('Type' => 'Integer', 'Caption' => 'Množství', 'Default' => '1'),
     335        'Quantity' => array('Type' => 'Float', 'Caption' => 'Množství', 'Default' => '1'),
    336336        'VAT' => array('Type' => 'Integer', 'Caption' => 'Daň', 'Default' => '21', 'Suffix' => '%'),
    337337        'Total' => array('Type' => 'Integer', 'Caption' => 'Celkem', 'Default' => '', 'Suffix' => 'Kč',
     
    393393        'Name' => 'Comment',
    394394        'Filter' => '1',
    395     ));   
     395    ));
    396396    $this->System->FormManager->RegisterClass('FinanceBank', array(
    397397      'Title' => 'Banky',
     
    495495        '(SELECT `FinanceBank`.`Code` FROM `FinanceBank` WHERE `FinanceBank`.`Id`=`FinanceBankAccount`.`Bank`), ")")',
    496496        'Filter' => '1',
    497     ));   
     497    ));
    498498
    499499    $this->System->AddModule(new Bill($this->System));
Note: See TracChangeset for help on using the changeset viewer.