allow non-shared articles to be part of a shared supplier using a blank order number
This commit is contained in:
parent
c5cc714f9b
commit
49e563af89
3 changed files with 10 additions and 2 deletions
|
|
@ -57,7 +57,9 @@ class Supplier < ActiveRecord::Base
|
|||
}
|
||||
updated_articles << [article, unequal_attributes]
|
||||
end
|
||||
else
|
||||
# Articles with no order number can be used to put non-shared articles
|
||||
# in a shared supplier, with sync keeping them.
|
||||
elsif not article.order_number.blank?
|
||||
# article isn't in external database anymore
|
||||
outlisted_articles << article
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue