From 9d8133643773912d54fb0c7d86ef04e6acffa8c9 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 25 Feb 2023 02:27:22 +0100 Subject: =?UTF-8?q?lire=20tables,=20modifications=20BDD,=20cr=C3=A9ation?= =?UTF-8?q?=20documents=20et=20enveloppes=20latex,=20suppression=20de=20tr?= =?UTF-8?q?aits.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/DevisFactures.php | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'src/model/DevisFactures.php') diff --git a/src/model/DevisFactures.php b/src/model/DevisFactures.php index ff80960..92a5443 100644 --- a/src/model/DevisFactures.php +++ b/src/model/DevisFactures.php @@ -13,41 +13,28 @@ class DevisFactures extends Model protected $OS; protected $donnees; protected $cles_licences; - protected $temps; protected $total_main_d_oeuvre; protected $pieces; protected $total_pieces; protected $deplacement; protected $total_HT; + protected $delai_livraison; protected $validite_devis; protected $signature_devis; - use ModelChildren; // pour hydrateFromForm() + //~ use ModelChildren; - public function __construct(int $ID_presta, string $table) + public function __construct(string $table) { - $this->ID_presta = $ID_presta; $this->table = $table; // deux tables séparées devis et factures } // setters - //~ public function setID() -> dans le trait ModelChildren - public function setIDPresta(int $value) { $this->ID_presta = $value; return($this); } - public function setValiditedevis(string $value) - { - $this->validite_devis = $value; - return($this); - } - public function setSignatureDevis(string $value) - { - $this->signature_devis = $value; - return($this); - } public function setTaches(string $value) { $this->taches = $value; @@ -73,11 +60,11 @@ class DevisFactures extends Model $this->cles_licences = $value; return($this); } - public function setTemps(string $value) - { - $this->temps = $value; - return($this); - } + //~ public function setTemps(string $value) + //~ { + //~ $this->temps = $value; + //~ return($this); + //~ } public function setTotalMainDOeuvre($value) { $value = str_replace(',', '.', $value); @@ -107,6 +94,21 @@ class DevisFactures extends Model $this->total_HT = (float) $value; return($this); } + public function setDelaiLivraison(string $value) + { + $this->delai_livraison = $value; + return($this); + } + public function setValiditedevis(string $value) + { + $this->validite_devis = $value; + return($this); + } + public function setSignatureDevis(string $value) + { + $this->signature_devis = $value; + return($this); + } //~ public function newRow(array $input) //~ { -- cgit v1.2.3