From c5af0b97704d3720987f578498303ea30c96b4aa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Jul 2010 17:14:50 +0000 Subject: [PATCH] Qual: Normalize code --- .../cheque/class/remisecheque.class.php | 22 +++++++++---------- htdocs/compta/paiement/cheque/fiche.php | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/htdocs/compta/paiement/cheque/class/remisecheque.class.php b/htdocs/compta/paiement/cheque/class/remisecheque.class.php index ecb005f5b5f..faa90d168fa 100644 --- a/htdocs/compta/paiement/cheque/class/remisecheque.class.php +++ b/htdocs/compta/paiement/cheque/class/remisecheque.class.php @@ -117,7 +117,7 @@ class RemiseCheque extends CommonObject * \param account_id Compte bancaire concerne * \return int <0 if KO, >0 if OK */ - function create($user, $account_id) + function Create($user, $account_id) { global $conf; @@ -220,7 +220,7 @@ class RemiseCheque extends CommonObject if ($this->id > 0 && $this->errno == 0) { - if ($this->updateAmount() <> 0) + if ($this->UpdateAmount() <> 0) { $this->errno = -1027; dol_syslog("RemiseCheque::Create ERREUR ($this->errno)"); @@ -254,7 +254,7 @@ class RemiseCheque extends CommonObject \brief Supprime la remise en base \param user utilisateur qui effectue l'operation */ - function delete($user='') + function Delete($user='') { global $conf; @@ -308,7 +308,7 @@ class RemiseCheque extends CommonObject * \brief Validate receipt * \param user User */ - function validate($user) + function Validate($user) { global $langs,$conf; @@ -530,7 +530,7 @@ class RemiseCheque extends CommonObject * \brief Mets a jour le montant total * \return int, 0 en cas de succes */ - function updateAmount() + function UpdateAmount() { global $conf; @@ -563,13 +563,13 @@ class RemiseCheque extends CommonObject if (!$resql) { $this->errno = -1030; - dol_syslog("RemiseCheque::updateAmount ERREUR UPDATE ($this->errno)"); + dol_syslog("RemiseCheque::UpdateAmount ERREUR UPDATE ($this->errno)"); } } else { $this->errno = -1031; - dol_syslog("RemiseCheque::updateAmount ERREUR SELECT ($this->errno)"); + dol_syslog("RemiseCheque::UpdateAmount ERREUR SELECT ($this->errno)"); } if ($this->errno === 0) @@ -579,7 +579,7 @@ class RemiseCheque extends CommonObject else { $this->db->rollback(); - dol_syslog("RemiseCheque::updateAmount ROLLBACK ($this->errno)"); + dol_syslog("RemiseCheque::UpdateAmount ROLLBACK ($this->errno)"); } return $this->errno; @@ -590,7 +590,7 @@ class RemiseCheque extends CommonObject \param user utilisateur qui effectue l'operation \param account_id Compte bancaire concerne */ - function removeCheck($account_id) + function RemoveCheck($account_id) { $this->errno = 0; @@ -604,12 +604,12 @@ class RemiseCheque extends CommonObject $resql = $this->db->query($sql); if ($resql) { - $this->updateAmount(); + $this->UpdateAmount(); } else { $this->errno = -1032; - dol_syslog("RemiseCheque::removeCheck ERREUR UPDATE ($this->errno)"); + dol_syslog("RemiseCheque::RemoveCheck ERREUR UPDATE ($this->errno)"); } } return 0; diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php index 9d7e5ca30c7..bf2570f8e1a 100644 --- a/htdocs/compta/paiement/cheque/fiche.php +++ b/htdocs/compta/paiement/cheque/fiche.php @@ -111,7 +111,7 @@ 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->Fetch($_GET["id"]); $result = $remisecheque->Validate($user); if ($result >= 0) { @@ -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']) {