Changeset 453 for trunk/temp/product.php
- Timestamp:
- Oct 28, 2012, 5:17:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/temp/product.php
r452 r453 4 4 5 5 /* @var $System System */ 6 $System->Database->query(' TRUNCATE TABLEStockItem');7 $System->Database->query(' TRUNCATE TABLEProduct');6 $System->Database->query('DELETE FROM StockItem'); 7 $System->Database->query('DELETE FROM Product'); 8 8 9 9 $DbResult = $System->Database->select('ProductOld', '*'); … … 16 16 'Consumption' => $DbRow['Consumption'], 'UnitOfMeasure' => 1, 'VAT' => 20)); 17 17 $ProductId = $System->Database->insert_id; 18 if($DbRow['Used'] == 1) $Elimination = 'NULL';18 if($DbRow['Used'] == 0) $Elimination = 'NULL'; 19 19 else $Elimination = $DbRow['TimeElimination']; 20 20 $Database->insert('StockItem', array('Stock' => 1, 'Product' => $ProductId, 'Amount' => $DbRow['Count'],
Note:
See TracChangeset
for help on using the changeset viewer.