In Journal options, Coupon visibility is checked and in twig file I have:
Code: Select all
{% for voucher in vouchers %}
<tr>
<td></td>
<td class="text-left td-voucher">{{ voucher.description }}</td>
<td class="text-left td-voucher"></td>
<td class="text-left td-voucher"><div class="input-group btn-block" style="max-width: 200px;">
<input type="text" name="" value="1" size="1" disabled="disabled" class="form-control" />
<span class="input-group-btn">
<button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="voucher.remove('{{ voucher.key }}');"><i class="fa fa-times-circle"></i></button>
</span></div></td>
<td class="text-right td-voucher">{{ voucher.amount }}</td>
<td class="text-right td-voucher">{{ voucher.amount }}</td>
</tr>
{% endfor %}