Update supplier_proposal.class.php
This commit is contained in:
parent
3d38301be9
commit
c7c1756703
@ -1403,9 +1403,9 @@ class SupplierProposal extends CommonObject
|
|||||||
|
|
||||||
// Numbering module definition
|
// Numbering module definition
|
||||||
$soc = new Societe($this->db);
|
$soc = new Societe($this->db);
|
||||||
$soc->fetch($this->socid);
|
$result = $soc->fetch($this->socid);
|
||||||
|
|
||||||
if ($soc < 0) return -1;
|
if ($result < 0) return -1;
|
||||||
|
|
||||||
// Define new ref
|
// Define new ref
|
||||||
if (preg_match('/^[\(]?PROV/i', $this->ref) || empty($this->ref)) { // empty should not happened, but when it occurs, the test save life
|
if (preg_match('/^[\(]?PROV/i', $this->ref) || empty($this->ref)) { // empty should not happened, but when it occurs, the test save life
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user