Fix: Error when capital is not a number
This commit is contained in:
parent
d2b9d736cd
commit
5b24b7cf46
@ -357,7 +357,6 @@ class Societe extends CommonObject
|
|||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
$this->id=$id;
|
$this->id=$id;
|
||||||
$this->capital=trim($this->capital);
|
|
||||||
$this->nom=trim($this->nom);
|
$this->nom=trim($this->nom);
|
||||||
$this->adresse=trim($this->adresse); // TODO obsolete
|
$this->adresse=trim($this->adresse); // TODO obsolete
|
||||||
$this->address=trim($this->address);
|
$this->address=trim($this->address);
|
||||||
@ -386,8 +385,8 @@ class Societe extends CommonObject
|
|||||||
$this->localtax1_assuj=trim($this->localtax1_assuj);
|
$this->localtax1_assuj=trim($this->localtax1_assuj);
|
||||||
$this->localtax2_assuj=trim($this->localtax2_assuj);
|
$this->localtax2_assuj=trim($this->localtax2_assuj);
|
||||||
|
|
||||||
$this->capital=trim($this->capital);
|
$this->capital=price2num(trim($this->capital),'MT');
|
||||||
if (strlen($this->capital) == 0) $this->capital = 0;
|
if (empty($this->capital)) $this->capital = 0;
|
||||||
|
|
||||||
$this->effectif_id=trim($this->effectif_id);
|
$this->effectif_id=trim($this->effectif_id);
|
||||||
$this->forme_juridique_code=trim($this->forme_juridique_code);
|
$this->forme_juridique_code=trim($this->forme_juridique_code);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user