From 10da5ba83f114c6ba58012efce079bfaa288cef5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Oct 2010 19:01:41 +0000 Subject: [PATCH] Uniformize code --- htdocs/societe/class/societe.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 397513253e7..56a97f18490 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -2136,15 +2136,19 @@ class Societe extends CommonObject { global $user,$langs,$conf,$mysoc; + $now=dol_now(); + // Initialize parameters $this->id=0; - $this->nom = 'SPECIMEN'; + $this->nom = 'SPECIMEN'.'-'.dol_print_date($now,'dayhourlog'); $this->specimen=1; $this->cp='99999'; $this->ville='MyTown'; $this->pays_id=1; $this->pays_code='FR'; + $this->code_client='CC-'.dol_print_date($now,'dayhourlog'); + $this->code_fournisseur='SC-'.dol_print_date($now,'dayhourlog'); $this->siren='123456789'; $this->siret='ABCDE'; $this->capital=10000;