Changeset 458
- Timestamp:
- Nov 5, 2012, 8:11:04 PM (12 years ago)
- Location:
- trunk/finance
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/finance.php
r451 r458 1 1 <?php 2 3 define('TARIFF_FREE', 7); 2 4 3 5 class Finance extends Module -
trunk/finance/manage.php
r457 r458 301 301 302 302 // 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 '. 304 304 'JOIN Product ON StockItem.Product = Product.Id WHERE (StockItem.TimeElimination IS NULL) AND (StockItem.Segment IS NOT NULL)'); 305 305 $Row = $DbResult->fetch_row(); … … 353 353 $Period = $this->GetBillingPeriod($Member['BillingPeriod']); 354 354 $PayPerPeriod = $Member['MonthlyTotal'] * $Period['MonthCount']; 355 if(($Period['From'] > $Member['UNIX_TIMESTAMP(Member.BillingPeriodLastDate)']) and ($Member['InternetTariffCurrentMonth'] != 6) and ($PayPerPeriod > 0) and355 if(($Period['From'] > $Member['UNIX_TIMESTAMP(Member.BillingPeriodLastDate)']) and ($Member['InternetTariffCurrentMonth'] != TARIFF_FREE) and ($PayPerPeriod > 0) and 356 356 ($Member['Blocked'] == 0)) 357 357 {
Note:
See TracChangeset
for help on using the changeset viewer.