Le lien entre le paiement fournisseur et l'écriture bancaire générée est fait.
This commit is contained in:
parent
26a0431bd6
commit
fcd8018750
@ -100,16 +100,13 @@ class PaiementFourn
|
|||||||
$sql .= " VALUES (now(), '$this->datepaye', -$this->amount, '$this->author', '$label', '$this->paiementid', '$this->accountid', '$this->num_paiement')";
|
$sql .= " VALUES (now(), '$this->datepaye', -$this->amount, '$this->author', '$label', '$this->paiementid', '$this->accountid', '$this->num_paiement')";
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
|
|
||||||
// Pour l'instant ce code n'est pas actif et n'est pas nécessaire.
|
|
||||||
// Je l'activerais (Eldy) si besoin de retrouver le lien entre une transaction bancaire
|
|
||||||
// et la facture générée se fait sentir (fonction futures ?):
|
|
||||||
// Mise a jour fk_bank dans llx_paiement_fourn
|
// Mise a jour fk_bank dans llx_paiement_fourn
|
||||||
//if ($result) {
|
if ($result) {
|
||||||
// $this->bankid = $this->db->last_insert_id();
|
$this->bankid = $this->db->last_insert_id();
|
||||||
//
|
|
||||||
// $sql = "UPDATE ".MAIN_DB_PREFIX."paiementfourn SET fk_bank=$this->bankid WHERE rowid=$this->id";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."paiementfourn SET fk_bank=$this->bankid WHERE rowid=$this->id";
|
||||||
// $result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
//}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user