mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
Add 'Voucher:' before voucher code on edit cart page. Add spec correspondigly
This commit is contained in:
@@ -34,7 +34,10 @@
|
||||
- checkout_adjustments_for(@order, exclude: [:line_item]).reverse_each do |adjustment|
|
||||
%tr.order-adjustment
|
||||
%td.text-right{:colspan => "3"}
|
||||
= adjustment.label
|
||||
- if adjustment.originator_type == "Voucher"
|
||||
= t(:order_voucher_label, code: adjustment.label)
|
||||
- else
|
||||
= adjustment.label
|
||||
%td.text-right.total
|
||||
%span= adjustment.display_amount.to_html
|
||||
%td
|
||||
|
||||
Reference in New Issue
Block a user