Add 'Voucher:' before voucher code on order confirmation emails

This commit is contained in:
kernal053
2024-11-26 13:15:05 +05:30
committed by Konrad
parent 7f3b1c0d7a
commit f99f2c81ac

View File

@@ -43,6 +43,8 @@
- checkout_adjustments_for(@order, exclude: [:line_item]).reverse_each do |adjustment|
%tr
%td{align: "right", colspan: "3"}
- if adjustment.originator_type == "Voucher"
= "#{t(:voucher)}:"
= "#{adjustment.label}:"
%td{align: "right"}
= adjustment.display_amount