mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Compare adjustments in deterministic order for invoices
The comparator would sometimes compare two different adjustments when it should have compared two versions of the same adjustment.
This commit is contained in:
@@ -16,7 +16,7 @@ class Invoice
|
||||
has_many :all_eligible_adjustments, serializer: Invoice::AdjustmentSerializer
|
||||
|
||||
def all_eligible_adjustments
|
||||
object.all_adjustments.eligible
|
||||
object.all_adjustments.eligible.order(:id)
|
||||
end
|
||||
|
||||
def completed_at
|
||||
|
||||
Reference in New Issue
Block a user