fix: test on const with space.... (#31505)
This commit is contained in:
parent
c48b035a15
commit
b37b2ba76f
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ if (empty($reshook)) {
|
|||
$object->date = dol_now();
|
||||
}
|
||||
|
||||
if (!empty($conf->global-> INVOICE_CHECK_POSTERIOR_DATE)) {
|
||||
if (!empty($conf->global->INVOICE_CHECK_POSTERIOR_DATE)) {
|
||||
$last_of_type = $object->willBeLastOfSameType(true);
|
||||
if (empty($object->date_validation) && !$last_of_type[0]) {
|
||||
setEventMessages($langs->transnoentities("ErrorInvoiceIsNotLastOfSameType", $object->ref, dol_print_date($object->date, 'day'), dol_print_date($last_of_type[1], 'day')), null, 'errors');
|
||||
|
|
|
|||
Loading…
Reference in a new issue