Skip to content

Commit

Permalink
clean params
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-irvine committed Jan 10, 2025
1 parent 8ac6013 commit 25489b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion htdocs/compta/facture/class/facture-rec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ public function create($user, $facid, $notrigger = 0)
if (empty($this->suspended)) {
$this->suspended = 0;
}
/** BACKPORT PR 32129 */
if (empty($this->rule_for_lines_dates)) {
$this->rule_for_lines_dates = 'prepaid';
}
/** BACKPORT PR 32129 */

// No frequency defined then no next date to execution
if (empty($this->frequency)) {
Expand Down Expand Up @@ -359,7 +364,7 @@ public function create($user, $facid, $notrigger = 0)
$sql .= ", ".(!empty($this->fk_societe_rib) ? ((int) $this->fk_societe_rib) : 'NULL');
/**BACKPORT PR 31698**/
/** BACKPORT PR 32129 */
$sql .= ", ".(!empty($this->rule_for_lines_dates) ? ("'".$this->db->escape($this->rule_for_lines_dates)."'") : "NULL");
$sql .= ", '".$this->db->escape($this->rule_for_lines_dates)."'";
/** BACKPORT PR 32129 */
$sql .= ")";
if ($this->db->query($sql)) {
Expand Down

0 comments on commit 25489b5

Please sign in to comment.