From eec68dcbb2f04f58aa454a5b1b0d2ad82ab66e34 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 13 Jun 2004 20:56:04 +0000 Subject: [PATCH] Fix: Corrections plantage sur paiement charges sociales --- htdocs/compta/bank/rappro.php | 13 ++++++++++--- htdocs/compta/paiement_charge.php | 7 ++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/htdocs/compta/bank/rappro.php b/htdocs/compta/bank/rappro.php index ebf6a2a835b..0bb2b5c6b8d 100644 --- a/htdocs/compta/bank/rappro.php +++ b/htdocs/compta/bank/rappro.php @@ -100,8 +100,6 @@ else $acct = new Account($db); $acct->fetch($account); -print_titre('Rapprochement bancaire compte : '.$acct->label.''); -print '
'; $sql = "SELECT b.rowid,".$db->pdate("b.dateo")." as do, b.amount, b.label, b.rappro, b.num_releve, b.num_chq, b.fk_type"; $sql .= " FROM ".MAIN_DB_PREFIX."bank as b WHERE rappro=0 AND fk_account=$account"; @@ -115,9 +113,15 @@ if ($result) $num = $db->num_rows(); if ($num == 0) { - print "
Pas de transactions saisies en attente de rapprochement, pour ce compte bancaire.
"; + //print "
Pas ou plus de transactions saisies, en attente de rapprochement, pour ce compte bancaire.
"; + header("Location: /compta/bank/account.php?account=".$account); + exit; } else { + + print_titre('Rapprochement bancaire compte : '.$acct->label.''); + print '
'; + print ''; print ""; print ""; @@ -207,6 +211,9 @@ if ($result) if ($num != 0) { print "
DateDescription
"; } + +} else { + print "Erreur : ".$db->error()." : ".$sql."
\n"; } print '
Dernier relevé : '.$last_releve.''; diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php index eec59ef362d..9eb880d7f23 100755 --- a/htdocs/compta/paiement_charge.php +++ b/htdocs/compta/paiement_charge.php @@ -148,12 +148,12 @@ if ($_GET["action"] == 'create') print_titre("Emettre un paiement d'une charge"); print "
\n"; - + print "
\n"; print "id\">"; print ''; print ''; - + print ""; print '
Charge
Numéro :'; @@ -208,7 +208,7 @@ if ($_GET["action"] == 'create') print "
Compte à créditer :
'; print '';