Changeset 711 for trunk/Modules/Finance/Finance.php
- Timestamp:
- Dec 29, 2014, 12:43:16 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Finance.php
r710 r711 507 507 'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'), 508 508 )); 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 531 524 532 525 $this->System->AddModule(new Bill($this->System));
Note:
See TracChangeset
for help on using the changeset viewer.