Changeset 458


Ignore:
Timestamp:
Nov 5, 2012, 8:11:04 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Generování nových plateb.
Location:
trunk/finance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/finance/finance.php

    r451 r458  
    11<?php
     2
     3define('TARIFF_FREE', 7);
    24
    35class Finance extends Module
  • trunk/finance/manage.php

    r457 r458  
    301301
    302302    // Celkovy prehled
    303     $DbResult = $this->Database->query('SELECT SUM(Product.Price) AS Price FROM StockItem '.
     303    $DbResult = $this->Database->query('SELECT SUM(Product.SellPrice) AS Price FROM StockItem '.
    304304      'JOIN Product ON StockItem.Product = Product.Id WHERE (StockItem.TimeElimination IS NULL) AND (StockItem.Segment IS NOT NULL)');
    305305    $Row = $DbResult->fetch_row();
     
    353353        $Period = $this->GetBillingPeriod($Member['BillingPeriod']);
    354354        $PayPerPeriod = $Member['MonthlyTotal'] * $Period['MonthCount'];
    355         if(($Period['From'] > $Member['UNIX_TIMESTAMP(Member.BillingPeriodLastDate)']) and ($Member['InternetTariffCurrentMonth'] != 6) and ($PayPerPeriod > 0) and
     355        if(($Period['From'] > $Member['UNIX_TIMESTAMP(Member.BillingPeriodLastDate)']) and ($Member['InternetTariffCurrentMonth'] != TARIFF_FREE) and ($PayPerPeriod > 0) and
    356356        ($Member['Blocked'] == 0))
    357357        {
Note: See TracChangeset for help on using the changeset viewer.