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

    r739 r755  
    490490    ));
    491491
     492    $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Network',
     493      array('ModuleNetwork', 'ShowDashboardItem'));
     494  }
     495
     496  function ShowDashboardItem()
     497  {
     498    $Output = '';
     499    $DbResult = $this->Database->select('NetworkDevice', 'COUNT(*)', '1');
     500    $DbRow = $DbResult->fetch_row();
     501    $Output .= 'Síťových zařízení: registrovaných:'.$DbRow['0'];
     502
     503    $DbResult = $this->Database->select('NetworkDevice', 'COUNT(*)', '`Used`=1');
     504    $DbRow = $DbResult->fetch_row();
     505    $Output .= ' použitých:'.$DbRow['0'].'<br>';
     506
     507    $DbResult = $this->Database->select('NetworkInterface', 'COUNT(*)', '1');
     508    $DbRow = $DbResult->fetch_row();
     509    $Output .= 'Síťových rozhraní: '.$DbRow['0'].'<br>';
     510
     511    $DbResult = $this->Database->select('NetworkSubnet', 'COUNT(*)', '1');
     512    $DbRow = $DbResult->fetch_row();
     513    $Output .= 'Síťových podsítí: '.$DbRow['0'].'<br/>';
     514    return $Output;
    492515  }
    493516
Note: See TracChangeset for help on using the changeset viewer.