Fix arg type to trim() with cast
This commit is contained in:
parent
4d4d3ba175
commit
be7585d1e2
1 changed files with 5 additions and 5 deletions
|
|
@ -1373,7 +1373,7 @@ class Societe extends CommonObject
|
|||
$this->address = trim((string) $this->address);
|
||||
$this->zip = trim((string) $this->zip);
|
||||
$this->town = trim((string) $this->town);
|
||||
$this->state_id = (is_numeric($this->state_id)) ? (int) trim($this->state_id) : 0;
|
||||
$this->state_id = (is_numeric($this->state_id)) ? (int) trim((string) $this->state_id) : 0;
|
||||
$this->country_id = ($this->country_id > 0) ? $this->country_id : 0;
|
||||
$this->phone = trim((string) $this->phone);
|
||||
$this->phone = preg_replace("/\s/", "", $this->phone);
|
||||
|
|
@ -1399,7 +1399,7 @@ class Societe extends CommonObject
|
|||
$this->order_min_amount = price2num($this->order_min_amount);
|
||||
$this->supplier_order_min_amount = price2num($this->supplier_order_min_amount);
|
||||
|
||||
$this->tva_assuj = (is_numeric($this->tva_assuj)) ? (int) trim($this->tva_assuj) : 0;
|
||||
$this->tva_assuj = (is_numeric($this->tva_assuj)) ? (int) trim((string) $this->tva_assuj) : 0;
|
||||
$this->tva_intra = dol_sanitizeFileName($this->tva_intra, '');
|
||||
$this->vat_reverse_charge = empty($this->vat_reverse_charge) ? 0 : 1;
|
||||
if (empty($this->status)) {
|
||||
|
|
@ -1421,10 +1421,10 @@ class Societe extends CommonObject
|
|||
$this->localtax1_value = trim($this->localtax1_value);
|
||||
$this->localtax2_value = trim($this->localtax2_value);
|
||||
|
||||
$this->capital = ($this->capital != '') ? (float) price2num(trim($this->capital)) : null;
|
||||
$this->capital = ($this->capital != '') ? (float) price2num(trim((string) $this->capital)) : null;
|
||||
|
||||
$this->effectif_id = trim($this->effectif_id);
|
||||
$this->forme_juridique_code = trim($this->forme_juridique_code);
|
||||
$this->effectif_id = trim((string) $this->effectif_id);
|
||||
$this->forme_juridique_code = trim((string) $this->forme_juridique_code);
|
||||
|
||||
//Gencod
|
||||
$this->barcode = trim($this->barcode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue