Changeset 710 for trunk/Modules/Finance/Overview.php
- Timestamp:
- Dec 29, 2014, 12:09:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Overview.php
r548 r710 56 56 $TotalGain = 0; 57 57 $TotalExpense = 0; 58 $DbResult = $this->Database->query('SELECT SUM(Product.Consumption) * Stock Item.Amount FROM StockItem'.59 'JOIN Product ON Product.Id=Stock Item.Product WHERE (StockItem.TimeElimination IS NULL)');58 $DbResult = $this->Database->query('SELECT SUM(Product.Consumption) * StockSerialNumber.Amount FROM StockSerialNumber '. 59 'JOIN Product ON Product.Id=StockSerialNumber.Product WHERE (StockSerialNumber.TimeElimination IS NULL)'); 60 60 $Row = $DbResult->fetch_array(); 61 61 $TotalConsumption = $this->System->Modules['Finance']->W2Kc($Row[0]);
Note:
See TracChangeset
for help on using the changeset viewer.