mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
Per review, rename amount to adjustment_amount
It was confusing as I was re assigning a variable given as a parameter
This commit is contained in:
@@ -51,10 +51,10 @@ class VoucherAdjustmentsService
|
||||
tax_adjustment.save
|
||||
|
||||
# Update the adjustment amount
|
||||
amount = voucher_rate * (order.pre_discount_total - order.additional_tax_total)
|
||||
adjustment_amount = voucher_rate * (order.pre_discount_total - order.additional_tax_total)
|
||||
|
||||
adjustment.update_columns(
|
||||
amount: amount,
|
||||
amount: adjustment_amount,
|
||||
updated_at: Time.zone.now
|
||||
)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user