From 2d9ea998fc3a60fad0210bdeaeb474a9153c56f9 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 1 Jun 2006 16:44:09 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20on=20pouvait=20modifier=20le=20projet=20?= =?UTF-8?q?et=20la=20ref=20client=20une=20fois=20la=20commande=20valid=E9e?= =?UTF-8?q?=20et/ou=20=20clotur=E9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/fiche.php | 4 ++-- htdocs/compta/commande/fiche.php | 4 ++-- htdocs/expedition/commande.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 1ea8d356b53..12ed16cb2be 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -839,7 +839,7 @@ else print ''; - if ($_GET['action'] != 'refcdeclient') print ''; + if ($_GET['action'] != 'refcdeclient' && $commande->brouillon) print ''; print '
'; print $langs->trans('RefCustomer').''; print ''.img_edit($langs->trans('Edit')).''.img_edit($langs->trans('Edit')).'
'; print ''; if ($user->rights->commande->creer && $_GET['action'] == 'refcdeclient') @@ -980,7 +980,7 @@ else print ''; - if ($_GET['action'] != 'classer') print ''; + if ($_GET['action'] != 'classer' && $commande->brouillon) print ''; print '
'; print $langs->trans('Project'); print ''.img_edit($langs->trans('SetProject')).''.img_edit($langs->trans('SetProject')).'
'; print ''; if ($_GET['action'] == 'classer') diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php index 724d71954ca..a146469b96d 100644 --- a/htdocs/compta/commande/fiche.php +++ b/htdocs/compta/commande/fiche.php @@ -106,7 +106,7 @@ if ($_GET["id"] > 0) print ''; - if ($_GET['action'] != 'refcdeclient') print ''; + if ($_GET['action'] != 'refcdeclient' && $commande->brouillon) print ''; print '
'; print $langs->trans('RefCustomer').''; print ''.img_edit($langs->trans('Edit')).''.img_edit($langs->trans('Edit')).'
'; print ''; if ($user->rights->commande->creer && $_GET['action'] == 'refcdeclient') @@ -247,7 +247,7 @@ if ($_GET["id"] > 0) print ''; - if ($_GET['action'] != 'classer') print ''; + if ($_GET['action'] != 'classer' && $commande->brouillon) print ''; print '
'; print $langs->trans('Project'); print ''.img_edit($langs->trans('SetProject')).''.img_edit($langs->trans('SetProject')).'
'; print ''; if ($_GET['action'] == 'classer') diff --git a/htdocs/expedition/commande.php b/htdocs/expedition/commande.php index 966dc1f5f65..99f8e0d6387 100644 --- a/htdocs/expedition/commande.php +++ b/htdocs/expedition/commande.php @@ -118,7 +118,7 @@ if ($_GET["id"] > 0) print ''; - if ($_GET['action'] != 'refcdeclient') print ''; + if ($_GET['action'] != 'refcdeclient' && $commande->brouillon) print ''; print '
'; print $langs->trans('RefCustomer').''; print ''.img_edit($langs->trans('Edit')).''.img_edit($langs->trans('Edit')).'
'; print ''; if ($user->rights->commande->creer && $_GET['action'] == 'refcdeclient') @@ -247,7 +247,7 @@ if ($_GET["id"] > 0) print ''; - if ($_GET['action'] != 'classer') print ''; + if ($_GET['action'] != 'classer' && $commande->brouillon) print ''; print '
'; print $langs->trans('Project'); print ''.img_edit($langs->trans('SetProject')).''.img_edit($langs->trans('SetProject')).'
'; print ''; if ($_GET['action'] == 'classer')