From c21a35a9fc98abd6fd322e8deb4bcc72c8285db1 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Fri, 16 Jun 2023 06:38:15 +0100 Subject: [PATCH] fix typo on lib/reporting/reports/enterprise_fee_summary/enterprise_fees_with_tax_report_by_order.rb --- .../enterprise_fees_with_tax_report_by_order.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/reporting/reports/enterprise_fee_summary/enterprise_fees_with_tax_report_by_order.rb b/lib/reporting/reports/enterprise_fee_summary/enterprise_fees_with_tax_report_by_order.rb index 63bc28710f..1649bbcb7a 100644 --- a/lib/reporting/reports/enterprise_fee_summary/enterprise_fees_with_tax_report_by_order.rb +++ b/lib/reporting/reports/enterprise_fee_summary/enterprise_fees_with_tax_report_by_order.rb @@ -231,7 +231,7 @@ module Reporting def tax(query_result_row, all: false, included: nil) order_id = order(query_result_row).id - adjustment_ids = enterprise_fee_adjustemnt_ids(query_result_row) + adjustment_ids = enterprise_fee_adjustment_ids(query_result_row) query = Spree::Adjustment.tax query = query.where(included: true) unless included.nil? query = query.where(originator_id: tax_rate_id(query_result_row)) unless all == true @@ -261,7 +261,7 @@ module Reporting order(query_result_row).customer&.email end - def enterprise_fee_adjustemnt_ids(query_result_row) + def enterprise_fee_adjustment_ids(query_result_row) Spree::Adjustment.enterprise_fee .where(order: order(query_result_row)) .where(originator_id: enterprise_fee_id(query_result_row))