Add option to send mails when an order has been received

This commit is contained in:
lentschi 2021-02-27 17:24:25 +01:00 committed by GitHub
parent d45256145d
commit 9a7d4bf07d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 89 additions and 2 deletions

View file

@ -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