mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
13013: add producer charges gst column
This commit is contained in:
@@ -3320,6 +3320,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
report_header_item_fees_price: "Item + Fees (%{currency})"
|
||||
report_header_admin_handling_fees: "Admin & Handling (%{currency})"
|
||||
report_header_ship_price: "Ship (%{currency})"
|
||||
report_header_producer_charges_gst: Producer charges GST?
|
||||
report_header_pay_fee_price: "Pay fee (%{currency})"
|
||||
report_header_total_price: "Total (%{currency})"
|
||||
report_header_product_total_price: "Product Total (%{currency})"
|
||||
|
||||
@@ -28,6 +28,7 @@ module Reporting
|
||||
producer:,
|
||||
producer_address:,
|
||||
producer_abn_acn:,
|
||||
producer_charges_gst:,
|
||||
email:,
|
||||
hub:,
|
||||
hub_address:,
|
||||
|
||||
@@ -23,6 +23,12 @@ module Reporting
|
||||
end
|
||||
end
|
||||
|
||||
def producer_charges_gst
|
||||
proc do |line_items|
|
||||
supplier(line_items).charges_sales_tax ? I18n.t(:yes) : I18n.t(:no)
|
||||
end
|
||||
end
|
||||
|
||||
def email
|
||||
proc { |line_item| supplier(line_item).email_address }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user