Skip to content

Commit

Permalink
Fixes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
lentschi committed Mar 1, 2024
1 parent 3aa7f50 commit a23f34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/supplier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Supplier < ApplicationRecord
include MarkAsDeletedWithName
include CustomFields

has_many :articles, -> { merge(Article.with_latest_versions_and_categories.order('article_categories.name, article_versions.name')) }
has_many :articles, -> { merge(Article.not_in_stock.with_latest_versions_and_categories.order('article_categories.name, article_versions.name')) }
has_many :stock_articles, -> { merge(StockArticle.with_latest_versions_and_categories.order('article_categories.name, article_versions.name')) }
has_many :orders
has_many :deliveries
Expand Down

0 comments on commit a23f34f

Please sign in to comment.