Merge pull request #6339 from atm-maxime/fix_numbering_display_error

Fix numbering was disaplying technical error instead of error message
This commit is contained in:
Laurent Destailleur 2017-02-02 00:49:18 +01:00 committed by GitHub
commit 18f3e11c10
3 changed files with 5 additions and 2 deletions

View File

@ -239,7 +239,8 @@ class Commande extends CommonOrder
}
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 "";
}
}

View File

@ -3016,7 +3016,8 @@ class Facture extends CommonInvoice
* set up mask.
*/
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 "";
}

View File

@ -1627,6 +1627,7 @@ class FactureFournisseur extends CommonInvoice
}
else
{
$this->error=$obj->error;
//dol_print_error($db,get_class($this)."::getNextNumRef ".$obj->error);
return false;
}