Changeset 737 for trunk/Modules/Finance/Finance.php
- Timestamp:
- Apr 14, 2015, 10:16:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Finance.php
r729 r737 222 222 'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'), 223 223 )); 224 224 225 225 $this->System->FormManager->RegisterClass('FinanceTreasuryIn', $this->System->FormManager->Classes['FinanceOperation']); 226 226 $this->System->FormManager->Classes['FinanceTreasuryIn']['Title'] = 'Pokladní příjmy'; … … 232 232 $this->System->FormManager->Classes['FinanceTreasuryIn']['Items']['DocumentLine']['Filter'] = true; 233 233 $this->System->FormManager->Classes['FinanceTreasuryIn']['Items']['BankAccount']['Hidden'] = true; 234 234 235 235 $this->System->FormManager->RegisterClass('FinanceTreasuryOut', $this->System->FormManager->Classes['FinanceOperation']); 236 236 $this->System->FormManager->Classes['FinanceTreasuryOut']['Title'] = 'Pokladní výdeje'; … … 242 242 $this->System->FormManager->Classes['FinanceTreasuryOut']['Items']['DocumentLine']['Filter'] = true; 243 243 $this->System->FormManager->Classes['FinanceTreasuryOut']['Items']['BankAccount']['Hidden'] = true; 244 244 245 245 $this->System->FormManager->RegisterClass('FinanceAccountIn', $this->System->FormManager->Classes['FinanceOperation']); 246 246 $this->System->FormManager->Classes['FinanceAccountIn']['Title'] = 'Příjmy na účet'; … … 252 252 $this->System->FormManager->Classes['FinanceAccountIn']['Items']['DocumentLine']['Filter'] = true; 253 253 $this->System->FormManager->Classes['FinanceAccountIn']['Items']['Treasury']['Hidden'] = true; 254 255 254 255 256 256 $this->System->FormManager->RegisterClass('FinanceAccountOut', $this->System->FormManager->Classes['FinanceOperation']); 257 257 $this->System->FormManager->Classes['FinanceAccountOut']['Title'] = 'Výdeje z účtu'; … … 263 263 $this->System->FormManager->Classes['FinanceAccountOut']['Items']['DocumentLine']['Filter'] = true; 264 264 $this->System->FormManager->Classes['FinanceAccountOut']['Items']['Treasury']['Hidden'] = true; 265 265 266 266 $this->System->FormManager->RegisterFormType('TFinanceOperationDirection', array( 267 267 'Type' => 'Enumeration', … … 303 303 $this->System->FormManager->Classes['FinanceInvoiceIn']['Items']['DocumentLine']['Hidden'] = true; 304 304 $this->System->FormManager->Classes['FinanceInvoiceIn']['Items']['DocumentLine']['Filter'] = true; 305 305 306 306 $this->System->FormManager->RegisterClass('FinanceInvoiceOut', $this->System->FormManager->Classes['FinanceInvoice']); 307 307 $this->System->FormManager->Classes['FinanceInvoiceOut']['Title'] = 'Vydané faktury'; … … 317 317 'States' => array(-1 => 'Příjem', 1 => 'Výdej'), 318 318 )); 319 319 320 320 $this->System->FormManager->RegisterClass('Company', array( 321 321 'Title' => 'Firma', … … 333 333 'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Položka'), 334 334 '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'), 336 336 'VAT' => array('Type' => 'Integer', 'Caption' => 'Daň', 'Default' => '21', 'Suffix' => '%'), 337 337 'Total' => array('Type' => 'Integer', 'Caption' => 'Celkem', 'Default' => '', 'Suffix' => 'Kč', … … 393 393 'Name' => 'Comment', 394 394 'Filter' => '1', 395 )); 395 )); 396 396 $this->System->FormManager->RegisterClass('FinanceBank', array( 397 397 'Title' => 'Banky', … … 495 495 '(SELECT `FinanceBank`.`Code` FROM `FinanceBank` WHERE `FinanceBank`.`Id`=`FinanceBankAccount`.`Bank`), ")")', 496 496 'Filter' => '1', 497 )); 497 )); 498 498 499 499 $this->System->AddModule(new Bill($this->System));
Note:
See TracChangeset
for help on using the changeset viewer.