Fix: missing date

This commit is contained in:
Regis Houssin 2010-05-27 09:50:18 +00:00
parent 6e64f7b83e
commit 9df4363287
2 changed files with 1 additions and 2 deletions

View File

@ -64,7 +64,6 @@ if ($_GET["action"] == 'create')
}
$propal = new Propal($db);
$propal->date=time();
$numpr='';
$obj = $conf->global->PROPALE_ADDON;

View File

@ -118,7 +118,7 @@ class mod_propale_marbre extends ModeleNumRefPropales
return -1;
}
$date = (!empty($propal->datep)?$propal->datep:dol_now('tzserver'));
$date = time();
$yymm = strftime("%y%m",$date);
$num = sprintf("%04s",$max+1);