diff options
author | polo <ordipolo@gmx.fr> | 2023-03-06 12:54:43 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2023-03-06 12:54:43 +0100 |
commit | 1766952a8499919a1275b0214f6ebda8dfc812e2 (patch) | |
tree | ad5bd20b8c5b29a26d1b63071d18af688a0b0df4 /src/model | |
parent | b9c74de6d12ef40ab4baf67303ab22a10fcd5b32 (diff) | |
download | AppliGestionPHP-1766952a8499919a1275b0214f6ebda8dfc812e2.zip |
Config.ini renseigner '' = valeur par défaut
Diffstat (limited to 'src/model')
-rw-r--r-- | src/model/Prestations.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/Prestations.php b/src/model/Prestations.php index 2011dbe..d246a3d 100644 --- a/src/model/Prestations.php +++ b/src/model/Prestations.php | |||
@@ -93,6 +93,7 @@ class Prestations extends Model | |||
93 | public function makeCodePresta(Dates $Date, string $code_client) | 93 | public function makeCodePresta(Dates $Date, string $code_client) |
94 | { | 94 | { |
95 | // on récupère un tableau contenant toutes les prestations d'un client tous types confondus (devis, facture, cesu, location, enregistrement sans vente) | 95 | // on récupère un tableau contenant toutes les prestations d'un client tous types confondus (devis, facture, cesu, location, enregistrement sans vente) |
96 | // inconvénient: il peut y avoir plusieurs prestations avec le même numéro au compteur, à améliorer | ||
96 | $combientieme_fois = count($this->find(['ID_client' => $this->ID_client])) + 1; | 97 | $combientieme_fois = count($this->find(['ID_client' => $this->ID_client])) + 1; |
97 | 98 | ||
98 | $array_code = [$Date->getYear(), $Date->getMonth(), $Date->getDay(), $code_client, $this->type_presta, $combientieme_fois]; | 99 | $array_code = [$Date->getYear(), $Date->getMonth(), $Date->getDay(), $code_client, $this->type_presta, $combientieme_fois]; |