Skip to content

Commit 5511bd4

Browse files
committed
show discount code
1 parent 3c3bd2d commit 5511bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/default/invoice.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
{{-- empty space --}}
198198
<td class="py-2 pr-2"></td>
199199
<td class="border-b p-2 text-xs" colspan="3">
200-
{{ __($discount->name) ?? __('invoices::invoice.discount_name') }}
200+
{{ __($discount->name ?? $discount->code) ?? __('invoices::invoice.discount_name') }}
201201
@if ($discount->percent_off)
202202
({{ $discount->formatPercentage($discount->percent_off) }})
203203
@endif

0 commit comments

Comments
 (0)