Merge pull request #6467 from laudeco/fix/expense_report_name
prepend the author firstname and lastname for ER ref
This commit is contained in:
commit
1f9b41b178
@ -962,7 +962,7 @@ class ExpenseReport extends CommonObject
|
|||||||
{
|
{
|
||||||
$prefix="ER";
|
$prefix="ER";
|
||||||
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;
|
||||||
$this->ref = strtoupper($fuser->login).$expld_car.$prefix.$this->ref.$expld_car.dol_print_date($this->date_debut,'%y%m%d');
|
$this->ref = str_replace(' ','_', $this->user_author_infos).$expld_car.$prefix.$this->ref.$expld_car.dol_print_date($this->date_debut,'%y%m%d');
|
||||||
}
|
}
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
// We rename directory in order to avoid losing the attachments
|
// We rename directory in order to avoid losing the attachments
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user