Changeset 551 for trunk/Modules/Finance/Finance.php
- Timestamp:
- Jul 7, 2013, 9:26:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Finance.php
r550 r551 356 356 'DefaultSortColumn' => 'Time', 357 357 'Items' => array( 358 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => ''), 359 'BillCode' => array('Type' => 'String', 'Caption' => 'Označení', 'Default' => ''), 360 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Subjekt', 'Default' => ''), 358 361 'Time' => array('Type' => 'Date', 'Caption' => 'Čas realizace', 'Default' => ''), 359 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Subjekt', 'Default' => ''),360 362 'Cash' => array('Type' => 'Boolean', 'Caption' => 'Hotově', 'Default' => ''), 361 363 'Taxable' => array('Type' => 'Boolean', 'Caption' => 'Zdanitelné', 'Default' => ''), 362 364 'Value' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'), 363 'BillCode' => array('Type' => 'String', 'Caption' => 'Označení', 'Default' => ''),364 365 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => ''), 365 366 'Network' => array('Type' => 'Boolean', 'Caption' => 'Týkající sítě', 'Default' => ''), … … 368 369 'Generate' => array('Type' => 'Boolean', 'Caption' => 'Generovat', 'Default' => ''), 369 370 ), 371 'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'), 370 372 )); 371 373 $this->System->FormManager->RegisterClass('FinanceInvoice', array( … … 374 376 'DefaultSortColumn' => 'TimeCreation', 375 377 'Items' => array( 378 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => ''), 376 379 'BillCode' => array('Type' => 'String', 'Caption' => 'Označení', 'Default' => ''), 377 380 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Subjekt', 'Default' => ''), … … 384 387 'Items' => array('Type' => 'TFinanceInvoiceItemListInvoice', 'Caption' => 'Položky', 'Default' => ''), 385 388 ), 389 'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'), 386 390 )); 387 391 $this->System->FormManager->RegisterClass('FinanceInvoiceItem', array( … … 473 477 { 474 478 } 479 480 function BeforeInsertFinanceOperation($Form) 481 { 482 $DocumentLine = $Form->Values['DocumentLine']; 483 $Form->Values['BillCode'] = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine); 484 return($Form->Values); 485 } 475 486 }
Note:
See TracChangeset
for help on using the changeset viewer.