Changeset 451 for trunk/temp/product.php
- Timestamp:
- Oct 24, 2012, 10:42:58 PM (13 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/temp/product.php (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/temp/product.phpr450 r451 13 13 14 14 $System->Database->insert('Product', array('Name' => $DbRow['Name'], 'SellPrice' => $DbRow['Price'], 15 'Consumption' => $DbRow['Consumption'], 'UnitOfMeasure' => 1, 'VAT' => 20)); 15 'BuyPrice' => $DbRow['Price'], 16 'Consumption' => $DbRow['Consumption'], 'UnitOfMeasure' => 1, 'VAT' => 20)); 16 17 $ProductId = $System->Database->insert_id; 17 18 $Database->insert('StockItem', array('Stock' => 1, 'Product' => $ProductId, 'Amount' => $DbRow['Count'], 18 19 'Segment' => $DbRow['Segment'], 'TimeEnlistment' => $DbRow['Date'], 'SerialNumber' => $DbRow['DeviceId'], 19 20 'Location' => $DbRow['User'], 'Info' => $DbRow['Info'])); 20 21 } 21 22 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
