Ignore:
Timestamp:
Oct 25, 2015, 9:51:51 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Now IS Dashboard is not dependent on other modules. They need to register their view to IS dashboard.
  • Fixed: Wrong sign of created finance operations from bank import.
  • Added: Storno invoices now have special groups in FinanceInvoiceGroup table.

Both Storno and previous storned documents should be linked together using new table FinanceInvoiceStorno.
Also they should be marked as not visible to user.

File:
1 edited

Legend:

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

    r754 r755  
    126126      'Filter' => '1',
    127127    ));
     128    $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Subject',
     129      array('ModuleSubject', 'ShowDashboardItem'));
    128130  }
    129131
     
    176178    $this->Database->query('DROP TABLE `Subject`');
    177179  }
     180
     181  function ShowDashboardItem()
     182  {
     183    $DbResult = $this->Database->select('Subject', 'COUNT(*)', '1');
     184    $DbRow = $DbResult->fetch_row();
     185    $Output = 'Subjektů: '.$DbRow['0'].'<br/>';
     186    return($Output);
     187  }
    178188}
Note: See TracChangeset for help on using the changeset viewer.