fix scrunitizer
This commit is contained in:
parent
40fb803ffd
commit
594497d085
@ -899,7 +899,6 @@ class Contrat extends CommonObject
|
|||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$modCodeContract = new $module();
|
$modCodeContract = new $module();
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($modCodeContract->code_auto)) {
|
if (!empty($modCodeContract->code_auto)) {
|
||||||
// Mise a jour ref
|
// Mise a jour ref
|
||||||
@ -911,6 +910,10 @@ class Contrat extends CommonObject
|
|||||||
$this->ref="(PROV".$this->id.")";
|
$this->ref="(PROV".$this->id.")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$error++;
|
||||||
|
$this->error='Failed to get PROV number';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
@ -1336,6 +1339,7 @@ class Contrat extends CommonObject
|
|||||||
function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1, $txlocaltax2, $fk_product, $remise_percent, $date_start, $date_end, $price_base_type='HT', $pu_ttc=0.0, $info_bits=0, $fk_fournprice=null, $pa_ht = 0,$array_options=0, $fk_unit = null, $rang=0)
|
function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1, $txlocaltax2, $fk_product, $remise_percent, $date_start, $date_end, $price_base_type='HT', $pu_ttc=0.0, $info_bits=0, $fk_fournprice=null, $pa_ht = 0,$array_options=0, $fk_unit = null, $rang=0)
|
||||||
{
|
{
|
||||||
global $user, $langs, $conf, $mysoc;
|
global $user, $langs, $conf, $mysoc;
|
||||||
|
$error=0;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::addline $desc, $pu_ht, $qty, $txtva, $txlocaltax1, $txlocaltax2, $fk_product, $remise_percent, $date_start, $date_end, $price_base_type, $pu_ttc, $info_bits, $rang");
|
dol_syslog(get_class($this)."::addline $desc, $pu_ht, $qty, $txtva, $txlocaltax1, $txlocaltax2, $fk_product, $remise_percent, $date_start, $date_end, $price_base_type, $pu_ttc, $info_bits, $rang");
|
||||||
|
|
||||||
@ -1544,6 +1548,8 @@ class Contrat extends CommonObject
|
|||||||
{
|
{
|
||||||
global $user, $conf, $langs, $mysoc;
|
global $user, $conf, $langs, $mysoc;
|
||||||
|
|
||||||
|
$error=0;
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
$qty=trim($qty);
|
$qty=trim($qty);
|
||||||
$desc=trim($desc);
|
$desc=trim($desc);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user