Changeset 453 for trunk/finance/user_state.php
- Timestamp:
- Oct 28, 2012, 5:17:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/user_state.php
r438 r453 120 120 $Output .= 'Měsíční příjem za spotřebu zařízení umístěných u uživatele:<br>'; 121 121 $Output .= '<table class="WideTable"><tr><th>Název zařízení</th><th>Spotřeba [W]</th><th>Příjem [Kč]</th></tr>'; 122 $DbResult = $this->Database->query('SELECT * FROM Product WHERE User='.$Member['Subject'].' AND Used=1'); 122 $DbResult = $this->Database->query('SELECT Product.Name AS Name, Product.Consumption AS Consumption '. 123 'FROM StockItem JOIN Product ON Product.Id = StockItem.Product '. 124 'WHERE Location='.$Member['Id'].' AND (TimeElimination IS NULL)'); 123 125 $TotalW = 0; 124 126 $TotalPrice = 0;
Note:
See TracChangeset
for help on using the changeset viewer.