Created
July 5, 2010 19:06
-
-
Save rvalyi/464610 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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