Fix numbering was disaplying technical error instead of error message
This commit is contained in:
parent
fd55ded996
commit
7b6488b1c7
@ -239,7 +239,8 @@ class Commande extends CommonOrder
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_print_error($this->db,get_class($this)."::getNextNumRef ".$obj->error);
|
$this->error=$obj->error;
|
||||||
|
//dol_print_error($this->db,get_class($this)."::getNextNumRef ".$obj->error);
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3003,7 +3003,8 @@ class Facture extends CommonInvoice
|
|||||||
* set up mask.
|
* set up mask.
|
||||||
*/
|
*/
|
||||||
if ($mode != 'last' && !$numref) {
|
if ($mode != 'last' && !$numref) {
|
||||||
dol_print_error($this->db,"Facture::getNextNumRef ".$obj->error);
|
$this->error=$obj->error;
|
||||||
|
//dol_print_error($this->db,"Facture::getNextNumRef ".$obj->error);
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1627,6 +1627,7 @@ class FactureFournisseur extends CommonInvoice
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$this->error=$obj->error;
|
||||||
//dol_print_error($db,get_class($this)."::getNextNumRef ".$obj->error);
|
//dol_print_error($db,get_class($this)."::getNextNumRef ".$obj->error);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user