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

    r740 r755  
    6060    $this->System->RegisterPage(array('finance', 'import-api'), 'PageImportAPI');
    6161    $this->System->RegisterPage(array('finance', 'import-soubor'), 'PageImportFile');
     62
     63    $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('FinanceBankAPI',
     64      array('ModuleFinanceBankAPI', 'ShowDashboardItem'));
    6265  }
    6366
    6467  function DoStop()
    6568  {
     69  }
     70
     71  function ShowDashboardItem()
     72  {
     73    $DbResult = $this->Database->select('FinanceBankImport', 'COUNT(*)', '`FinanceOperation` IS NULL');
     74    $DbRow = $DbResult->fetch_row();
     75    $Output = 'Nezpárovaných plateb: '.$DbRow['0'].'<br/>';
     76    return($Output);
    6677  }
    6778
Note: See TracChangeset for help on using the changeset viewer.