Changeset 755 for trunk/Modules/Finance/Finance.php
- Timestamp:
- Oct 25, 2015, 9:51:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Finance.php
r750 r755 333 333 'PeriodTo' => array('Type' => 'Date', 'Caption' => 'Období do', 'Default' => '', 'Null' => true), 334 334 'Cash' => array('Type' => 'Boolean', 'Caption' => 'Platit hotově', 'Default' => ''), 335 'VisibleToUser' => array('Type' => 'Boolean', 'Caption' => 'Viditelné uživatelům', 'Default' => '1'), 335 336 'Items' => array('Type' => 'TFinanceInvoiceItemListInvoice', 'Caption' => 'Položky', 'Default' => ''), 337 'StornoBy' => array('Type' => 'TFinanceInvoiceStornoListBy', 'Caption' => 'Storno doklady', 'Default' => ''), 338 'StornoOf' => array('Type' => 'TFinanceInvoiceStornoListOf', 'Caption' => 'Původní doklady', 'Default' => ''), 336 339 'OperationRel' => array('Type' => 'TFinanceInvoiceOperationRelListInvoice', 'Caption' => 'Platba', 'Default' => ''), 337 340 'OperationRelCount' => array('Type' => 'Integer', 'Caption' => 'Plateb', … … 365 368 'ValueSign' => array('Type' => 'TFinanceValueSign', 'Caption' => 'Znaménko hodnoty', 'Default' => '0'), 366 369 'Direction' => array('Type' => 'TFinanceDirection', 'Caption' => 'Směr', 'Default' => '0'), 370 'Items' => array('Type' => 'TFinanceInvoiceListGroup', 'Caption' => 'Faktury', 'Default' => ''), 371 ), 372 )); 373 374 $this->System->FormManager->RegisterClass('FinanceInvoiceStorno', array( 375 'Title' => 'Storno faktur', 376 'Table' => 'FinanceInvoiceStorno', 377 'Items' => array( 378 'StornoBy' => array('Type' => 'TFinanceInvoice', 'Caption' => 'Storno doklad', 'Default' => ''), 379 'StornoOf' => array('Type' => 'TFinanceInvoice', 'Caption' => 'Původní doklad', 'Default' => ''), 367 380 ), 368 381 )); … … 557 570 )); 558 571 572 559 573 $this->System->AddModule(new Bill($this->System)); 560 574 $this->System->AddModule(new Finance($this->System)); 561 575 $this->System->Modules['Finance']->MainSubject = $Config['Finance']['MainSubjectId']; 562 576 $this->System->Modules['Finance']->DirectoryId = $Config['Finance']['DirectoryId']; 577 578 $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Finance', 579 array('ModuleFinance', 'ShowDashboardItem')); 580 } 581 582 function ShowDashboardItem() 583 { 584 $DbResult = $this->Database->select('FinanceOperation', 'ROUND(SUM(`Value`))', '1'); 585 $DbRow = $DbResult->fetch_row(); 586 $Output = 'Stav placení: '.$DbRow['0'].' Kč<br/>'; 587 return $Output; 563 588 } 564 589
Note:
See TracChangeset
for help on using the changeset viewer.