Changeset 738 for trunk/temp/product.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/temp/product.php
r548 r738 13 13 { 14 14 echo($DbRow['Name'].', '); 15 16 $System->Database->insert('Product', array('Name' => $DbRow['Name'], 15 16 $System->Database->insert('Product', array('Name' => $DbRow['Name'], 17 17 'SellPrice' => $DbRow['Price'], 'BuyPrice' => $DbRow['Price'], 18 18 'Consumption' => $DbRow['Consumption'], 'UnitOfMeasure' => 1, 'VAT' => 20)); … … 25 25 case 2: $Elimination = NULL; break; 26 26 } 27 27 28 28 // else $Elimination = $DbRow['TimeElimination']; 29 29 if($DbRow['Used'] == 2) $DbRow['User'] = NULL; 30 30 echo($DbRow['Used'].'"'.$Elimination.'"<br/>'); 31 31 // 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, 33 33 // 'SerialNumber' => $DbRow['DeviceId'], 'BuyPrice' => $DbRow['Price'], 'SellPrice' => $DbRow['Price'], 34 34 // 'Location' => $DbRow['User'], 'Info' => $DbRow['Info'])); 35 35 $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, 37 37 'SerialNumber' => $DbRow['DeviceId'], 'BuyPrice' => $DbRow['Price'], 'SellPrice' => $DbRow['Price'], 38 38 'Location' => $DbRow['User'], 'Info' => $DbRow['Info']));
Note:
See TracChangeset
for help on using the changeset viewer.