do not trim int
This commit is contained in:
parent
00dc78dd01
commit
fa78ab7c66
@ -10,6 +10,7 @@
|
||||
* Copyright (C) 2014-2015 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2015-2017 Ferran Marcet <fmarcet@2byte.es>
|
||||
* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
|
||||
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -2887,9 +2888,9 @@ class ContratLigne extends CommonObjectLine
|
||||
$error=0;
|
||||
|
||||
// Clean parameters
|
||||
$this->fk_contrat=trim($this->fk_contrat);
|
||||
$this->fk_product=trim($this->fk_product);
|
||||
$this->statut=(int) $this->statut;
|
||||
$this->fk_contrat = (int) $this->fk_contrat;
|
||||
$this->fk_product = (int) $this->fk_product;
|
||||
$this->statut = (int) $this->statut;
|
||||
$this->label=trim($this->label);
|
||||
$this->description=trim($this->description);
|
||||
$this->vat_src_code=trim($this->vat_src_code);
|
||||
@ -2899,7 +2900,7 @@ class ContratLigne extends CommonObjectLine
|
||||
$this->qty=trim($this->qty);
|
||||
$this->remise_percent=trim($this->remise_percent);
|
||||
$this->remise=trim($this->remise);
|
||||
$this->fk_remise_except=trim($this->fk_remise_except);
|
||||
$this->fk_remise_except = (int) $this->fk_remise_except;
|
||||
$this->subprice=price2num($this->subprice);
|
||||
$this->price_ht=price2num($this->price_ht);
|
||||
$this->total_ht=trim($this->total_ht);
|
||||
@ -2908,9 +2909,9 @@ class ContratLigne extends CommonObjectLine
|
||||
$this->total_localtax2=trim($this->total_localtax2);
|
||||
$this->total_ttc=trim($this->total_ttc);
|
||||
$this->info_bits=trim($this->info_bits);
|
||||
$this->fk_user_author=trim($this->fk_user_author);
|
||||
$this->fk_user_ouverture=trim($this->fk_user_ouverture);
|
||||
$this->fk_user_cloture=trim($this->fk_user_cloture);
|
||||
$this->fk_user_author = (int) $this->fk_user_author;
|
||||
$this->fk_user_ouverture = (int) $this->fk_user_ouverture;
|
||||
$this->fk_user_cloture = (int) $this->fk_user_cloture;
|
||||
$this->commentaire=trim($this->commentaire);
|
||||
//if (empty($this->subprice)) $this->subprice = 0;
|
||||
if (empty($this->price_ht)) $this->price_ht = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user