mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
Update combined queries to use #or
This commit is contained in:
@@ -22,9 +22,9 @@ class OrderTaxAdjustmentsFetcher
|
||||
def all
|
||||
tax_adjustments = order.all_adjustments.tax
|
||||
enterprise_fees_with_tax = order.all_adjustments.enterprise_fee.with_tax
|
||||
admin_adjustments_with_tax = order.adjustments.admin.with_tax
|
||||
admin_adjustments_with_tax = order.all_adjustments.admin.with_tax
|
||||
|
||||
tax_adjustments | enterprise_fees_with_tax | admin_adjustments_with_tax
|
||||
tax_adjustments.or(enterprise_fees_with_tax).or(admin_adjustments_with_tax)
|
||||
end
|
||||
|
||||
def table
|
||||
|
||||
Reference in New Issue
Block a user