Skip to content

Commit

Permalink
Merge pull request #736 from abhishek-webkul/gli-1487
Browse files Browse the repository at this point in the history
Display voucher table only if needed on Order view at back office
  • Loading branch information
rohit053 authored Sep 7, 2023
2 parents 666fbae + b8a4928 commit 3d8a0d2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 3d8a0d2

Please sign in to comment.