Changeset 738 for trunk/temp/product.php


Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/temp/product.php

    r548 r738  
    1313{
    1414  echo($DbRow['Name'].', ');
    15  
    16   $System->Database->insert('Product', array('Name' => $DbRow['Name'], 
     15
     16  $System->Database->insert('Product', array('Name' => $DbRow['Name'],
    1717    'SellPrice' => $DbRow['Price'], 'BuyPrice' => $DbRow['Price'],
    1818    'Consumption' => $DbRow['Consumption'], 'UnitOfMeasure' => 1, 'VAT' => 20));
     
    2525    case 2: $Elimination = NULL; break;
    2626  }
    27        
     27
    2828  //  else $Elimination = $DbRow['TimeElimination'];
    2929  if($DbRow['Used'] == 2) $DbRow['User'] = NULL;
    3030  echo($DbRow['Used'].'"'.$Elimination.'"<br/>');
    3131//  print_r(array('Stock' => 1, 'Product' => $ProductId, 'Amount' => $DbRow['Count'],
    32 //    'Segment' => $DbRow['Segment'], 'TimeEnlistment' => $DbRow['Date'], 'TimeElimination' => $Elimination, 
     32//    'Segment' => $DbRow['Segment'], 'TimeEnlistment' => $DbRow['Date'], 'TimeElimination' => $Elimination,
    3333//    'SerialNumber' => $DbRow['DeviceId'], 'BuyPrice' => $DbRow['Price'], 'SellPrice' => $DbRow['Price'],
    3434//    'Location' => $DbRow['User'], 'Info' => $DbRow['Info']));
    3535  $Database->insert('StockItem', array('Stock' => 1, 'Product' => $ProductId, 'Amount' => $DbRow['Count'],
    36     'Segment' => $DbRow['Segment'], 'TimeEnlistment' => $DbRow['Date'], 'TimeElimination' => $Elimination, 
     36    'Segment' => $DbRow['Segment'], 'TimeEnlistment' => $DbRow['Date'], 'TimeElimination' => $Elimination,
    3737    'SerialNumber' => $DbRow['DeviceId'], 'BuyPrice' => $DbRow['Price'], 'SellPrice' => $DbRow['Price'],
    3838    'Location' => $DbRow['User'], 'Info' => $DbRow['Info']));
Note: See TracChangeset for help on using the changeset viewer.