Changeset 451 for trunk/temp/product.php


Ignore:
Timestamp:
Oct 24, 2012, 10:42:58 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Korekce tabulek Product a StockItem.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/temp/product.php

    r450 r451  
    1313 
    1414  $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));
    1617  $ProductId = $System->Database->insert_id;
    1718  $Database->insert('StockItem', array('Stock' => 1, 'Product' => $ProductId, 'Amount' => $DbRow['Count'],
    1819    'Segment' => $DbRow['Segment'], 'TimeEnlistment' => $DbRow['Date'], 'SerialNumber' => $DbRow['DeviceId'],
    19       'Location' => $DbRow['User'], 'Info' => $DbRow['Info']));
     20    'Location' => $DbRow['User'], 'Info' => $DbRow['Info']));
    2021}
    2122
Note: See TracChangeset for help on using the changeset viewer.