From e9fb691877d37e4e870e8275bf144ca35e6bd112 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Feb 2008 03:58:13 +0000 Subject: [PATCH] New: Naf allows 5 chars --- ChangeLog | 2 ++ htdocs/societe.class.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 51dd299b5bd..fb22f4eda82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,8 @@ For users: - Change in tanslation to make Dolibarr easier to understand. - Add a warning when sending a mail from a user with no email defined. - Added clicktodial module. +- French NAF code can accept 5 chars. +- Supplier prices can be input with or without taxe. - Other minor changes (features, look, fixes) For developers: diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 6d679dad3f2..13ba048bb4c 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -1925,7 +1925,7 @@ class Societe { if ($idprof==1) $formlength=9; if ($idprof==2) $formlength=14; - if ($idprof==3) $formlength=4; + if ($idprof==3) $formlength=5; // 4 chiffres et 1 lettre depuis janvier if ($idprof==4) $formlength=12; } $selected='';