Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. diff --git a/app/integrations/hansa_stock_items_import.rb b/app/integrations/hansa_stock_items_import.rb
  2. index 8bcd288..63d26c7 100644
  3. --- a/app/integrations/hansa_stock_items_import.rb
  4. +++ b/app/integrations/hansa_stock_items_import.rb
  5. @@ -119,6 +119,6 @@ def cleanup_stock_items(rows)
  6. account.stock_items.
  7. where.not(external_id: codes).
  8. where.not(external_id: nil).
  9. - update_all(count_on_hand: 0)
  10. + update_all(count_on_hand: 0, deleted_at: Time.current)
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement