fix: some issue on the road to numbering supplier invoice

This commit is contained in:
Grand Philippe 2013-04-01 23:28:44 +02:00
parent 20fb7f79c0
commit 8dd8ccad2e

View File

@ -123,7 +123,7 @@ class FactureFournisseur extends CommonInvoice
if (empty($this->date)) $this->date=$now; if (empty($this->date)) $this->date=$now;
$socid = $this->socid; $socid = $this->socid;
$number = $this->ref_supplier?$this->ref_supplier:$this->ref; $ref_supplier = $this->ref_supplier;
$amount = $this->amount; $amount = $this->amount;
$remise = $this->remise; $remise = $this->remise;
@ -147,7 +147,7 @@ class FactureFournisseur extends CommonInvoice
$sql.= ")"; $sql.= ")";
$sql.= " VALUES ("; $sql.= " VALUES (";
$sql.= "'(PROV)'"; $sql.= "'(PROV)'";
$sql.= ", '".$this->db->escape($number)."'"; $sql.= ", '".$this->db->escape($this->$ref_supplier)."'";
$sql.= ", ".$conf->entity; $sql.= ", ".$conf->entity;
$sql.= ", '".$this->db->escape($this->libelle)."'"; $sql.= ", '".$this->db->escape($this->libelle)."'";
$sql.= ", ".$this->socid; $sql.= ", ".$this->socid;