mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
fix cloning all_eligible_adjustments array on DataPresenter#checkout_adjustments
This commit is contained in:
@@ -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' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user