From b9c74de6d12ef40ab4baf67303ab22a10fcd5b32 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 25 Feb 2023 17:30:20 +0100 Subject: =?UTF-8?q?document=20locations,=20correction=20de=20pas=20mal=20d?= =?UTF-8?q?e=20probl=C3=A8mes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/Prestations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/model/Prestations.php') 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 // on récupère un tableau contenant toutes les prestations d'un client tous types confondus (devis, facture, cesu, location, enregistrement sans vente) $combientieme_fois = count($this->find(['ID_client' => $this->ID_client])) + 1; - $array_code = [$Date->getYear(), $Date->getMonth(), $Date->getDay(), $code_client, $combientieme_fois]; + $array_code = [$Date->getYear(), $Date->getMonth(), $Date->getDay(), $code_client, $this->type_presta, $combientieme_fois]; $this->code_presta = implode('-', $array_code); } } -- cgit v1.2.3