diff --git a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php index 40ac77d918b..c777b7ee9c8 100644 --- a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php +++ b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php @@ -531,19 +531,18 @@ class PaymentSocialContribution extends CommonObject public function initAsSpecimen() { $this->id = 0; - - $this->fk_charge = ''; - $this->datec = ''; - $this->tms = ''; - $this->datep = ''; - $this->amount = ''; + $this->fk_charge = 0; + $this->datec = dol_now(); + $this->tms = dol_now(); + $this->datep = dol_now(); + $this->amount = 100; $this->fk_typepaiement = ''; - $this->num_payment = ''; + $this->num_payment = 'ABC123'; $this->note_private = ''; $this->note_public = ''; - $this->fk_bank = ''; - $this->fk_user_creat = ''; - $this->fk_user_modif = ''; + $this->fk_bank = 0; + $this->fk_user_creat = 0; + $this->fk_user_modif = 0; }