Changeset 710 for trunk/Modules/Finance/Devices.php
- Timestamp:
- Dec 29, 2014, 12:09:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Devices.php
r548 r710 17 17 $Output .= '<tr><td style="text-align: left" colspan="3"><strong>Segment: '.$Segment['Name'].' ('.$Segment['Users'].')</strong></td><td style="font-weight: Bold;" align="right">'.$Segment['Price'].'</td></tr>'; 18 18 $DbResult2 = $this->Database->query('SELECT Product.Consumption AS Consumption, Product.Name AS Name, '. 19 'Stock Item.BuyPrice AS Price, StockItem.TimeEnlistment AS Date '.20 'FROM Stock Item JOIN Product ON Product.Id = StockItem.Product WHERE (StockItem.Segment='.$Segment['Id'].') AND (StockItem.TimeElimination IS NULL)');19 'StockSerialNumber.BuyPrice AS Price, StockSerialNumber.TimeEnlistment AS Date '. 20 'FROM StockSerialNumber JOIN Product ON Product.Id = StockSerialNumber.Product WHERE (StockSerialNumber.Segment='.$Segment['Id'].') AND (StockSerialNumber.TimeElimination IS NULL)'); 21 21 while($Row = $DbResult2->fetch_assoc()) 22 22 {
Note:
See TracChangeset
for help on using the changeset viewer.