Add option to send mails when an order has been received
This commit is contained in:
parent
d45256145d
commit
9a7d4bf07d
9 changed files with 89 additions and 2 deletions
|
|
@ -202,6 +202,10 @@ class OrderArticle < ApplicationRecord
|
|||
group_order_articles.any? {|goa| goa.result_manually_changed?}
|
||||
end
|
||||
|
||||
def difference_received_ordered
|
||||
(units_received || 0) - units_to_order
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def article_and_price_exist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue