si on a une société dont le nom est du style l'fournisseur on buggue sur le calcul du préfix qui serait alors l' ... une petite regexp perl pour éviter ce bug
This commit is contained in:
parent
d39c747d00
commit
0acf1a82db
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ class Societe {
|
|||
{
|
||||
if ( $this->db->num_rows() )
|
||||
{
|
||||
$nom = $this->db->result(0,0);
|
||||
$nom = preg_replace("/[[:punct:]]/","",$this->db->result(0,0));
|
||||
$this->db->free();
|
||||
|
||||
$prefix = strtoupper(substr($nom, 0, 2));
|
||||
|
|
|
|||
Loading…
Reference in a new issue