From 3a8e4d203aa0d07a568ac4be698d88ac8c6ed7ae Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Wed, 10 Jan 2024 15:00:58 +0500 Subject: [PATCH] 11768: replace order_id with order --- .../enterprise_fees_with_tax_report_by_order.rb | 3 +-- 1 file changed, 1 insertion(+), 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 bfc5747957..a250dce9c6 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 @@ -234,12 +234,11 @@ module Reporting def tax(query_result_row, all: false, included: nil) order = order(query_result_row) - order_id = order.id 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 - tax_amount = query.where(order_id:) + tax_amount = query.where(order:) .where(adjustable_type: 'Spree::Adjustment') .where(adjustable_id: adjustment_ids) .pick("sum(amount)") || 0