13013: add producer charges gst column

This commit is contained in:
Ahmed Ejaz
2024-12-05 18:53:35 +05:00
parent c08f925ff8
commit 6a613a2203
3 changed files with 8 additions and 0 deletions

View File

@@ -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})"

View File

@@ -28,6 +28,7 @@ module Reporting
producer:,
producer_address:,
producer_abn_acn:,
producer_charges_gst:,
email:,
hub:,
hub_address:,

View File

@@ -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