Merge pull request #736 from abhishek-webkul/gli-1487

Display voucher table only if needed on Order view at back office
This commit is contained in:
Rohit Jain
2023-09-07 15:36:22 +05:30
committed by GitHub

View File

@@ -1228,7 +1228,7 @@
</div>
<div class="col-xs-6 pull-right">
<div class="panel panel-vouchers" style="{if !sizeof($discounts)}display:none;{/if}">
{if (sizeof($discounts) || $can_edit)}
{if sizeof($discounts)}
<div class="table-responsive">
<table class="table">
<thead>
@@ -1271,6 +1271,8 @@
</tbody>
</table>
</div>
{/if}
{if $can_edit}
<div class="current-edit" id="voucher_form" style="display:none;">
{include file='controllers/orders/_discount_form.tpl'}
</div>