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

Fix: field not saved into invoice creation

parent a1c86f52
No related branches found
No related tags found
No related merge requests found
...@@ -198,6 +198,7 @@ class Facture extends CommonInvoice ...@@ -198,6 +198,7 @@ class Facture extends CommonInvoice
$sql = "INSERT INTO ".MAIN_DB_PREFIX."facture ("; $sql = "INSERT INTO ".MAIN_DB_PREFIX."facture (";
$sql.= " facnumber"; $sql.= " facnumber";
$sql.= ", entity"; $sql.= ", entity";
$sql.= ", ref_ext";
$sql.= ", type"; $sql.= ", type";
$sql.= ", fk_soc"; $sql.= ", fk_soc";
$sql.= ", datec"; $sql.= ", datec";
...@@ -213,6 +214,7 @@ class Facture extends CommonInvoice ...@@ -213,6 +214,7 @@ class Facture extends CommonInvoice
$sql.= " VALUES ("; $sql.= " VALUES (";
$sql.= "'(PROV)'"; $sql.= "'(PROV)'";
$sql.= ", ".$conf->entity; $sql.= ", ".$conf->entity;
$sql.= ", ".($this->ref_ext?"'".$this->db->escape($this->ref_ext)."'":"null");
$sql.= ", '".$this->type."'"; $sql.= ", '".$this->type."'";
$sql.= ", '".$socid."'"; $sql.= ", '".$socid."'";
$sql.= ", '".$this->db->idate($now)."'"; $sql.= ", '".$this->db->idate($now)."'";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment