// add restriction on addition and edition of an order

This commit is contained in:
aFolletete
2011-12-05 11:27:26 +00:00
parent 62c432b222
commit 1608547b5b
3 changed files with 36 additions and 12 deletions
@@ -96,7 +96,7 @@
{/if}
</td>
<td class="partial_refund_fields" style="text-align:right;background-color:rgb(232, 237, 194);display:none"><input type="text" size="3" name="partialRefundProduct[{$k}]" /> &euro;</td>
{if $can_edit}
{if ($can_edit && !$order->hasBeenDelivered())}
<td class="product_invoice" colspan="2" style="display: none;text-align:center;">
{if sizeof($invoices_collection)}
<select name="product_invoice" class="edit_product_invoice">
+3 -1
View File
@@ -493,7 +493,7 @@
<legend><img src="../img/admin/cart.gif" alt="{l s='Products'}" />{l s='Products'}</legend>
<div style="float:left;width: 100%;">
{if $can_edit}
<div style="float: left;"><a href="#" class="add_product"><img src="../img/admin/add.gif" alt="{l s='Add a product'}" /> {l s='Add a product'}</a></div>
{if !$order->hasBeenDelivered()}<div style="float: left;"><a href="#" class="add_product"><img src="../img/admin/add.gif" alt="{l s='Add a product'}" /> {l s='Add a product'}</a></div>{/if}
<div style="float: right; margin-right: 10px" id="refundForm">
<!--
<a href="#" class="standard_refund"><img src="../img/admin/add.gif" alt="{l s='Proceed a standard refund'}" /> {l s='Proceed a standard refund'}</a>
@@ -526,9 +526,11 @@
<th style="width: 8%;text-align:right;display:none" class="partial_refund_fields">
{l s='Partial refund'}
</th>
{if !$order->hasBeenDelivered()}
<th style="width: 8%;text-align:center;">
{l s='Action'}
</th>
{/if}
</tr>
{foreach from=$products item=product key=k}