From 8f65beeb0bb2498733ecdd25169dfe7bf28e5549 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Wed, 16 Jan 2019 18:30:23 +0800 Subject: [PATCH] Clarify method name in report scope --- .../reports/enterprise_fee_summary/scope.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/order_management/app/services/order_management/reports/enterprise_fee_summary/scope.rb b/engines/order_management/app/services/order_management/reports/enterprise_fee_summary/scope.rb index b3f3168518..98e2e2bd5f 100644 --- a/engines/order_management/app/services/order_management/reports/enterprise_fee_summary/scope.rb +++ b/engines/order_management/app/services/order_management/reports/enterprise_fee_summary/scope.rb @@ -31,7 +31,7 @@ module OrderManagement include_payment_fee_details include_shipping_fee_details include_enterprise_fee_details - include_line_item_details + include_line_item_source_details include_incoming_exchange_details include_outgoing_exchange_details @@ -169,14 +169,14 @@ module OrderManagement ) end - # If for line item - Use data only if spree_line_items.id is present + # If for line item source - Use data only if spree_line_items.id is present # # Includes: # * Line item # * Variant # * Product # * Tax category of product, if enterprise fee tells to inherit - def include_line_item_details + def include_line_item_source_details join_scope( <<-JOIN_STRING.strip_heredoc LEFT OUTER JOIN spree_line_items