lib/rsr_group/inventory.rb in rsr_group-0.1.2 vs lib/rsr_group/inventory.rb in rsr_group-0.1.3.debug
- old
+ new
@@ -31,10 +31,10 @@
department: row[3].nil? ? row[3] : RsrGroup::Department.new(row[3]),
manufacturer_id: sanitize(row[4]),
retail_price: sanitize(row[5]),
regular_price: sanitize(row[6]),
weight: sanitize(row[7]),
- quantity: sanitize(row[8]),
+ quantity: (Integer(sanitize(row[8])) rescue 0),
model: sanitize(row[9]),
manufacturer_name: sanitize(row[10]),
manufacturer_part_number: sanitize(row[11]),
allocated_closeout_deleted: sanitize(row[12]),
description_full: sanitize(row[13]),