diff options
author | polo <ordipolo@gmx.fr> | 2023-02-25 17:30:20 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2023-02-25 17:30:20 +0100 |
commit | b9c74de6d12ef40ab4baf67303ab22a10fcd5b32 (patch) | |
tree | dea294f55810471ca2165811515dcd3c8d0e006e /src/model/Prestations.php | |
parent | 9d8133643773912d54fb0c7d86ef04e6acffa8c9 (diff) | |
download | AppliGestionPHP-b9c74de6d12ef40ab4baf67303ab22a10fcd5b32.zip |
document locations, correction de pas mal de problèmes
Diffstat (limited to 'src/model/Prestations.php')
-rw-r--r-- | src/model/Prestations.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/Prestations.php b/src/model/Prestations.php index ddd785b..2011dbe 100644 --- a/src/model/Prestations.php +++ b/src/model/Prestations.php | |||
@@ -95,7 +95,7 @@ class Prestations extends Model | |||
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 | $combientieme_fois = count($this->find(['ID_client' => $this->ID_client])) + 1; | 96 | $combientieme_fois = count($this->find(['ID_client' => $this->ID_client])) + 1; |
97 | 97 | ||
98 | $array_code = [$Date->getYear(), $Date->getMonth(), $Date->getDay(), $code_client, $combientieme_fois]; | 98 | $array_code = [$Date->getYear(), $Date->getMonth(), $Date->getDay(), $code_client, $this->type_presta, $combientieme_fois]; |
99 | $this->code_presta = implode('-', $array_code); | 99 | $this->code_presta = implode('-', $array_code); |
100 | } | 100 | } |
101 | } | 101 | } |