Changeset 452 for trunk/temp/product.php
- Timestamp:
- Oct 28, 2012, 10:20:32 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/temp/product.php
r451 r452 12 12 echo($DbRow['Name'].', '); 13 13 14 $System->Database->insert('Product', array('Name' => $DbRow['Name'], 'SellPrice' => $DbRow['Price'],15 ' BuyPrice' => $DbRow['Price'],14 $System->Database->insert('Product', array('Name' => $DbRow['Name'], 15 'SellPrice' => $DbRow['Price'], 'BuyPrice' => $DbRow['Price'], 16 16 'Consumption' => $DbRow['Consumption'], 'UnitOfMeasure' => 1, 'VAT' => 20)); 17 17 $ProductId = $System->Database->insert_id; 18 if($DbRow['Used'] == 1) $Elimination = 'NULL'; 19 else $Elimination = $DbRow['TimeElimination']; 18 20 $Database->insert('StockItem', array('Stock' => 1, 'Product' => $ProductId, 'Amount' => $DbRow['Count'], 19 'Segment' => $DbRow['Segment'], 'TimeEnlistment' => $DbRow['Date'], 'SerialNumber' => $DbRow['DeviceId'], 21 'Segment' => $DbRow['Segment'], 'TimeEnlistment' => $DbRow['Date'], 'TimeElimination' => $Elimination, 22 'SerialNumber' => $DbRow['DeviceId'], 'BuyPrice' => $DbRow['Price'], 'SellPrice' => $DbRow['Price'], 20 23 'Location' => $DbRow['User'], 'Info' => $DbRow['Info'])); 21 24 }
Note:
See TracChangeset
for help on using the changeset viewer.