Fix: missing date
This commit is contained in:
parent
6e64f7b83e
commit
9df4363287
@ -64,7 +64,6 @@ if ($_GET["action"] == 'create')
|
|||||||
}
|
}
|
||||||
|
|
||||||
$propal = new Propal($db);
|
$propal = new Propal($db);
|
||||||
$propal->date=time();
|
|
||||||
|
|
||||||
$numpr='';
|
$numpr='';
|
||||||
$obj = $conf->global->PROPALE_ADDON;
|
$obj = $conf->global->PROPALE_ADDON;
|
||||||
|
|||||||
@ -118,7 +118,7 @@ class mod_propale_marbre extends ModeleNumRefPropales
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$date = (!empty($propal->datep)?$propal->datep:dol_now('tzserver'));
|
$date = time();
|
||||||
$yymm = strftime("%y%m",$date);
|
$yymm = strftime("%y%m",$date);
|
||||||
$num = sprintf("%04s",$max+1);
|
$num = sprintf("%04s",$max+1);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user