Changeset 710 for trunk/Modules/Finance/Zivnost.php
- Timestamp:
- Dec 29, 2014, 12:09:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Zivnost.php
r627 r710 43 43 44 44 // SmallAssets 45 $DbResult = $this->Database->query('SELECT SUM(SellPrice) FROM Stock ItemWHERE (TimeEnlistment < "'.TimeToMysqlDateTime($StartTime).'") AND (TimeEnlistment != 0) AND ((TimeElimination > "'.TimeToMysqlDateTime($StartTime).'") OR (TimeElimination IS NULL))');45 $DbResult = $this->Database->query('SELECT SUM(SellPrice) FROM StockSerialNumber WHERE (TimeEnlistment < "'.TimeToMysqlDateTime($StartTime).'") AND (TimeEnlistment != 0) AND ((TimeElimination > "'.TimeToMysqlDateTime($StartTime).'") OR (TimeElimination IS NULL))'); 46 46 //$Output .= $Database->error; 47 47 $Row = $DbResult->fetch_array(); 48 48 $Balance['SmallAssets']['Start'] = $Row[0] + 0; 49 $DbResult = $this->Database->query('SELECT SUM(SellPrice) FROM Stock ItemWHERE (TimeEnlistment < "'.TimeToMysqlDateTime($EndTime).'") AND (TimeEnlistment != 0) AND ((TimeElimination > "'.TimeToMysqlDateTime($EndTime).'") OR (TimeElimination IS NULL))');49 $DbResult = $this->Database->query('SELECT SUM(SellPrice) FROM StockSerialNumber WHERE (TimeEnlistment < "'.TimeToMysqlDateTime($EndTime).'") AND (TimeEnlistment != 0) AND ((TimeElimination > "'.TimeToMysqlDateTime($EndTime).'") OR (TimeElimination IS NULL))'); 50 50 $Row = $DbResult->fetch_array(); 51 51 $Balance['SmallAssets']['End'] = $Row[0] + 0; … … 263 263 $Output .= '<table style="font-size: smaller;" border="1" cellspacing="0" cellpadding="3">'; 264 264 $Output .= '<tr><th>Název</th><th>Hodnota [Kč]</th><th>Datum zakoupení</th><th>Datum vyřezení</th></tr>'; 265 $DbResult = $this->Database->query('SELECT Product.Name AS Name, Stock Item.SellPrice AS Price, StockItem.TimeEnlistment AS TimeEnlistment, StockItem.TimeElimination AS TimeElimination '.266 'FROM Stock Item JOIN Product ON Product.Id = StockItem.Product '.265 $DbResult = $this->Database->query('SELECT Product.Name AS Name, StockSerialNumber.SellPrice AS Price, StockSerialNumber.TimeEnlistment AS TimeEnlistment, StockSerialNumber.TimeElimination AS TimeElimination '. 266 'FROM StockSerialNumber JOIN Product ON Product.Id = StockSerialNumber.Product '. 267 267 'WHERE (TimeElimination IS NOT NULL)'); 268 268 while($Row = $DbResult->fetch_array())
Note:
See TracChangeset
for help on using the changeset viewer.