mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-22 05:18:51 +00:00
Cleaning up left over TODOs
This commit is contained in:
committed by
Maikel Linke
parent
aa526a639c
commit
236f6926d9
@@ -6,7 +6,6 @@ class VoucherAdjustmentsController < BaseController
|
||||
def destroy
|
||||
@order = current_order
|
||||
|
||||
# TODO: do we need to check the user can delete voucher_adjustment
|
||||
@order.voucher_adjustments.find_by(id: params[:id])&.destroy
|
||||
|
||||
respond_to do |format|
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
%i.ofn-i_051-check-big
|
||||
= t("split_checkout.step2.voucher.voucher", voucher_amount: voucher_adjustment.originator.display_value)
|
||||
= link_to t("split_checkout.step2.voucher.remove_code"), voucher_adjustment_path(id: voucher_adjustment.id), method: "delete", data: { confirm: t("split_checkout.step2.voucher.confirm_delete") }
|
||||
- # TODO: this might not be true, ie payment method include fee which wouldn't be covered by voucher, tax implication raise total to be bigger than voucher other ?
|
||||
- # This might not be true, ie payment method including a fee which wouldn't be covered by voucher or tax implication raising total to be bigger than the voucher amount ?
|
||||
- if voucher_adjustment.originator.value > order.total
|
||||
.checkout-input
|
||||
%span.formError.standalone
|
||||
|
||||
Reference in New Issue
Block a user