Prepare to change AssociatedEnterpriseFee to module

The superclasses will include this module, instead of inheriting the class.
This commit is contained in:
Kristina Lim
2019-01-24 01:54:32 +08:00
parent 373e3e1039
commit b9c144bb1f
5 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ module OrderManagement
module Reports
module EnterpriseFeeSummary
module DataRepresentations
class CoordinatorFee < AssociatedEnterpriseFee
class CoordinatorFee < UsingEnterpriseFee
def fee_calculated_on_transfer_through_name
context.i18n_translate("fee_calculated_on_transfer_through_all")
end

View File

@@ -2,7 +2,7 @@ module OrderManagement
module Reports
module EnterpriseFeeSummary
module DataRepresentations
class ExchangeOrderFee < AssociatedEnterpriseFee
class ExchangeOrderFee < UsingEnterpriseFee
def fee_calculated_on_transfer_through_name
context.i18n_translate("fee_calculated_on_transfer_through_entire_orders",
distributor: context.data["adjustment_source_distributor_name"])

View File

@@ -2,7 +2,7 @@ module OrderManagement
module Reports
module EnterpriseFeeSummary
module DataRepresentations
class IncomingExchangeLineItemFee < AssociatedEnterpriseFee
class IncomingExchangeLineItemFee < UsingEnterpriseFee
def fee_calculated_on_transfer_through_name
context.data["incoming_exchange_enterprise_name"]
end

View File

@@ -2,7 +2,7 @@ module OrderManagement
module Reports
module EnterpriseFeeSummary
module DataRepresentations
class OutgoingExchangeLineItemFee < AssociatedEnterpriseFee
class OutgoingExchangeLineItemFee < UsingEnterpriseFee
def fee_calculated_on_transfer_through_name
context.data["outgoing_exchange_enterprise_name"]
end

View File

@@ -2,7 +2,7 @@ module OrderManagement
module Reports
module EnterpriseFeeSummary
module DataRepresentations
class AssociatedEnterpriseFee
class UsingEnterpriseFee
attr_reader :context
def initialize(context)