mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Reports Format cells: format some reports
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
8a943f50ef
commit
2dd31d970e
@@ -115,7 +115,7 @@ module Reporting
|
||||
end
|
||||
|
||||
def variant_product_group_buy_unit_size_f(line_items)
|
||||
group_buy_unit_size(line_items)
|
||||
group_buy_unit_size(line_items).to_i
|
||||
end
|
||||
|
||||
def variant_product_name(line_items)
|
||||
|
||||
@@ -24,6 +24,10 @@ module Reporting
|
||||
}
|
||||
end
|
||||
|
||||
def columns_format
|
||||
{ sum_total: :currency }
|
||||
end
|
||||
|
||||
def rules
|
||||
[
|
||||
{
|
||||
|
||||
@@ -25,6 +25,10 @@ module Reporting
|
||||
ordered_by(ordering_fields)
|
||||
end
|
||||
|
||||
def columns_format
|
||||
{ price: :currency, quantity: :quantity }
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def select_fields
|
||||
|
||||
Reference in New Issue
Block a user