From a266e92bd09e2143e0c9b58da5f432509bea3984 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 28 Mar 2010 21:49:43 +0000 Subject: [PATCH] New: Wrong codes are shown in red --- htdocs/categories/categorie.php | 4 ++-- htdocs/societe/agenda.php | 4 ++-- htdocs/societe/document.php | 6 +++--- htdocs/societe/socnote.php | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php index 62344cd85d6..afbad36ce61 100644 --- a/htdocs/categories/categorie.php +++ b/htdocs/categories/categorie.php @@ -211,7 +211,7 @@ if ($_GET["socid"]) print ''; print $langs->trans('CustomerCode').''; print $soc->code_client; - if ($soc->check_codeclient() <> 0) print ' '.$langs->trans("WrongCustomerCode"); + if ($soc->check_codeclient() <> 0) print ' ('.$langs->trans("WrongCustomerCode").')'; print ''; } @@ -220,7 +220,7 @@ if ($_GET["socid"]) print ''; print $langs->trans('SupplierCode').''; print $soc->code_fournisseur; - if ($soc->check_codefournisseur() <> 0) print ' '.$langs->trans("WrongSupplierCode"); + if ($soc->check_codefournisseur() <> 0) print ' ('.$langs->trans("WrongSupplierCode").')'; print ''; } diff --git a/htdocs/societe/agenda.php b/htdocs/societe/agenda.php index 7e51b290738..731c06645e2 100644 --- a/htdocs/societe/agenda.php +++ b/htdocs/societe/agenda.php @@ -90,7 +90,7 @@ if ($_GET["socid"]) print ''; print $langs->trans('CustomerCode').''; print $soc->code_client; - if ($soc->check_codeclient() <> 0) print ' '.$langs->trans("WrongCustomerCode"); + if ($soc->check_codeclient() <> 0) print ' ('.$langs->trans("WrongCustomerCode").')'; print ''; } @@ -99,7 +99,7 @@ if ($_GET["socid"]) print ''; print $langs->trans('SupplierCode').''; print $soc->code_fournisseur; - if ($soc->check_codefournisseur() <> 0) print ' '.$langs->trans("WrongSupplierCode"); + if ($soc->check_codefournisseur() <> 0) print ' ('.$langs->trans("WrongSupplierCode").')'; print ''; } diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php index e1e574294f2..ce5219edef4 100644 --- a/htdocs/societe/document.php +++ b/htdocs/societe/document.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2008 Laurent Destailleur + * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -155,7 +155,7 @@ if ($socid > 0) print ''; print $langs->trans('CustomerCode').''; print $societe->code_client; - if ($societe->check_codeclient() <> 0) print ' '.$langs->trans("WrongCustomerCode"); + if ($societe->check_codeclient() <> 0) print ' ('.$langs->trans("WrongCustomerCode").')'; print ''; } @@ -164,7 +164,7 @@ if ($socid > 0) print ''; print $langs->trans('SupplierCode').''; print $societe->code_fournisseur; - if ($societe->check_codefournisseur() <> 0) print ' '.$langs->trans("WrongSupplierCode"); + if ($societe->check_codefournisseur() <> 0) print ' ('.$langs->trans("WrongSupplierCode").')'; print ''; } diff --git a/htdocs/societe/socnote.php b/htdocs/societe/socnote.php index c642db22ba5..b51fcf8330f 100644 --- a/htdocs/societe/socnote.php +++ b/htdocs/societe/socnote.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2009 Laurent Destailleur + * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2005-2006 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -89,7 +89,7 @@ if ($socid > 0) print ''; print $langs->trans('CustomerCode').''; print $societe->code_client; - if ($societe->check_codeclient() <> 0) print ' '.$langs->trans("WrongCustomerCode"); + if ($societe->check_codeclient() <> 0) print ' ('.$langs->trans("WrongCustomerCode").')'; print ''; } @@ -98,7 +98,7 @@ if ($socid > 0) print ''; print $langs->trans('SupplierCode').''; print $societe->code_fournisseur; - if ($societe->check_codefournisseur() <> 0) print ' '.$langs->trans("WrongSupplierCode"); + if ($societe->check_codefournisseur() <> 0) print ' ('.$langs->trans("WrongSupplierCode").')'; print ''; }