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

    r738 r755  
    148148      'Filter' => '1',
    149149    ));
     150
     151    $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Customer',
     152      array('ModuleCustomer', 'ShowDashboardItem'));
    150153  }
     154
     155  function ShowDashboardItem()
     156  {
     157    $DbResult = $this->Database->select('Member', 'COUNT(*)', '1');
     158    $DbRow = $DbResult->fetch_row();
     159    $Output = 'Zákazníků: registrovaných:'.$DbRow['0'];
     160
     161    $DbResult = $this->Database->select('Member', 'COUNT(*)', '`Blocked`=0 AND `BillingPeriod`<>1');
     162    $DbRow = $DbResult->fetch_row();
     163    $Output .= ' platících:'.$DbRow['0'].'<br/>';
     164
     165    return($Output);
     166  }
     167
    151168}
Note: See TracChangeset for help on using the changeset viewer.