From 18550211c8179b29a4159a5f05abf1b1434a414c Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Wed, 4 Jan 2023 17:32:30 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/bom/class/api_boms.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/bom/class/api_boms.class.php b/htdocs/bom/class/api_boms.class.php index 302054ceb86..e0e6cfd69dd 100644 --- a/htdocs/bom/class/api_boms.class.php +++ b/htdocs/bom/class/api_boms.class.php @@ -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."); } - if ($this->bom->ref == 'auto'){ - if (empty($this->bom->id) && $this->bom->status == 0){ + if ($this->bom->ref == 'auto') { + if (empty($this->bom->id) && $this->bom->status == 0) { $this->bom->ref = ''; // 'ref' will auto incremented with '(PROV' + newID + ')' } else { $this->bom->fetch_product();