Ignore:
Timestamp:
Jan 1, 2015, 2:18:20 PM (10 years ago)
Author:
chronos
Message:
  • Removed: Unused table NetworkSegment which was previously used to compute exact member participation on device and consumption payment. Now consumption is handled with customer Service table.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/Manage.php

    r710 r715  
    1818    {
    1919      case 'Recalculate':
    20         $Output = $this->System->Modules['Finance']->RecalculateSegmentParameters();
    2120        $Output .= $this->System->Modules['Finance']->RecalculateMemberPayment();
    2221        break;
     
    226225    $MonthCurrent = date('m') + 0;
    227226
    228     $Output .= $Finance->RecalculateSegmentParameters();
    229227    $Output .= $Finance->LoadTariffs();
    230228    $Output .= $Finance->RecalculateMemberPayment();
     
    236234    $TotalDeviceCost = $Row[0];
    237235    $Output .= 'Celková cena zařízení: Zařízení('.$TotalDeviceCost;
    238 
    239     $DbResult = $this->Database->query('SELECT SUM(Price) FROM NetworkSegment');
    240     $Row = $DbResult->fetch_row();
    241     $TotalSegmentDeviceCost = $Row[0];
    242     $Output .= '), Segmenty('.$TotalSegmentDeviceCost;
    243236
    244237    $DbResult = $this->Database->query('SELECT SUM(NetworkDevice) FROM MemberPayment');
Note: See TracChangeset for help on using the changeset viewer.