From 9c9cda0ac823863c6760d77984ea2ecaf87c52ab Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 16 Jul 2024 05:04:13 +0200 Subject: =?UTF-8?q?renommage=20complet=20des=20ID=20en=20id:=20variables,?= =?UTF-8?q?=20m=C3=A9thodes,=20BDD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sections/2_service.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/sections/2_service.php') diff --git a/src/sections/2_service.php b/src/sections/2_service.php index 78e4dd4..3dd620d 100644 --- a/src/sections/2_service.php +++ b/src/sections/2_service.php @@ -48,7 +48,7 @@ function newService($Client): array // $Client est un Client ou null return [0, null]; // menu principal } - $Presta = new Prestations($Client->getID()); + $Presta = new Prestations($Client->getId()); $Presta->setDate($Date->getTimestamp()); // un entier pour la BDD // formulaire - étape 2/3 @@ -67,7 +67,7 @@ function newService($Client): array // $Client est un Client ou null break; case ZenitySetup::$menu_enregistrement_entrees[2]: // "Facture à partir d'un devis" // recherche du devis - $Quotation = getServices($Client, 'devis'); // rechercher un devis, type 'devis' spécifié pour $Presta->getIDsByIdClient() + $Quotation = getServices($Client, 'devis'); // rechercher un devis, type 'devis' spécifié pour $Presta->getIdsByIdClient() if(!is_object($Quotation) || get_class($Quotation) != 'Prestations' || $Quotation->getTypePresta() != 'devis') { echo "debug: annulation sélection client\n"; @@ -124,7 +124,7 @@ function newService($Client): array // $Client est un Client ou null if($choix_niv2 === ZenitySetup::$menu_enregistrement_entrees[2]) // cas: facture à partir d'un devis { // devis retrouvé ($Quotation est déjà hydraté) - $QuotationDetails->setIDPresta($Quotation->getID()); + $QuotationDetails->setIdPresta($Quotation->getId()); $QuotationDetails->hydrate($QuotationDetails->getDetailsByIdPresta()); // facture avec le devis @@ -148,13 +148,13 @@ function newService($Client): array // $Client est un Client ou null // mise à jour base de données $Presta->create(); - $Presta->setID(); // sans paramètre, exécute un $this->db->lastInsertId() + $Presta->setId(); // sans paramètre, exécute un $this->db->lastInsertId() if(isset($PrestaDetails)) // presta vendue { - $PrestaDetails->setIDPresta($Presta->getID()); // d'un objet à l'autre + $PrestaDetails->setIdPresta($Presta->getId()); // d'un objet à l'autre $PrestaDetails->create(); - $PrestaDetails->setID(); // sans paramètre, exécute un $this->db->lastInsertId() + $PrestaDetails->setId(); // sans paramètre, exécute un $this->db->lastInsertId() } // si encore de type prospect, devient un type client -- cgit v1.2.3