diff --git a/src/QUI/ERP/Accounting/ArticleListUnique.php b/src/QUI/ERP/Accounting/ArticleListUnique.php index 2cf4db9e56e38ab0fcf16f910b9a407b0b1be79c..c50d9acba270590ce740e4364e8067c9ec35405e 100644 --- a/src/QUI/ERP/Accounting/ArticleListUnique.php +++ b/src/QUI/ERP/Accounting/ArticleListUnique.php @@ -205,6 +205,7 @@ protected function sortArticlesWithParents(array $articles = []): array } if (empty($article['uuid'])) { + $sortedArticles[] = $article; continue; } diff --git a/src/QUI/ERP/Accounting/ArticleView.php b/src/QUI/ERP/Accounting/ArticleView.php index a05a842fa85621b43f3ce109907074659a28143d..63858cc6a53375a275a1ee1030425d33599386a7 100644 --- a/src/QUI/ERP/Accounting/ArticleView.php +++ b/src/QUI/ERP/Accounting/ArticleView.php @@ -21,7 +21,7 @@ class ArticleView extends QUI\QDOM /** * @var float */ - protected float $position; + protected float $position = 1; /** * @var Article