Skip to content

Commit

Permalink
fix #32060 (#32061)
Browse files Browse the repository at this point in the history
* fix #32060

* fix #32060
  • Loading branch information
FHenry authored Nov 22, 2024
1 parent 65aadd4 commit 1f386fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/compta/facture/class/facture-rec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ public function getNextDate()
if (empty($this->date_when)) {
return false;
}
return dol_time_plus_duree($this->date_when, $this->frequency, $this->unit_frequency);
return dol_time_plus_duree($this->date_when, $this->frequency, $this->unit_frequency, 1);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/class/fournisseur.facture-rec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ public function getNextDate()
if (empty($this->date_when)) {
return false;
}
return dol_time_plus_duree((int) $this->date_when, $this->frequency, $this->unit_frequency);
return dol_time_plus_duree((int) $this->date_when, $this->frequency, $this->unit_frequency, 1);
}

/**
Expand Down

0 comments on commit 1f386fb

Please sign in to comment.