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;
$socid = $this->socid;
$number = $this->ref_supplier?$this->ref_supplier:$this->ref;
$ref_supplier = $this->ref_supplier;
$amount = $this->amount;
$remise = $this->remise;
@ -147,7 +147,7 @@ class FactureFournisseur extends CommonInvoice
$sql.= ")";
$sql.= " VALUES (";
$sql.= "'(PROV)'";
$sql.= ", '".$this->db->escape($number)."'";
$sql.= ", '".$this->db->escape($this->$ref_supplier)."'";
$sql.= ", ".$conf->entity;
$sql.= ", '".$this->db->escape($this->libelle)."'";
$sql.= ", ".$this->socid;