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); }