Fix regression
This commit is contained in:
parent
bd47bd096b
commit
28c4f86c79
@ -461,10 +461,10 @@ class Facture extends CommonInvoice
|
|||||||
// Define due date if not already defined
|
// Define due date if not already defined
|
||||||
if (empty($forceduedate)) {
|
if (empty($forceduedate)) {
|
||||||
$duedate = $this->calculate_date_lim_reglement();
|
$duedate = $this->calculate_date_lim_reglement();
|
||||||
if ($duedate < 0) {
|
/*if ($duedate < 0) { Regression, a date can be negative if before 1970.
|
||||||
dol_syslog(__METHOD__ . ' ' . $this->error, LOG_ERR);
|
dol_syslog(__METHOD__ . ' Error in calculate_date_lim_reglement. We got ' . $duedate, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}*/
|
||||||
$this->date_lim_reglement = $duedate;
|
$this->date_lim_reglement = $duedate;
|
||||||
} else {
|
} else {
|
||||||
$this->date_lim_reglement = $forceduedate;
|
$this->date_lim_reglement = $forceduedate;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user