Fixing style errors.
This commit is contained in:
parent
db8596743c
commit
7514a625fd
@ -1196,8 +1196,8 @@ class Facture extends CommonInvoice
|
|||||||
// If there is <= 1d (or 2?) of start/or/end of month
|
// If there is <= 1d (or 2?) of start/or/end of month
|
||||||
if ($diffFirst <= 2 && $diffLast <= 2) {
|
if ($diffFirst <= 2 && $diffLast <= 2) {
|
||||||
$nextMonth = dol_get_next_month($end['mon'], $end['year']);
|
$nextMonth = dol_get_next_month($end['mon'], $end['year']);
|
||||||
$newFirst = dol_get_first_day($nextMonth['year'],$nextMonth['month']);
|
$newFirst = dol_get_first_day($nextMonth['year'], $nextMonth['month']);
|
||||||
$newLast = dol_get_last_day($nextMonth['year'],$nextMonth['month']);
|
$newLast = dol_get_last_day($nextMonth['year'], $nextMonth['month']);
|
||||||
$object->lines[$i]->date_start = $newFirst;
|
$object->lines[$i]->date_start = $newFirst;
|
||||||
$object->lines[$i]->date_end = $newLast;
|
$object->lines[$i]->date_end = $newLast;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user