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/Task/Task.php

    r746 r755  
    8888      'Filter' => '1',
    8989    ));
     90
     91    $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Task',
     92      array('ModuleTask', 'ShowDashboardItem'));
    9093  }
    9194
     
    9497
    9598  }
     99
     100  function ShowDashboardItem()
     101  {
     102    $DbResult = $this->Database->select('Task', 'COUNT(*)', '`Progress` < 100');
     103    $DbRow = $DbResult->fetch_row();
     104    $Output = 'Nedokončených úkolů: '.$DbRow['0'].'<br/>';
     105    return $Output;
     106  }
    96107}
Note: See TracChangeset for help on using the changeset viewer.