mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Prepare to change AssociatedEnterpriseFee to module
The superclasses will include this module, instead of inheriting the class.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"])
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -2,7 +2,7 @@ module OrderManagement
|
||||
module Reports
|
||||
module EnterpriseFeeSummary
|
||||
module DataRepresentations
|
||||
class AssociatedEnterpriseFee
|
||||
class UsingEnterpriseFee
|
||||
attr_reader :context
|
||||
|
||||
def initialize(context)
|
||||
Reference in New Issue
Block a user