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
@ -231,7 +231,7 @@ class Societe {
|
|||||||
{
|
{
|
||||||
if ( $this->db->num_rows() )
|
if ( $this->db->num_rows() )
|
||||||
{
|
{
|
||||||
$nom = $this->db->result(0,0);
|
$nom = preg_replace("/[[:punct:]]/","",$this->db->result(0,0));
|
||||||
$this->db->free();
|
$this->db->free();
|
||||||
|
|
||||||
$prefix = strtoupper(substr($nom, 0, 2));
|
$prefix = strtoupper(substr($nom, 0, 2));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user