fix cloning all_eligible_adjustments array on DataPresenter#checkout_adjustments

This commit is contained in:
Mohamed ABDELLANI
2023-07-14 17:31:27 +01:00
parent b027387bee
commit a2b06fa200

View File

@@ -50,7 +50,7 @@ class Invoice
end
def checkout_adjustments(exclude: [], reject_zero_amount: true)
adjustments = all_eligible_adjustments
adjustments = all_eligible_adjustments.map(&:clone)
adjustments.reject! { |a| a.originator_type == 'Spree::TaxRate' }