Merge branch 'master' of github.com:foodcoops/foodsoft into feature/tw_automatic_group_order_invoice_generation

This commit is contained in:
viehlieb 2022-04-05 13:03:10 +02:00
commit d37a75262d
4 changed files with 19 additions and 1 deletions

View file

@ -20,7 +20,7 @@ class Ordergroup < Group
after_create :update_stats!
scope :active, -> { joins(:orders).where(orders: { starts: (Time.now.months_ago(3)..) }).group(:id) }
scope :active, -> { joins(:orders).where(orders: { starts: (Time.now.months_ago(3)..Time.now) }).group(:id) }
def contact
"#{contact_phone} (#{contact_person})"