From 588acfdb04ac27b6bfe2235fd2abbdc966f8cfcb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Feb 2004 02:09:18 +0000 Subject: [PATCH] =?UTF-8?q?D=E9sactivation=20de=20la=20mise=20=E0=20jour?= =?UTF-8?q?=20du=20champ=20fk=5Fbank=20dans=20paiement=20car=20la=20foncti?= =?UTF-8?q?on=20de=20lien=20n'est=20pas=20encore=20prete.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/paiement.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 71141605dc9..ebe77dcff1d 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -71,13 +71,14 @@ if ($HTTP_POST_VARS["action"] == 'add_paiement') $label = "Règlement facture"; - //On ajoute une ligne dans la table llx_bank pour qu'ensuite on puisse rapprocher le compte ! + // On ajoute une ligne dans la table llx_bank pour qu'ensuite on puisse rapprocher le compte ! $acc = new Account($db, $HTTP_POST_VARS["accountid"]); //paiementid est correct, il contient "CHQ ou VIR par exemple" $bank_line_id = $acc->addline($datepaye, $HTTP_POST_VARS["paiementid"], $label, $paiement->montant, $num_paiement); // Mise a jour fk_bank dans llx_paiement. On connait ainsi le paiement qui a généré l'écriture bancaire - $acc->update_fk_bank($paiement_id,$bank_line_id); + $pai = new Paiement($db); + //$pai->update_fk_bank($paiement_id,$bank_line_id); // TODO Méthode à creer $acc->add_url_line($bank_line_id, $paiement_id, DOL_URL_ROOT.'/compta/paiement/fiche.php?id=', "(paiement)"); $acc->add_url_line($bank_line_id, $fac->client->id, DOL_URL_ROOT.'/compta/fiche.php?socid=', $fac->client->nom);