Clarify named vouchers in UI

This commit is contained in:
Matt-Yorkley
2023-06-02 21:38:41 +01:00
parent de97e69e7d
commit 28795effc3
3 changed files with 8 additions and 3 deletions

View File

@@ -91,10 +91,12 @@
- checkout_adjustments_for(@order, exclude: [:line_item]).reverse_each do |adjustment|
.summary-right-line
-if adjustment.originator_type == 'Voucher'
.summary-right-line-label.voucher= adjustment.label
- if adjustment.originator_type == 'Voucher'
.summary-right-line-label.voucher
= "#{t(:voucher)}:"
= adjustment.label
.summary-right-line-value.voucher= adjustment.display_amount.to_html
-else
- else
.summary-right-line-label= adjustment.label
.summary-right-line-value= adjustment.display_amount.to_html

View File

@@ -12,6 +12,8 @@
%tr.total
%td.text-right{:colspan => "3"}
%strong
- if adjustment.originator_type == "Voucher"
= "#{t(:voucher)}:"
= adjustment.label
%td.text-right.total
%span= adjustment.display_amount.to_html

View File

@@ -450,6 +450,7 @@ en:
none: None
notes: Notes
error: Error
voucher: Voucher
processing_payment: "Processing payment..."
no_pending_payments: "No pending payments"
invalid_payment_state: "Invalid payment state: %{state}"