Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/app/integrations/hansa_stock_items_import.rb b/app/integrations/hansa_stock_items_import.rb
- index 8bcd288..63d26c7 100644
- --- a/app/integrations/hansa_stock_items_import.rb
- +++ b/app/integrations/hansa_stock_items_import.rb
- @@ -119,6 +119,6 @@ def cleanup_stock_items(rows)
- account.stock_items.
- where.not(external_id: codes).
- where.not(external_id: nil).
- - update_all(count_on_hand: 0)
- + update_all(count_on_hand: 0, deleted_at: Time.current)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement