Fix: Removed warnings
This commit is contained in:
parent
0483c3265a
commit
31bfa1bddd
@ -95,17 +95,17 @@ class BonPrelevement extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add facture to withdrawal
|
* Add facture to withdrawal
|
||||||
*
|
*
|
||||||
* @param int $facture_id id invoice to add
|
* @param int $facture_id id invoice to add
|
||||||
* @param int $client_id id invoice customer
|
* @param int $client_id id invoice customer
|
||||||
* @param string $client_nom name of cliente
|
* @param string $client_nom name of cliente
|
||||||
* @param int $amount amount of invoice
|
* @param int $amount amount of invoice
|
||||||
* @param string $code_banque code of bank withdrawal
|
* @param string $code_banque code of bank withdrawal
|
||||||
* @param string $code_guichet code of bank's office
|
* @param string $code_guichet code of bank's office
|
||||||
* @param string $number bank account number
|
* @param string $number bank account number
|
||||||
* @param string $number_key number key of account number
|
* @param string $number_key number key of account number
|
||||||
* @return int >0 if OK, <0 if KO
|
* @return int >0 if OK, <0 if KO
|
||||||
*/
|
*/
|
||||||
function AddFacture($facture_id, $client_id, $client_nom, $amount, $code_banque, $code_guichet, $number, $number_key)
|
function AddFacture($facture_id, $client_id, $client_nom, $amount, $code_banque, $code_guichet, $number, $number_key)
|
||||||
{
|
{
|
||||||
@ -305,8 +305,7 @@ class BonPrelevement extends CommonObject
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_syslog("BonPrelevement::Fetch Erreur ");
|
dol_syslog("BonPrelevement::Fetch Erreur sql=".$sql, LOG_ERR);
|
||||||
dol_syslog($sql);
|
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -966,11 +965,8 @@ class BonPrelevement extends CommonObject
|
|||||||
$sql.= " WHERE rowid = ".$fac[1];
|
$sql.= " WHERE rowid = ".$fac[1];
|
||||||
|
|
||||||
dol_syslog("Bon-Prelevement::Create sql=".$sql, LOG_DEBUG);
|
dol_syslog("Bon-Prelevement::Create sql=".$sql, LOG_DEBUG);
|
||||||
if ($this->db->query($sql))
|
$resql=$this->db->query($sql);
|
||||||
{
|
if (! $resql)
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
dol_syslog("Erreur mise a jour des demandes");
|
dol_syslog("Erreur mise a jour des demandes");
|
||||||
@ -1212,14 +1208,14 @@ class BonPrelevement extends CommonObject
|
|||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
|
|
||||||
$esaeb19->agregaRecibo(
|
$esaeb19->agregaRecibo(
|
||||||
$idOrdenante,
|
$idOrdenante,
|
||||||
"idcliente".$i+1,
|
"idcliente".$i+1,
|
||||||
$obj->client_nom,
|
$obj->client_nom,
|
||||||
$obj->code_banque,
|
$obj->code_banque,
|
||||||
$obj->code_guichet,
|
$obj->code_guichet,
|
||||||
$obj->cle_rib,
|
$obj->cle_rib,
|
||||||
$obj->number,
|
$obj->number,
|
||||||
$obj->amount,
|
$obj->amount,
|
||||||
"Fra.".$obj->facnumber." ".$obj->amount
|
"Fra.".$obj->facnumber." ".$obj->amount
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1307,14 +1303,14 @@ class BonPrelevement extends CommonObject
|
|||||||
$row = $this->db->fetch_row($resql);
|
$row = $this->db->fetch_row($resql);
|
||||||
|
|
||||||
$this->EnregDestinataire(
|
$this->EnregDestinataire(
|
||||||
$row[0],
|
$row[0],
|
||||||
$row[1],
|
$row[1],
|
||||||
$row[2],
|
$row[2],
|
||||||
$row[3],
|
$row[3],
|
||||||
$row[4],
|
$row[4],
|
||||||
$row[5],
|
$row[5],
|
||||||
$row[6],
|
$row[6],
|
||||||
$row[7]
|
$row[7]
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->total = $this->total + $row[5];
|
$this->total = $this->total + $row[5];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user