From c9a0c178344bb7fee89fe589d3438904a64edd85 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Jul 2010 17:21:24 +0000 Subject: [PATCH] Qual: Normalize code --- htdocs/compta/paiement/cheque/fiche.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php index bf2570f8e1a..f082e4f1ba4 100644 --- a/htdocs/compta/paiement/cheque/fiche.php +++ b/htdocs/compta/paiement/cheque/fiche.php @@ -64,7 +64,7 @@ $dir=$conf->banque->dir_output.'/bordereau/'; if ($_GET['action'] == 'create' && $_GET["accountid"] > 0 && $user->rights->banque->cheque) { $remisecheque = new RemiseCheque($db); - $result = $remisecheque->Create($user, $_GET["accountid"]); + $result = $remisecheque->create($user, $_GET["accountid"]); if ($result > 0) { Header("Location: fiche.php?id=".$remisecheque->id); @@ -80,7 +80,7 @@ if ($_GET['action'] == 'remove' && $_GET["id"] > 0 && $_GET["lineid"] > 0 && $us { $remisecheque = new RemiseCheque($db); $remisecheque->id = $_GET["id"]; - $result = $remisecheque->RemoveCheck($_GET["lineid"]); + $result = $remisecheque->removeCheck($_GET["lineid"]); if ($result === 0) { Header("Location: fiche.php?id=".$remisecheque->id); @@ -96,7 +96,7 @@ if ($_REQUEST['action'] == 'confirm_delete' && $_REQUEST['confirm'] == 'yes' && { $remisecheque = new RemiseCheque($db); $remisecheque->id = $_GET["id"]; - $result = $remisecheque->Delete(); + $result = $remisecheque->delete(); if ($result == 0) { Header("Location: index.php"); @@ -111,8 +111,8 @@ if ($_REQUEST['action'] == 'confirm_delete' && $_REQUEST['confirm'] == 'yes' && if ($_REQUEST['action'] == 'confirm_valide' && $_REQUEST['confirm'] == 'yes' && $user->rights->banque->cheque) { $remisecheque = new RemiseCheque($db); - $result = $remisecheque->Fetch($_GET["id"]); - $result = $remisecheque->Validate($user); + $result = $remisecheque->fetch($_GET["id"]); + $result = $remisecheque->validate($user); if ($result >= 0) { Header("Location: fiche.php?id=".$remisecheque->id); @@ -127,7 +127,7 @@ if ($_REQUEST['action'] == 'confirm_valide' && $_REQUEST['confirm'] == 'yes' && if ($_POST['action'] == 'builddoc' && $user->rights->banque->cheque) { $remisecheque = new RemiseCheque($db); - $result = $remisecheque->Fetch($_GET["id"]); + $result = $remisecheque->fetch($_GET["id"]); /*if ($_REQUEST['model']) {