Skip to content
Snippets Groups Projects
Commit c92471d4 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #1043 from FHenry/3.3

Fix [ bug #934 ] Impossible de créer une facture prédéfinie (pgsql)
parents 49dcc323 fb0a99cb
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ English Dolibarr ChangeLog
***** ChangeLog for 3.3.3 compared to 3.3.2 *****
- Fix: [ bug #903 ] Fatal error: Call to undefined function dol_get_first_day() in htdocs/commande/liste.php
- Fix: [ bug #934 ] Error on proformat invoice creation (pgsql)
***** ChangeLog for 3.3.2 compared to 3.3.1 *****
......
......@@ -122,8 +122,8 @@ class FactureRec extends Facture
$sql.= ", '".$facsrc->socid."'";
$sql.= ", ".$conf->entity;
$sql.= ", ".$this->db->idate($now);
$sql.= ", '".$facsrc->amount."'";
$sql.= ", '".$facsrc->remise."'";
$sql.= ", ".(!empty($facsrc->amount)?$facsrc->amount:'0');
$sql.= ", ".(!empty($facsrc->remise)?$this->remise:'0');
$sql.= ", '".$this->db->escape($this->note)."'";
$sql.= ", '".$user->id."'";
$sql.= ", ".(! empty($facsrc->fk_project)?"'".$facsrc->fk_project."'":"null");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment