diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 37892228e9d..a7a3442bcd9 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -1009,7 +1009,7 @@ if ($id > 0 || ! empty($ref))
$rowspan=9;
- // Societe
+ // Company
print '
| '.$langs->trans('Company').' | '.$societe->getNomUrl(1).' | ';
print '
';
diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php
index 7bc39f37caa..878359f6917 100644
--- a/htdocs/commande/commande.class.php
+++ b/htdocs/commande/commande.class.php
@@ -1601,14 +1601,14 @@ class Commande extends CommonObject
}
else
{
- dol_syslog('Commande::cond_reglement Erreur '.$sql.' - '.$this->db->error());
- $this->error=$this->db->error();
+ dol_syslog('Commande::cond_reglement Erreur '.$sql.' - '.$this->db->error(), LOG_ERR);
+ $this->error=$this->db->lasterror();
return -1;
}
}
else
{
- dol_syslog('Commande::cond_reglement, etat commande incompatible');
+ dol_syslog('Commande::cond_reglement, etat commande incompatible', LOG_ERR);
$this->error='Etat commande incompatible '.$this->statut;
return -2;
}
@@ -1635,24 +1635,24 @@ class Commande extends CommonObject
}
else
{
- dol_syslog('Commande::mode_reglement Erreur '.$sql.' - '.$this->db->error());
- $this->error=$this->db->error();
+ dol_syslog('Commande::mode_reglement Erreur '.$sql.' - '.$this->db->error(), LOG_ERR);
+ $this->error=$this->db->lasterror();
return -1;
}
}
else
{
- dol_syslog('Commande::mode_reglement, etat facture incompatible');
+ dol_syslog('Commande::mode_reglement, etat facture incompatible', LOG_ERR);
$this->error='Etat commande incompatible '.$this->statut;
return -2;
}
}
/**
- * \brief Positionne numero reference commande client
- * \param user Utilisateur qui modifie
- * \param ref_client Reference commande client
- * \return int <0 si ko, >0 si ok
+ * \brief Set customer ref
+ * \param user User that make change
+ * \param ref_client Customer ref
+ * \return int <0 if KO, >0 if OK
*/
function set_ref_client($user, $ref_client)
{
@@ -1669,8 +1669,8 @@ class Commande extends CommonObject
}
else
{
- $this->error=$this->db->error();
- dol_syslog('Commande::set_ref_client Erreur '.$this->error.' - '.$sql);
+ $this->error=$this->db->lasterror();
+ dol_syslog('Commande::set_ref_client Erreur '.$this->error.' - '.$sql, LOG_ERR);
return -2;
}
}
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index f167f655382..5b9a0544f54 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -1297,12 +1297,12 @@ else
print '';
print '';
- if ($user->rights->commande->creer && $_GET['action'] == 'RefCustomerOrder')
+ if ($user->rights->commande->creer && $_GET['action'] == 'refcustomer')
{
- print ' |