Changeset 453 for trunk/finance/manage.php
- Timestamp:
- Oct 28, 2012, 5:17:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/manage.php
r438 r453 70 70 $Output .= '<a href="clenove.php">Seznam členů</a><br />'; 71 71 $Output .= '<a href="zivnost.php">Živnost</a><br />'; 72 $Output .= '<a href="inventory.php">Stav skladu</a><br />';73 72 $Output .= '<a href="?Operation=GenerateBills">Generovat chybějící doklady</a><br />'; 74 73 $Output .= '<a href="import.php">Import plateb</a><br />'; … … 302 301 303 302 // Celkovy prehled 304 $DbResult = $this->Database->query('SELECT SUM(Price) FROM Product WHERE Used = 1'); 303 $DbResult = $this->Database->query('SELECT SUM(Product.Price) AS Price FROM StockItem '. 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(); 306 306 $TotalDeviceCost = $Row[0]; … … 322 322 $Output .= 'Stav pokladny: Členové('.$TotalMemberCash.')'; 323 323 324 $DbResult = $this->Database->query('SELECT SUM(Consumption) FROM Product WHERE Used=1'); 324 $DbResult = $this->Database->query('SELECT SUM(Product.Consumption) AS Consumption FROM StockItem '. 325 'JOIN Product ON StockItem.Product = Product.Id WHERE (StockItem.TimeElimination IS NULL) AND (StockItem.Segment IS NOT NULL)'); 325 326 $Row = $DbResult->fetch_row(); 326 327 $TotalConsumption = $Row[0];
Note:
See TracChangeset
for help on using the changeset viewer.