Add help page for Foodsoft variables
This commit is contained in:
parent
a6f02a24d4
commit
15ac566ece
5 changed files with 38 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue