Fix compatibility option EXPENSEREPORT_USE_OLD_NUMBERING_RULE
This commit is contained in:
parent
510fc22172
commit
cb5d0b1677
@ -142,6 +142,14 @@ class mod_expensereport_jade extends ModeleNumRefExpenseReport
|
|||||||
if (! empty($conf->global->EXPENSE_REPORT_PREFIX)) $prefix=$conf->global->EXPENSE_REPORT_PREFIX;
|
if (! empty($conf->global->EXPENSE_REPORT_PREFIX)) $prefix=$conf->global->EXPENSE_REPORT_PREFIX;
|
||||||
$newref = str_replace(' ','_', $user_author_infos).$expld_car.$prefix.$newref.$expld_car.dol_print_date($object->date_debut,'%y%m%d');
|
$newref = str_replace(' ','_', $user_author_infos).$expld_car.$prefix.$newref.$expld_car.dol_print_date($object->date_debut,'%y%m%d');
|
||||||
|
|
||||||
|
$sqlbis = 'UPDATE '.MAIN_DB_PREFIX.'expensereport SET ref_number_int = '.$ref_number_int.' WHERE rowid = '.$object->id;
|
||||||
|
$resqlbis = $db->query($sqlbis);
|
||||||
|
if (! $resqlbis)
|
||||||
|
{
|
||||||
|
dol_print_error($resqlbis);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
dol_syslog("mod_expensereport_jade::getNextValue return ".$newref);
|
dol_syslog("mod_expensereport_jade::getNextValue return ".$newref);
|
||||||
return $newref;
|
return $newref;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user