Merge pull request #16983 from aspangaro/13p31
FIX Start hour on ACCOUNTING_DATE_START_BINDING
This commit is contained in:
commit
914580ed84
@ -84,7 +84,7 @@ if ($action == 'update') {
|
|||||||
$constvalue = GETPOST($constname, 'alpha');
|
$constvalue = GETPOST($constname, 'alpha');
|
||||||
|
|
||||||
if ($constname == 'ACCOUNTING_DATE_START_BINDING') {
|
if ($constname == 'ACCOUNTING_DATE_START_BINDING') {
|
||||||
$constvalue = dol_mktime(12, 0, 0, GETPOST($constname.'month', 'int'), GETPOST($constname.'day', 'int'), GETPOST($constname.'year', 'int'));
|
$constvalue = dol_mktime(0, 0, 0, GETPOST($constname.'month', 'int'), GETPOST($constname.'day', 'int'), GETPOST($constname.'year', 'int'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dolibarr_set_const($db, $constname, $constvalue, 'chaine', 0, '', $conf->entity)) {
|
if (!dolibarr_set_const($db, $constname, $constvalue, 'chaine', 0, '', $conf->entity)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user