diff options
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 | } |