Changeset 456 for trunk/finance/user_state.php
- Timestamp:
- Oct 31, 2012, 4:52:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/user_state.php
r453 r456 32 32 33 33 if(!array_key_exists('show', $_GET)) $_GET['show'] = ''; 34 $DbResult = $this->Database->query('SELECT * FROM Member LEFT JOIN MemberPayment ON MemberPayment.Member=Member.Id WHERE Member.Subject='.$Subject['Id']); 34 $DbResult = $this->Database->query('SELECT Member.*, MemberPayment.MonthlyPlus AS MonthlyPlus '. 35 'FROM Member LEFT JOIN MemberPayment ON MemberPayment.Member=Member.Id WHERE Member.Subject='.$Subject['Id']); 35 36 $Member = $DbResult->fetch_assoc(); 36 37 $TarifName = $Finance->Tariffs[$Member['InternetTariffCurrentMonth']]['Name']; … … 122 123 $DbResult = $this->Database->query('SELECT Product.Name AS Name, Product.Consumption AS Consumption '. 123 124 'FROM StockItem JOIN Product ON Product.Id = StockItem.Product '. 124 'WHERE Location='.$Member['Id'].' AND (TimeElimination IS NULL)');125 'WHERE (StockItem.Location='.$Member['Id'].') AND (StockItem.TimeElimination IS NULL)'); 125 126 $TotalW = 0; 126 127 $TotalPrice = 0;
Note:
See TracChangeset
for help on using the changeset viewer.