From 405190c3c247286360a17e23d5194ff5639f298b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 6 Feb 2004 23:22:11 +0000 Subject: [PATCH] =?UTF-8?q?Le=20code=20pour=20lier=20un=20paiement=20=E0?= =?UTF-8?q?=20la=20transaction=20bancaire=20g=E9n=E9r=E9=20est=20pr=EAt=20?= =?UTF-8?q?=E0=20=EAtre=20d=E9comment=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 2dfd97a5293..566c1c46b8f 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1,7 +1,7 @@ - * Copyright (C) 2004 Éric Seigne - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004 Éric Seigne + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -204,6 +204,11 @@ if ($action == 'add_paiement') $acc = new Account($db, $HTTP_POST_VARS["accountid"]); //paiementid est correct, il contient "CHQ ou VIR par exemple" $bank_line_id = $acc->addline($datepaye, $paiementid, $label, $amount, $num_paiement); + + // TODO + // Mise a jour fk_bank dans llx_paiement + // $acc->update_fk_bank($paiement_id,$bank_line_id); + $acc->add_url_line($bank_line_id, $fac->id, DOL_URL_ROOT.'/compta/facture.php?facid=', $fac->ref); $acc->add_url_line($bank_line_id, $fac->client->id, DOL_URL_ROOT.'/compta/fiche.php?socid=', $fac->client->nom); }