diff --git a/src/QUI/ERP/Accounting/Article.php b/src/QUI/ERP/Accounting/Article.php index 90c2309f0548892f761fdfa4ad7b92e0072815b2..7b5e8785a2144216bdbd85c4d5fc3e04c6ad4a34 100644 --- a/src/QUI/ERP/Accounting/Article.php +++ b/src/QUI/ERP/Accounting/Article.php @@ -241,15 +241,15 @@ public function getView(): ArticleView /** * Return the Article ID * - * @return string|int + * @return int */ public function getId() { if (isset($this->attributes['id'])) { - return $this->attributes['id']; + return (int)$this->attributes['id']; } - return ''; + return 0; } /**