Fixing style errors.
This commit is contained in:
parent
de4986a570
commit
18550211c8
@ -554,8 +554,8 @@ class Boms extends DolibarrApi
|
|||||||
throw new RestException(400, "Wrong naming scheme '(PROV%)' is only allowed on 'DRAFT' status. For automatic increment use 'auto' on the 'ref' field.");
|
throw new RestException(400, "Wrong naming scheme '(PROV%)' is only allowed on 'DRAFT' status. For automatic increment use 'auto' on the 'ref' field.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->bom->ref == 'auto'){
|
if ($this->bom->ref == 'auto') {
|
||||||
if (empty($this->bom->id) && $this->bom->status == 0){
|
if (empty($this->bom->id) && $this->bom->status == 0) {
|
||||||
$this->bom->ref = ''; // 'ref' will auto incremented with '(PROV' + newID + ')'
|
$this->bom->ref = ''; // 'ref' will auto incremented with '(PROV' + newID + ')'
|
||||||
} else {
|
} else {
|
||||||
$this->bom->fetch_product();
|
$this->bom->fetch_product();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user