Skip to content

Commit

Permalink
Fix [ bug #1116 ] Silent Warning when validating a customer invoice
Browse files Browse the repository at this point in the history
[PostgreSQL]
  • Loading branch information
FHenry committed Oct 26, 2013
1 parent 6985a4f commit 17df92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/compta/facture/class/facture.class.php
Expand Up @@ -1736,8 +1736,8 @@ function validate($user, $force_number='', $idwarehouse=0)
$sql.= " SET facnumber='".$num."', fk_statut = 1, fk_user_valid = ".$user->id.", date_valid = '".$this->db->idate($now)."'";
if (! empty($conf->global->FAC_FORCE_DATE_VALIDATION)) // If option enabled, we force invoice date
{
$sql.= ', datef='.$this->db->idate($this->date);
$sql.= ', date_lim_reglement='.$this->db->idate($this->date_lim_reglement);
$sql.= ", datef='".$this->db->idate($this->date)."'";
$sql.= ", date_lim_reglement='".$this->db->idate($this->date_lim_reglement)."'";
}
$sql.= ' WHERE rowid = '.$this->id;

Expand Down

0 comments on commit 17df92c

Please sign in to comment.