Skip to content

Commit

Permalink
enable stock in stock_processor (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Aug 12, 2016
1 parent 3e142fe commit 799eeda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rawbotz/processors/stock_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def order! order_item_id, qty
return if order_item.blank? || order_item.stocked?

begin
#RawgentoDB::Query.update_stock order_item.local_product.product_id, qty.to_i
#RawgentoDB::Query.set_available_on_stock order_item.local_product.product_id
RawgentoDB::Query.update_stock order_item.local_product.product_id, qty.to_i
RawgentoDB::Query.set_available_on_stock order_item.local_product.product_id
# Would be good to log that
order_item.update(num_stocked: qty.to_i, state: :stocked)
order_item.save
Expand Down

0 comments on commit 799eeda

Please sign in to comment.