diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index 58ddbd4e84d..28e23fd791f 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -75,7 +75,7 @@ class Contact extends CommonObject var $user_login; var $import_key; - var $oldcopy; // To contains a clone of this when we need to save old properties of object + var $oldcopy; // To contains a clone of this when we need to save old properties of object /** @@ -1037,6 +1037,11 @@ class Contact extends CommonObject $this->country = 'France'; $this->email = 'specimen@specimen.com'; + $this->phone_pro = '0909090901'; + $this->phone_perso = '0909090902'; + $this->phone_mobile = '0909090903'; + $this->fax = '0909090909'; + $this->note_public='This is a comment (public)'; $this->note='This is a comment (private)'; diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 205e88c8272..24339b08f79 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -140,7 +140,7 @@ class Societe extends CommonObject var $array_options; - var $oldcopy; + var $oldcopy; // To contains a clone of this when we need to save old properties of object /** @@ -251,7 +251,7 @@ class Societe extends CommonObject // Fin appel triggers } else $error++; - + if (! $error) { dol_syslog(get_class($this)."::Create success id=".$this->id); @@ -2585,6 +2585,9 @@ class Societe extends CommonObject $this->email='specimen@specimen.com'; $this->url='http://www.specimen.com'; + $this->phone='0909090901'; + $this->fax='0909090909'; + $this->code_client='CC-'.dol_print_date($now,'dayhourlog'); $this->code_fournisseur='SC-'.dol_print_date($now,'dayhourlog'); $this->capital=10000;