diff options
| author | polo <ordipolo@gmx.fr> | 2023-02-25 02:27:22 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2023-02-25 02:27:22 +0100 |
| commit | 9d8133643773912d54fb0c7d86ef04e6acffa8c9 (patch) | |
| tree | 8048a9eeded086e9e9c00ce0a68b9454c171d085 /src/model/DevisFactures.php | |
| parent | 209c0b93c529356a094d7133a717e8f6ee6d90c6 (diff) | |
| download | AppliGestionPHP-9d8133643773912d54fb0c7d86ef04e6acffa8c9.tar.gz AppliGestionPHP-9d8133643773912d54fb0c7d86ef04e6acffa8c9.tar.bz2 AppliGestionPHP-9d8133643773912d54fb0c7d86ef04e6acffa8c9.zip | |
lire tables, modifications BDD, création documents et enveloppes latex, suppression de traits.php
Diffstat (limited to 'src/model/DevisFactures.php')
| -rw-r--r-- | src/model/DevisFactures.php | 44 |
1 files changed, 23 insertions, 21 deletions
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 | |||
| 13 | protected $OS; | 13 | protected $OS; |
| 14 | protected $donnees; | 14 | protected $donnees; |
| 15 | protected $cles_licences; | 15 | protected $cles_licences; |
| 16 | protected $temps; | ||
| 17 | protected $total_main_d_oeuvre; | 16 | protected $total_main_d_oeuvre; |
| 18 | protected $pieces; | 17 | protected $pieces; |
| 19 | protected $total_pieces; | 18 | protected $total_pieces; |
| 20 | protected $deplacement; | 19 | protected $deplacement; |
| 21 | protected $total_HT; | 20 | protected $total_HT; |
| 21 | protected $delai_livraison; | ||
| 22 | protected $validite_devis; | 22 | protected $validite_devis; |
| 23 | protected $signature_devis; | 23 | protected $signature_devis; |
| 24 | 24 | ||
| 25 | use ModelChildren; // pour hydrateFromForm() | 25 | //~ use ModelChildren; |
| 26 | 26 | ||
| 27 | public function __construct(int $ID_presta, string $table) | 27 | public function __construct(string $table) |
| 28 | { | 28 | { |
| 29 | $this->ID_presta = $ID_presta; | ||
| 30 | $this->table = $table; // deux tables séparées devis et factures | 29 | $this->table = $table; // deux tables séparées devis et factures |
| 31 | } | 30 | } |
| 32 | 31 | ||
| 33 | // setters | 32 | // setters |
| 34 | //~ public function setID() -> dans le trait ModelChildren | ||
| 35 | |||
| 36 | public function setIDPresta(int $value) | 33 | public function setIDPresta(int $value) |
| 37 | { | 34 | { |
| 38 | $this->ID_presta = $value; | 35 | $this->ID_presta = $value; |
| 39 | return($this); | 36 | return($this); |
| 40 | } | 37 | } |
| 41 | public function setValiditedevis(string $value) | ||
| 42 | { | ||
| 43 | $this->validite_devis = $value; | ||
| 44 | return($this); | ||
| 45 | } | ||
| 46 | public function setSignatureDevis(string $value) | ||
| 47 | { | ||
| 48 | $this->signature_devis = $value; | ||
| 49 | return($this); | ||
| 50 | } | ||
| 51 | public function setTaches(string $value) | 38 | public function setTaches(string $value) |
| 52 | { | 39 | { |
| 53 | $this->taches = $value; | 40 | $this->taches = $value; |
| @@ -73,11 +60,11 @@ class DevisFactures extends Model | |||
| 73 | $this->cles_licences = $value; | 60 | $this->cles_licences = $value; |
| 74 | return($this); | 61 | return($this); |
| 75 | } | 62 | } |
| 76 | public function setTemps(string $value) | 63 | //~ public function setTemps(string $value) |
| 77 | { | 64 | //~ { |
| 78 | $this->temps = $value; | 65 | //~ $this->temps = $value; |
| 79 | return($this); | 66 | //~ return($this); |
| 80 | } | 67 | //~ } |
| 81 | public function setTotalMainDOeuvre($value) | 68 | public function setTotalMainDOeuvre($value) |
| 82 | { | 69 | { |
| 83 | $value = str_replace(',', '.', $value); | 70 | $value = str_replace(',', '.', $value); |
| @@ -107,6 +94,21 @@ class DevisFactures extends Model | |||
| 107 | $this->total_HT = (float) $value; | 94 | $this->total_HT = (float) $value; |
| 108 | return($this); | 95 | return($this); |
| 109 | } | 96 | } |
| 97 | public function setDelaiLivraison(string $value) | ||
| 98 | { | ||
| 99 | $this->delai_livraison = $value; | ||
| 100 | return($this); | ||
| 101 | } | ||
| 102 | public function setValiditedevis(string $value) | ||
| 103 | { | ||
| 104 | $this->validite_devis = $value; | ||
| 105 | return($this); | ||
| 106 | } | ||
| 107 | public function setSignatureDevis(string $value) | ||
| 108 | { | ||
| 109 | $this->signature_devis = $value; | ||
| 110 | return($this); | ||
| 111 | } | ||
| 110 | 112 | ||
| 111 | //~ public function newRow(array $input) | 113 | //~ public function newRow(array $input) |
| 112 | //~ { | 114 | //~ { |
