Skip to content

Instantly share code, notes, and snippets.

@rvalyi
Created July 5, 2010 19:06
Show Gist options
  • Save rvalyi/464610 to your computer and use it in GitHub Desktop.
Save rvalyi/464610 to your computer and use it in GitHub Desktop.
t.each{|line| StockInventoryLine.create(:location_id => 11, :product_id=>line.split(',')[0], :product_uom =>1, :product_qty =>line.split(',')[1], :inventory_id=>1) unless ProductProduct.search([['id', '=', line.split(',')[0]]]).empty?; puts line}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment