Fix phpcs
This commit is contained in:
parent
ffcf8edd19
commit
d21ad72e4a
@ -138,13 +138,11 @@ class RejetPrelevement
|
|||||||
}
|
}
|
||||||
|
|
||||||
$num = count($facs);
|
$num = count($facs);
|
||||||
for ($i = 0; $i < $num; $i++)
|
for ($i = 0; $i < $num; $i++) {
|
||||||
{
|
if ($this->type == 'bank-transfer') {
|
||||||
if($this->type == 'bank-transfer'){
|
|
||||||
$fac = new FactureFournisseur($this->db);
|
$fac = new FactureFournisseur($this->db);
|
||||||
$pai = new PaiementFourn($this->db);
|
$pai = new PaiementFourn($this->db);
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
$fac = new Facture($this->db);
|
$fac = new Facture($this->db);
|
||||||
$pai = new Paiement($this->db);
|
$pai = new Paiement($this->db);
|
||||||
}
|
}
|
||||||
@ -293,10 +291,8 @@ class RejetPrelevement
|
|||||||
//Returns all invoices of a withdrawal
|
//Returns all invoices of a withdrawal
|
||||||
$sql = "SELECT f.rowid as facid, pl.amount";
|
$sql = "SELECT f.rowid as facid, pl.amount";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."prelevement_facture as pf";
|
$sql .= " FROM ".MAIN_DB_PREFIX."prelevement_facture as pf";
|
||||||
//$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."facture as f ON (pf.fk_facture = f.rowid)";
|
|
||||||
if ($this->type == 'bank-transfer') $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."facture_fourn as f ON (pf.fk_facture_fourn = f.rowid)";
|
if ($this->type == 'bank-transfer') $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."facture_fourn as f ON (pf.fk_facture_fourn = f.rowid)";
|
||||||
else $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."facture as f ON (pf.fk_facture = f.rowid)";
|
else $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."facture as f ON (pf.fk_facture = f.rowid)";
|
||||||
|
|
||||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."prelevement_lignes as pl ON (pf.fk_prelevement_lignes = pl.rowid)";
|
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."prelevement_lignes as pl ON (pf.fk_prelevement_lignes = pl.rowid)";
|
||||||
$sql .= " WHERE pf.fk_prelevement_lignes = ".$this->id;
|
$sql .= " WHERE pf.fk_prelevement_lignes = ".$this->id;
|
||||||
$sql .= " AND f.entity IN (".getEntity('invoice').")";
|
$sql .= " AND f.entity IN (".getEntity('invoice').")";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user