Add help page for Foodsoft variables

This commit is contained in:
wvengen 2015-03-20 16:32:58 +01:00
parent a6f02a24d4
commit 15ac566ece
5 changed files with 38 additions and 1 deletions

View file

@ -40,7 +40,7 @@ module Foodsoft
'supplier_count' => ->{ Supplier.undeleted.count },
'active_supplier_count' => ->{ active_supplier_count },
'active_suppliers' => ->{ active_suppliers },
'first_order_date' => ->{ I18n.l Order.first.created_at.to_date }
'first_order_date' => ->{ I18n.l Order.first.try{|o| o.starts.to_date} }
}
# Return expanded variable