From 1608547b5bb2d68d2d4c10c02f3efb62d2219897 Mon Sep 17 00:00:00 2001 From: aFolletete Date: Mon, 5 Dec 2011 11:27:26 +0000 Subject: [PATCH] // add restriction on addition and edition of an order --- .../themes/template/orders/_product_line.tpl | 2 +- admin-dev/themes/template/orders/view.tpl | 4 +- controllers/admin/AdminOrdersController.php | 42 ++++++++++++++----- 3 files changed, 36 insertions(+), 12 deletions(-) diff --git a/admin-dev/themes/template/orders/_product_line.tpl b/admin-dev/themes/template/orders/_product_line.tpl index 6a80d9ebd..589e4ac86 100755 --- a/admin-dev/themes/template/orders/_product_line.tpl +++ b/admin-dev/themes/template/orders/_product_line.tpl @@ -96,7 +96,7 @@ {/if} € - {if $can_edit} + {if ($can_edit && !$order->hasBeenDelivered())} {if sizeof($invoices_collection)}