{"id":172303,"date":"2023-01-23T14:05:21","date_gmt":"2023-01-23T13:05:21","guid":{"rendered":"https:\/\/guide.jtl-software.com\/examples-of-custom-overviews-for-items\/"},"modified":"2023-09-20T09:06:14","modified_gmt":"2023-09-20T07:06:14","slug":"examples-of-custom-overviews-for-items","status":"publish","type":"page","link":"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/","title":{"rendered":"Examples of Custom overviews for items"},"content":{"rendered":"<div class=\"wpb-content-wrapper\">[vc_row][vc_column width=&#8221;1\/3&#8243; responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;order-md&#8220;: &#8220;1&#8220;, &#8220;col-lg&#8220;: &#8220;4&#8220;, &#8220;order-lg&#8220;: &#8220;12&#8220;}&#8221; advanced=&#8221;{&#8220;class&#8220;: &#8220;&#8220;, &#8220;hash&#8220;: &#8220;&#8220;}&#8221;]<div id=\"toc\">\n\t<div class=\"card border-0 bg-rysywhite mt-0 mt-lg-5 mb-5 w-100\" data-toc-element>\n\t\t<div class=\"d-none d-lg-flex flex-column\">\n\t\t\t<span class=\"fa-layers mx-auto mt--4 fa-fw fa-3x text-shaftblue\">\n\t\t\t\t<span class=\"fas fa-circle\"><\/span>\n\t\t\t\t<span class=\"fas fa-inverse fa-list-ul\" data-fa-transform=\"shrink-8\"><\/span>\n\t\t\t<\/span>\n\t\t\t<span class=\"font-weight-bold text-shaftblue text-center h5 mt-3 mb-0\">Contents<\/span>\n\t\t<\/div>\n\t\t<div class=\"d-block d-lg-none\">\n\t\t\t<a class=\"text-decoration-none card-header-link collapsed\" data-toggle=\"collapse\" href=\"#collapse-toc\" aria-expanded=\"false\" aria-controls=\"collapse-toc\">\n\t\t\t\t<div class=\"card-header d-flex bg-white align-items-center\" role=\"tab\" id=\"heading-toc\">\n\t\t\t\t\t<span class=\"h4 mb-0 d-flex align-items-center\">\n\t\t\t\t\t\t<span class=\"fa-layers fa-fw fa-2x mr-2 text-shaftblue\">\n\t\t\t\t\t\t\t<span class=\"fas fa-circle\"><\/span>\n\t\t\t\t\t\t\t<span class=\"fas fa-inverse fa-list-ul\" data-fa-transform=\"shrink-8\"><\/span>\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t<span>Contents<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<span class=\"flex-shrink-0 ml-auto fas fa-caret-down text-gray\"><\/span>\n\t\t\t\t<\/div>\n\t\t\t<\/a>\n\t\t<\/div>\n\t\t<div id=\"collapse-toc\" class=\"collapse show\" data-parent=\"#toc\" role=\"tabpanel\" aria-labelledby=\"heading-toc\">\n\t\t\t<div class=\"card-body p-4 table-of-content\">\n\t\t\t\t<ul data-toc-headings=\"h2,h3\" data-toc class=\"list-wawi\"><\/ul>\n\t\t\t<\/div>\n\t    <\/div>\n\t<\/div>\n<\/div>[\/vc_column][vc_column responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;col-md&#8220;: &#8220;8&#8220;, &#8220;order-md&#8220;: &#8220;12&#8220;, &#8220;order-lg&#8220;: &#8220;1&#8220;}&#8221; width=&#8221;2\/3&#8243; advanced=&#8221;{&#8220;class&#8220;: &#8220;&#8220;, &#8220;hash&#8220;: &#8220;&#8220;}&#8221;]<h1 class=\"d-flex align-items-center hl-wawi\" id=\"custom-overviews-for-items\">Custom overviews for items <span id='anchor-custom-overviews-for-items' data-href='#custom-overviews-for-items' class='far fa-link' data-anchor><\/span><\/h1>\t<p>In JTL-Wawi, you can create custom overviews using SQL. In this documentation you will find sample SQL commands for custom overviews in the <span class=\"highlight\">Item management<\/span> of JTL-Wawi. To learn how to create custom overviews, please read the <span style=\"color: #f68b25;\"><a style=\"color: #f68b25;\" href=\"https:\/\/guide.jtl-software.com\/jtl-wawi\/eigene-uebersichten-erstellen\/\">Creating custom overviews<\/a><\/span> documentation.<\/p>\n<h2 class=\"d-flex align-items-center hl-wawi\" id=\"sale-per-customer\">Sale per customer <span id='anchor-sale-per-customer' data-href='#sale-per-customer' class='far fa-link' data-anchor><\/span><\/h2>\t<p>With this custom overview, you can see all customers who have ever bought the selected item. The following information is shown:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-wawi\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSKU\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCustomer ID\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCustomer\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tAverage Net SP\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tAverage Gross SP\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSales orders\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tTotal quantity\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tAverage quantity per purchase\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tLast order\t<\/li><\/ul><div id=\"parent_69d00a8133381\" role=\"tablist\" aria-multiselectable=\"true\" class=\"accordion mb-5 parent_69d00a8133381\">\n\t<div class=\"accordion-group\">\n\t<div class=\"accordion-header no-gradient collapsed\" role=\"tab\" id=\"group_69d00a813352a\" data-toggle=\"collapse\" data-target=\"#group_69d00a813352a_collapse\" aria-expanded=\"true\" aria-controls=\"group_69d00a813352a_collapse\">\n\t\t<div class=\"accordion-title\">\n\t\t\tSQL for sale per customer\t\t\t<span class=\"fas fa-caret-up indicator\"><\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div id=\"group_69d00a813352a_collapse\" class=\"accordion-collapse collapse \" role=\"tabpanel\" aria-labelledby=\"group_69d00a813352a\" data-parent=\".parent_69d00a8133381\">\n\t\t<div class=\"accordion-body clearfix\">\n\t\t\t<div data-codecopy=\"1\" class=\"media-item\">\n\t<div class=\"media-object\">\n\t\t<span class=\"fa-stack fa-stacksize-2x\">\n\t\t\t<span class=\"far fa-circle fa-stack-2x text-wawi\"><\/span>\n\t\t\t<span class=\"fas fa-code fa-stack-1x text-wawi\"><\/span>\n\t\t<\/span>\n\t<\/div>\n\t<div class=\"media-content\">\n\t\t<pre><code class=\"rounded bg-rysywhite p-5 sql\">-- Standardartikel\nSELECT\n\ttArtikel.cArtNr AS &#039;ArtNr&#039;,\n    tKunde.cKundenNr AS Kundennummer,\n    CONCAT(tAdresse.cVorname, &#039; &#039;, tAdresse.cName, &#039; &#039;, tAdresse.cFirma) AS Kunde,\n\tROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKNetto), 0.0)), 2) AS &#039;&Oslash; VK-Netto&#039;,\n    ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS &#039;&Oslash; VK-Brutto&#039;,\t\n    COUNT(DISTINCT(tBestellung.kBestellung)) AS Auftraege,\n    ROUND(CONVERT(FLOAT, SUM(tbestellpos.nAnzahl)), 2) AS Gesamtmenge,\n    CASE\n        WHEN COUNT(DISTINCT(tBestellung.kBestellung)) &gt; 0 THEN ROUND(CONVERT(FLOAT, SUM(tbestellpos.nAnzahl) \/ COUNT(DISTINCT(tBestellung.kBestellung))), 2)\n        ELSE 0\n    END AS &#039;&Oslash; Menge pro Kauf&#039;,\n    MAX(tBestellung.dErstellt) AS &#039;Letzter Kauf&#039;\nFROM tbestellpos\nJOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\nJOIN tKunde ON tBestellung.tKunde_kKunde = tkunde.kKunde\nJOIN tAdresse ON tAdresse.kKunde = tkunde.kKunde\nJOIN tartikel ON tartikel.kArtikel = tbestellpos.tArtikel_kArtikel\nWHERE tartikel.kArtikel = @Key\n\tAND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n    AND tbestellung.cType = &#039;B&#039;\nGROUP BY    \n\t\t\ttbestellung.tKunde_kKunde,\n            tartikel.kVaterArtikel,\n            tKunde.cKundenNr,\n            tAdresse.cVorname,\n            tAdresse.cName,\n            tAdresse.cFirma,\n\t\t\ttArtikel.cArtNr\n\n-- Vaterartikel bei Varkombis\nUNION\nSELECT\n\tCONCAT(&#039;Alle Kinder von: &#039;, jArtikel.cArtNr) AS &#039;ArtNr&#039;,\n    tKunde.cKundenNr AS Kundennummer,\n    CONCAT(tAdresse.cVorname, &#039; &#039;, tAdresse.cName, &#039; &#039;, tAdresse.cFirma) AS Kunde,\n\tROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKNetto), 0.0)), 2) AS &#039;&Oslash; VK-Netto&#039;,\n    ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS &#039;&Oslash; VK-Brutto&#039;,\t\n    COUNT(DISTINCT(tBestellung.kBestellung)) AS Auftraege,\n    ROUND(CONVERT(FLOAT, SUM(tbestellpos.nAnzahl)), 2) AS Gesamtmenge,\n    CASE\n        WHEN COUNT(DISTINCT(tBestellung.kBestellung)) &gt; 0 THEN ROUND(CONVERT(FLOAT, SUM(tbestellpos.nAnzahl) \/ COUNT(DISTINCT(tBestellung.kBestellung))), 2)\n        ELSE 0\n    END AS &#039;&Oslash; Menge pro Kauf&#039;,\n    MAX(tBestellung.dErstellt) AS &#039;Letzter Kauf&#039;\nFROM tbestellpos\nJOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\nJOIN tKunde ON tBestellung.tKunde_kKunde = tkunde.kKunde\nJOIN tAdresse ON tAdresse.kKunde = tkunde.kKunde\nJOIN tartikel ON tartikel.kArtikel = tbestellpos.tArtikel_kArtikel\nJOIN\n(SELECT tartikel.kArtikel, cArtNr\n\tFROM tartikel\n\tWHERE tartikel.kArtikel = @Key\n) AS jArtikel ON 1=1\nWHERE tartikel.kVaterArtikel = @Key\n\tAND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n    AND tbestellung.cType = &#039;B&#039;\nGROUP BY    \n\t\t\ttbestellung.tKunde_kKunde,\n            tartikel.kVaterArtikel,\n            tKunde.cKundenNr,\n            tAdresse.cVorname,\n            tAdresse.cName,\n            tAdresse.cFirma,\n\t\t\tjArtikel.cArtNr\nORDER BY &#039;Letzter Kauf&#039; DESC<\/code><\/pre>\n\t\t<span class=\"fas fa-paste text-shaftblue copy-btn\"><\/span>\n\t<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div>\n\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Abverkauf-pro-Kunde-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Abverkauf-pro-Kunde-jtl-wawi.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Abverkauf-pro-Kunde-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Abverkauf-pro-Kunde-jtl-wawi.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Abverkauf-pro-Kunde-jtl-wawi-768x263.png 640w\" width=\"1023\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"350\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-Abverkauf-pro-Kunde-jtl-wawi.png&quot;,&quot;w&quot;:1023,&quot;h&quot;:350}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-wawi\" id=\"activities-per-platform\">Activities per platform <span id='anchor-activities-per-platform' data-href='#activities-per-platform' class='far fa-link' data-anchor><\/span><\/h2>\t<p>With this custom overview, you can see all platforms on which the item is currently active. These can be marketplaces connected via JTL-eazyAuction as well as marketplaces via third-party connections, but also online shops and POS cash registers. The following information is shown:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-wawi\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPlatform\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCurrently offered quantity\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCurrent price\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSales in the last 30 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSales in the last 90 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSales in the last 365 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tTotal sales\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tAverage Gross SP\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tAngebots-ID, z. B. ASIN von Amazon oder ItemID von eBay\t<\/li><\/ul><div id=\"parent_69d00a8134811\" role=\"tablist\" aria-multiselectable=\"true\" class=\"accordion mb-5 parent_69d00a8134811\">\n\t<div class=\"accordion-group\">\n\t<div class=\"accordion-header no-gradient collapsed\" role=\"tab\" id=\"group_69d00a813492e\" data-toggle=\"collapse\" data-target=\"#group_69d00a813492e_collapse\" aria-expanded=\"true\" aria-controls=\"group_69d00a813492e_collapse\">\n\t\t<div class=\"accordion-title\">\n\t\t\tSQL for activity per platform\t\t\t<span class=\"fas fa-caret-up indicator\"><\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div id=\"group_69d00a813492e_collapse\" class=\"accordion-collapse collapse \" role=\"tabpanel\" aria-labelledby=\"group_69d00a813492e\" data-parent=\".parent_69d00a8134811\">\n\t\t<div class=\"accordion-body clearfix\">\n\t\t\t<div data-codecopy=\"1\" class=\"media-item\">\n\t<div class=\"media-object\">\n\t\t<span class=\"fa-stack fa-stacksize-2x\">\n\t\t\t<span class=\"far fa-circle fa-stack-2x text-wawi\"><\/span>\n\t\t\t<span class=\"fas fa-code fa-stack-1x text-wawi\"><\/span>\n\t\t<\/span>\n\t<\/div>\n\t<div class=\"media-content\">\n\t\t<pre><code class=\"rounded bg-rysywhite p-5 sql\">--Amazon Angebote\nSELECT tPlattform.cName AS &#039;Plattform&#039;,\n        jAmazon.nQuantity AS &#039;Menge&#039;,\n\t\tjAmazon.fPrice AS &#039;Akt. Preis&#039;,\n        ISNULL(jLetzte30Tage.absatz, 0) AS &#039;Absatz 30 Tage&#039;,\n        ISNULL(jLetzte90Tage.absatz, 0) AS &#039;Abs. 90 Tage&#039;,\n        ISNULL(jLetzte365Tage.absatz, 0) AS &#039;Abs. 365 Tage&#039;,\n        ISNULL(jAbsatzGesamt.absatz, 0) AS &#039;Abs. Gesamt&#039;,\n\t\tISNULL(jVKDurchschnitt.vk, 0) &#039;&Oslash; VK-Brutto&#039;,\n\t\tISNULL(jAmazon.cASIN1, &#039;&#039;) AS &#039;ID&#039;\nFROM tPlattform\nJOIN ( --l&auml;uft er &uuml;berhaupt auf amazon?\n    SELECT\tnPlattform,\n\t\t\tnQuantity,\n\t\t\tROUND(CONVERT(FLOAT, fPrice), 2) AS fPrice,\n\t\t\tpf_amazon_angebot.cASIN1\n    FROM pf_amazon_angebot\n\tJOIN pf_amazon_angebot_mapping ON pf_amazon_angebot_mapping.cSellerSKU = pf_amazon_angebot.cSellerSKU\n\t\tAND pf_amazon_angebot_mapping.kUser = pf_amazon_angebot.kUser\n    WHERE pf_amazon_angebot_mapping.kArtikel = @Key\n\t) AS jAmazon ON jAmazon.nPlattform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY nPlatform\n) AS jLetzte30Tage ON jLetzte30Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -90, getdate())\n    GROUP BY nPlatform\n) AS jLetzte90Tage ON jLetzte90Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY nPlatform\n) AS jLetzte365Tage ON jLetzte365Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY nPlatform\n) AS jAbsatzGesamt ON jAbsatzGesamt.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS vk\n    FROM tbestellpos\n    JOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY nPlatform\n) AS jVKDurchschnitt ON jVKDurchschnitt.nPlatform = tPlattform.nPlattform\nUNION --eBay Angebote - normale Artikel\nSELECT tPlattform.cName AS &#039;Plattform&#039;,\n        ISNULL(jEbay.Quantity, 0) AS &#039;Menge&#039;,\n\t\tISNULL(jEbay.StartPrice, 0) AS &#039;Akt. Preis&#039;,\n        ISNULL(jLetzte30Tage.absatz, 0) AS &#039;Absatz 30 Tage&#039;,\n        ISNULL(jLetzte90Tage.absatz, 0) AS &#039;Abs. 90 Tage&#039;,\n        ISNULL(jLetzte365Tage.absatz, 0) AS &#039;Abs. 365 Tage&#039;,\n        ISNULL(jAbsatzGesamt.absatz, 0) AS &#039;Abs. Gesamt&#039;,\n\t\tISNULL(jVKDurchschnitt.vk, 0) &#039;&Oslash; VK-Brutto&#039;,\n\t\tISNULL(jEbay.ItemID, &#039;&#039;) AS &#039;ID&#039;\nFROM tPlattform\nJOIN ( --l&auml;uft er &uuml;berhaupt auf ebay?\n SELECT\tebay_xx_sites.kPlattform,\n\t\tebay_item.Quantity,\n\t\tROUND(CONVERT(FLOAT, ebay_item.StartPrice), 2) AS StartPrice,\n\t\tebay_item.ItemID\n    FROM ebay_item\n\tJOIN ebay_xx_sites ON ebay_xx_sites.SiteID = ebay_item.SiteID\n    WHERE\tebay_item.kArtikel = @Key\n\t\tAND ebay_item.Status IN (3,7)\n) AS jEbay ON jEbay.kPlattform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY nPlatform\n) AS jLetzte30Tage ON jLetzte30Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -90, getdate())\n    GROUP BY nPlatform\n) AS jLetzte90Tage ON jLetzte90Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY nPlatform\n) AS jLetzte365Tage ON jLetzte365Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY nPlatform\n) AS jAbsatzGesamt ON jAbsatzGesamt.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS vk\n    FROM tbestellpos\n    JOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY nPlatform\n) AS jVKDurchschnitt ON jVKDurchschnitt.nPlatform = tPlattform.nPlattform\nUNION --eBay Angebote - als Kindartikel im eBay Variationsangebot\nSELECT tPlattform.cName AS &#039;Plattform&#039;,\n        jEbay.fAnzahl AS &#039;Menge&#039;,\n\t\tjEbay.fPreis AS &#039;Akt. Preis&#039;,\n        ISNULL(jLetzte30Tage.absatz, 0) AS &#039;Absatz 30 Tage&#039;,\n        ISNULL(jLetzte90Tage.absatz, 0) AS &#039;Abs. 90 Tage&#039;,\n        ISNULL(jLetzte365Tage.absatz, 0) AS &#039;Abs. 365 Tage&#039;,\n        ISNULL(jAbsatzGesamt.absatz, 0) AS &#039;Abs. Gesamt&#039;,\n\t\tISNULL(jVKDurchschnitt.vk, 0) &#039;&Oslash; VK-Brutto&#039;,\n\t\tCONCAT(&#039;Varkombi-Kind: &#039;, jEbay.ItemID) AS &#039;ID&#039;\nFROM tPlattform\nJOIN ( --l&auml;uft er &uuml;berhaupt auf ebay als Kindartikel?\n SELECT\tebay_xx_sites.kPlattform,\n\t\tCONVERT(INT, ebay_item2kombi.fAnzahl) AS fAnzahl,\n\t\tROUND(CONVERT(FLOAT, ebay_item2kombi.fPreis), 2) AS fPreis,\n\t\tebay_item.ItemID\n    FROM ebay_item\n\tJOIN ebay_xx_sites ON ebay_xx_sites.SiteID = ebay_item.SiteID\n\tJOIN ebay_item2kombi ON ebay_item2kombi.kItem = ebay_item.kItem\n\tJOIN tartikel ON tartikel.kEigenschaftKombi = ebay_item2kombi.kEigenschaftKombi\n    WHERE\ttartikel.kArtikel = @Key\n\t\tAND ebay_item.Status IN (3,7)\n) AS jEbay ON jEbay.kPlattform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY nPlatform\n) AS jLetzte30Tage ON jLetzte30Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -90, getdate())\n    GROUP BY nPlatform\n) AS jLetzte90Tage ON jLetzte90Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY nPlatform\n) AS jLetzte365Tage ON jLetzte365Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY nPlatform\n) AS jAbsatzGesamt ON jAbsatzGesamt.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS vk\n    FROM tbestellpos\n    JOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY nPlatform\n) AS jVKDurchschnitt ON jVKDurchschnitt.nPlatform = tPlattform.nPlattform\nUNION --eBay Angebote - als Kindartikel im eBay Variationsangebot\nSELECT tShop.cName AS &#039;Plattform&#039;,\n        ISNULL(jShop.fVerfuegbar, 0) AS &#039;Menge&#039;,\n\t\tdbo.ifGetPrice(jShop.kArtikel, 0, 1, jShop.kShop, 1) AS &#039;Akt. Preis&#039;,\n        ISNULL(jLetzte30Tage.absatz, 0) AS &#039;Absatz 30 Tage&#039;,\n        ISNULL(jLetzte90Tage.absatz, 0) AS &#039;Abs. 90 Tage&#039;,\n        ISNULL(jLetzte365Tage.absatz, 0) AS &#039;Abs. 365 Tage&#039;,\n        ISNULL(jAbsatzGesamt.absatz, 0) AS &#039;Abs. Gesamt&#039;,\n\t\tISNULL(jVKDurchschnitt.vk, 0) &#039;&Oslash; VK-Brutto&#039;,\n\t\tjShop.cArtNr AS &#039;ID&#039;\nFROM tShop\nJOIN ( --l&auml;uft er in Shops oder POS, etc.?\n SELECT\ttArtikelShop.kShop,\n\t\ttArtikelShop.kArtikel,\n\t\tROUND(CONVERT(FLOAT, ISNULL(vLagerbestandEx.fVerfuegbar, 0)), 2) AS fVerfuegbar,\n\t\ttartikel.cArtNr\n    FROM tartikel\n\tJOIN tArtikelShop ON tArtikelShop.kArtikel = tartikel.kArtikel\n\tLEFT JOIN vLagerbestandEx ON vLagerbestandEx.kArtikel = tartikel.kArtikel\n    WHERE\ttartikel.kArtikel = @Key\n\t\tAND tArtikelShop.cDelInet != &#039;Y&#039;\n) AS jShop ON jShop.kShop = tShop.kShop\nLEFT JOIN (\n    SELECT kShop, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY kShop\n) AS jLetzte30Tage ON jLetzte30Tage.kShop = tShop.kShop\nLEFT JOIN (\n    SELECT kShop, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -90, getdate())\n    GROUP BY kShop\n) AS jLetzte90Tage ON jLetzte90Tage.kShop = tShop.kShop\nLEFT JOIN (\n    SELECT kShop, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY kShop\n) AS jLetzte365Tage ON jLetzte365Tage.kShop = tShop.kShop\nLEFT JOIN (\n    SELECT kShop, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY kShop\n) AS jAbsatzGesamt ON jAbsatzGesamt.kShop = tShop.kShop\nLEFT JOIN (\n    SELECT kShop, ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS vk\n    FROM tbestellpos\n    JOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY kShop\n) AS jVKDurchschnitt ON jVKDurchschnitt.kShop = tShop.kShop<\/code><\/pre>\n\t\t<span class=\"fas fa-paste text-shaftblue copy-btn\"><\/span>\n\t<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div>\n\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Aktivitaet-pro-Plattform-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Aktivitaet-pro-Plattform-jtl-wawi.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Aktivitaet-pro-Plattform-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Aktivitaet-pro-Plattform-jtl-wawi.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Aktivitaet-pro-Plattform-jtl-wawi-768x263.png 640w\" width=\"1022\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"350\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-Aktivitaet-pro-Plattform-jtl-wawi.png&quot;,&quot;w&quot;:1022,&quot;h&quot;:350}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-wawi\" id=\"cross-selling\">Cross-selling <span id='anchor-cross-selling' data-href='#cross-selling' class='far fa-link' data-anchor><\/span><\/h2>\t<p>With this custom overview you can see how often the cross-selling items of the selected item are sold. This allows you to determine whether a cross-selling item continues to make sense or might better be replaced. The following information is shown:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-wawi\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCross-selling group\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSKU\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCross-selling items\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tNumber of joint purchases\t<\/li><\/ul><div id=\"parent_69d00a8135767\" role=\"tablist\" aria-multiselectable=\"true\" class=\"accordion mb-5 parent_69d00a8135767\">\n\t<div class=\"accordion-group\">\n\t<div class=\"accordion-header no-gradient collapsed\" role=\"tab\" id=\"group_69d00a813584a\" data-toggle=\"collapse\" data-target=\"#group_69d00a813584a_collapse\" aria-expanded=\"true\" aria-controls=\"group_69d00a813584a_collapse\">\n\t\t<div class=\"accordion-title\">\n\t\t\tSQL for cross-selling items\t\t\t<span class=\"fas fa-caret-up indicator\"><\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div id=\"group_69d00a813584a_collapse\" class=\"accordion-collapse collapse \" role=\"tabpanel\" aria-labelledby=\"group_69d00a813584a\" data-parent=\".parent_69d00a8135767\">\n\t\t<div class=\"accordion-body clearfix\">\n\t\t\t<div data-codecopy=\"1\" class=\"media-item\">\n\t<div class=\"media-object\">\n\t\t<span class=\"fa-stack fa-stacksize-2x\">\n\t\t\t<span class=\"far fa-circle fa-stack-2x text-wawi\"><\/span>\n\t\t\t<span class=\"fas fa-code fa-stack-1x text-wawi\"><\/span>\n\t\t<\/span>\n\t<\/div>\n\t<div class=\"media-content\">\n\t\t<pre><code class=\"rounded bg-rysywhite p-5 sql\">SELECT\ttXSellGruppe.cName AS &#039;Cross-Selling-Gruppe&#039;\n\t\t, tArtikel.cArtNr AS &#039;Artikelnummer&#039;\n\t\t, tArtikelBeschreibung.cName AS &#039;Cross-Selling Artikel&#039;\n\t\t, \t(SELECT COUNT(*) FROM ( \n\t\t\t\tSELECT tBestellung_kBestellung FROM tbestellpos WHERE tArtikel_kArtikel = tXSell.kXSellArtikel\n\t\t\t\t\tAND tXSell.kArtikel = @Key\n\t\t\t\tINTERSECT\n\t\t\t\tSELECT tBestellung_kBestellung FROM tbestellpos WHERE tArtikel_kArtikel = @Key\n\t\t\t) AS fKaeufe) AS &#039;Anzahl gemeinsame K&auml;ufe&#039;\nFROM tXSell\nJOIN dbo.tSpracheUsed ON nStandard = 1\nJOIN tXSellGruppe ON tXSellGruppe.kXSellGruppe = tXSell.kXSellGruppe\n    AND tXSellGruppe.kSprache = tSpracheUsed.kSprache\nJOIN dbo.tArtikelBeschreibung ON tArtikelBeschreibung.kArtikel = tXSell.kXSellArtikel\n    AND tArtikelBeschreibung.kSprache = tSpracheUsed.kSprache\n    AND tArtikelBeschreibung.kPlattform=1\nJOIN tArtikel ON tArtikel.kArtikel = tXSell.kXSellArtikel\nWHERE tXSell.kArtikel = @Key\nORDER BY tXSellGruppe.cName, tArtikelBeschreibung.cName<\/code><\/pre>\n\t\t<span class=\"fas fa-paste text-shaftblue copy-btn\"><\/span>\n\t<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div>\n\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Cross-Seller-jtl-wawi-1.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Cross-Seller-jtl-wawi-1.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Cross-Seller-jtl-wawi-1.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Cross-Seller-jtl-wawi-1.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Cross-Seller-jtl-wawi-1-768x263.png 640w\" width=\"1022\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"350\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-Cross-Seller-jtl-wawi-1.png&quot;,&quot;w&quot;:1022,&quot;h&quot;:350}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-wawi\" id=\"fba-stock\">FBA stock <span id='anchor-fba-stock' data-href='#fba-stock' class='far fa-link' data-anchor><\/span><\/h2>\t<p>With this custom overview, you can see your FBA stock in detail, so that you can also see the stock that is currently reserved. This information is displayed for all linked Amazon FBA listings of the selected item. The following information is shown:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-wawi\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSKU\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tAwaiting delivery (in JTL-Wawi)\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tWawi Available\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tTotal Available\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tFBA listing (Yes\/No)\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tFBA Available stock\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tFBA Warehouse (Physical inventory = FBA Available + FBA Unsellable + FBA Reserved)\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tFBA Unsellable (Stock not for sale due to condition)\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tFBA Reserved (Reserved stock = quantity that is currently being picked, packed and shipped or retrieved for measuring, sampling or other internal processes)\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tFBA Total (Total stock = FBA Warehouse + FBA Inbound Working + FBA Inbound Shipped)\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tFBA Inbound Working (Quantity that you have registered as awaiting delivery on Amazon)\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tFBA Inbound Shipped (Quantity that you have registered as awaiting delivery on Amazon and for which you have stored a tracking ID)\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tFBA Receiving (Quantity that has arrived at Amazon and is currently being processed)\t<\/li><\/ul><div id=\"parent_69d00a8136cac\" role=\"tablist\" aria-multiselectable=\"true\" class=\"accordion mb-5 parent_69d00a8136cac\">\n\t<div class=\"accordion-group\">\n\t<div class=\"accordion-header no-gradient collapsed\" role=\"tab\" id=\"group_69d00a8136da0\" data-toggle=\"collapse\" data-target=\"#group_69d00a8136da0_collapse\" aria-expanded=\"true\" aria-controls=\"group_69d00a8136da0_collapse\">\n\t\t<div class=\"accordion-title\">\n\t\t\tSQL for FBA stock\t\t\t<span class=\"fas fa-caret-up indicator\"><\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div id=\"group_69d00a8136da0_collapse\" class=\"accordion-collapse collapse \" role=\"tabpanel\" aria-labelledby=\"group_69d00a8136da0\" data-parent=\".parent_69d00a8136cac\">\n\t\t<div class=\"accordion-body clearfix\">\n\t\t\t<div data-codecopy=\"1\" class=\"media-item\">\n\t<div class=\"media-object\">\n\t\t<span class=\"fa-stack fa-stacksize-2x\">\n\t\t\t<span class=\"far fa-circle fa-stack-2x text-wawi\"><\/span>\n\t\t\t<span class=\"fas fa-code fa-stack-1x text-wawi\"><\/span>\n\t\t<\/span>\n\t<\/div>\n\t<div class=\"media-content\">\n\t\t<pre><code class=\"rounded bg-rysywhite p-5 sql\">SELECT tArtikel.cArtNr AS Artikelnummer\n\t, ROUND(CONVERT(FLOAT, vLagerbestandEx.fZulauf), 2) AS Zulauf\n\t, ROUND(CONVERT(FLOAT, vLagerbestandEx.fVerfuegbar), 2) AS &#039;Wawi Verf&uuml;gbar&#039;\n\t, ROUND(CONVERT(FLOAT, vLagerbestandEx.fVerfuegbar + ISNULL(jAmazon.FBA_verfuegbar, 0)), 2) AS &#039;Gesamt Verf&uuml;gbar&#039;\n\t, CASE\n\t\tWHEN jAmazon.FBA_verfuegbar IS NULL THEN &#039;Nein&#039;\n\t\tELSE &#039;Ja&#039;\n\t\tEND AS &#039;FBA Angebot?&#039;\n\t, ISNULL(jAmazon.FBA_verfuegbar, 0) AS &#039;FBA Verf&uuml;gbar&#039;\n\t, ISNULL(jAmazon.FBA_warehouse, 0) AS &#039;FBA Warehouse&#039;\n\t, ISNULL(jAmazon.FBA_unsellabe, 0) AS &#039;FBA Unsellable&#039;\n\t, ISNULL(jAmazon.FBA_reserved, 0) AS &#039;FBA Reserved&#039;\n\t, ISNULL(jAmazon.FBA_total, 0) AS &#039;FBA Total&#039;\n\t, ISNULL(jAmazon.FBA_inboundWorking, 0) AS &#039;FBA Inbound Working&#039;\n\t, ISNULL(jAmazon.FBA_inboundShipped, 0) AS &#039;FBA Inbound Shipped&#039;\n\t, ISNULL(jAmazon.FBA_receiving, 0) AS &#039;FBA Receiving&#039;\nFROM tArtikel\nJOIN vLagerbestandEx ON vLagerbestandEx.kArtikel = tartikel.kArtikel\nLEFT JOIN ( \n    SELECT\tpf_amazon_angebot_mapping.kArtikel,\n\t\t\tSUM(pf_amazon_angebot_fba.nQuantity) AS FBA_verfuegbar,\n\t\t\tSUM(pf_amazon_angebot_fba.nQtyWarehouse) AS FBA_warehouse,\n\t\t\tSUM(pf_amazon_angebot_fba.nQtyUnsellable) AS FBA_unsellabe,\n\t\t\tSUM(pf_amazon_angebot_fba.nQtyReserved) AS FBA_reserved,\n\t\t\tSUM(pf_amazon_angebot_fba.nQtyTotal) AS FBA_total,\n\t\t\tSUM(pf_amazon_angebot_fba.nQtyInboundWorking) AS FBA_inboundWorking,\n\t\t\tSUM(pf_amazon_angebot_fba.nQtyInboundShipped) AS FBA_inboundShipped,\n\t\t\tSUM(pf_amazon_angebot_fba.nQtyReceiving) AS FBA_receiving\n    FROM pf_amazon_angebot_mapping\n\tJOIN pf_amazon_angebot_fba ON pf_amazon_angebot_mapping.cSellerSKU = pf_amazon_angebot_fba.cSellerSKU\n\t\tAND pf_amazon_angebot_mapping.kUser = pf_amazon_angebot_fba.kUser\n    WHERE pf_amazon_angebot_mapping.kArtikel = @Key\n\tGROUP BY pf_amazon_angebot_mapping.kArtikel\n\t) AS jAmazon ON jAmazon.kArtikel = tArtikel.kArtikel\nWHERE tArtikel.kArtikel = @Key\n<\/code><\/pre>\n\t\t<span class=\"fas fa-paste text-shaftblue copy-btn\"><\/span>\n\t<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div>\n\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-FBA-Bestand-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-FBA-Bestand-jtl-wawi.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-FBA-Bestand-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-FBA-Bestand-jtl-wawi.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-FBA-Bestand-jtl-wawi-768x263.png 640w\" width=\"1022\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"350\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-FBA-Bestand-jtl-wawi.png&quot;,&quot;w&quot;:1022,&quot;h&quot;:350}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-wawi\" id=\"category-paths\">Category paths <span id='anchor-category-paths' data-href='#category-paths' class='far fa-link' data-anchor><\/span><\/h2>\t<p>With this custom overview, you can see all category paths of the selected item at a glance. The following information is shown:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-wawi\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCategory path\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCategory depth\t<\/li><\/ul><div id=\"parent_69d00a8137977\" role=\"tablist\" aria-multiselectable=\"true\" class=\"accordion mb-5 parent_69d00a8137977\">\n\t<div class=\"accordion-group\">\n\t<div class=\"accordion-header no-gradient collapsed\" role=\"tab\" id=\"group_69d00a8137a46\" data-toggle=\"collapse\" data-target=\"#group_69d00a8137a46_collapse\" aria-expanded=\"true\" aria-controls=\"group_69d00a8137a46_collapse\">\n\t\t<div class=\"accordion-title\">\n\t\t\tSQL for category paths\t\t\t<span class=\"fas fa-caret-up indicator\"><\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div id=\"group_69d00a8137a46_collapse\" class=\"accordion-collapse collapse \" role=\"tabpanel\" aria-labelledby=\"group_69d00a8137a46\" data-parent=\".parent_69d00a8137977\">\n\t\t<div class=\"accordion-body clearfix\">\n\t\t\t<div data-codecopy=\"1\" class=\"media-item\">\n\t<div class=\"media-object\">\n\t\t<span class=\"fa-stack fa-stacksize-2x\">\n\t\t\t<span class=\"far fa-circle fa-stack-2x text-wawi\"><\/span>\n\t\t\t<span class=\"fas fa-code fa-stack-1x text-wawi\"><\/span>\n\t\t<\/span>\n\t<\/div>\n\t<div class=\"media-content\">\n\t\t<pre><code class=\"rounded bg-rysywhite p-5 sql\">WITH kategorien AS\n( \n\tSELECT dbo.tkategorie.kKategorie, dbo.tkategorie.kOberKategorie, 1 AS Tiefe, CAST(tKategorieSprache.cName AS varchar(500)) AS Kategoriepfad\n\tFROM dbo.tkategorie\n\tJOIN dbo.tSpracheUsed ON nStandard = 1\n\tJOIN dbo.tKategorieSprache ON tKategorieSprache.kKategorie = tkategorie.kKategorie\n\t\tAND tKategorieSprache.kSprache = tSpracheUsed.kSprache\n\tJOIN tkategorieartikel ON tkategorieartikel.kKategorie = tkategorie.kKategorie\n\tWHERE dbo.tkategorieartikel.kArtikel  = @Key\n\tUNION ALL\n\tSELECT dbo.tkategorie.kKategorie, dbo.tkategorie.kOberKategorie, Tiefe +1, CAST(tKategorieSprache.cName + &#039; -&gt; &#039; + kategorien.Kategoriepfad AS varchar(500))  AS Kategoriepfad\n\tFROM dbo.tkategorie\n\tJOIN dbo.tSpracheUsed ON nStandard = 1\n\tJOIN dbo.tKategorieSprache ON tKategorieSprache.kKategorie = tkategorie.kKategorie\n\t\tAND tKategorieSprache.kSprache = tSpracheUsed.kSprache\n\tJOIN kategorien ON dbo.tkategorie.kKategorie = kategorien.kOberKategorie\n)\nSELECT Kategoriepfad\n\t, Tiefe AS Kategorietiefe\nFROM kategorien\nWHERE kOberKategorie = 0\nGROUP BY Kategoriepfad, Tiefe<\/code><\/pre>\n\t\t<span class=\"fas fa-paste text-shaftblue copy-btn\"><\/span>\n\t<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div>\n\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Kategoriepfade-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Kategoriepfade-jtl-wawi.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Kategoriepfade-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Kategoriepfade-jtl-wawi.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Kategoriepfade-jtl-wawi-768x263.png 640w\" width=\"1023\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"350\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-Kategoriepfade-jtl-wawi.png&quot;,&quot;w&quot;:1023,&quot;h&quot;:350}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-wawi\" id=\"complex-item-key-performance-indicators-kpis\">Complex item key performance indicators (KPIs) <span id='anchor-complex-item-key-performance-indicators-kpis' data-href='#complex-item-key-performance-indicators-kpis' class='far fa-link' data-anchor><\/span><\/h2>\t<p>With this custom overview, you can see extensive information regarding awaiting delivery, range of coverage, sales and returns. Parent-child relationships as well as bills of materials are displayed in a component-by-component and additionally aggregated manner. The following information is shown:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-wawi\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tItem type\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSKU\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tItem name\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tAvailable\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tAwaiting delivery\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tRange of coverage\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSales in the last 30 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSales in the last 90 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSales in the last 365 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tTotal sales\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tAverage Gross SP\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tReturn rate\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSell-through rate (Per month)\t<\/li><\/ul><div id=\"parent_69d00a8138e9b\" role=\"tablist\" aria-multiselectable=\"true\" class=\"accordion mb-5 parent_69d00a8138e9b\">\n\t<div class=\"accordion-group\">\n\t<div class=\"accordion-header no-gradient collapsed\" role=\"tab\" id=\"group_69d00a8138fda\" data-toggle=\"collapse\" data-target=\"#group_69d00a8138fda_collapse\" aria-expanded=\"true\" aria-controls=\"group_69d00a8138fda_collapse\">\n\t\t<div class=\"accordion-title\">\n\t\t\tSQL for complex item KPIs\t\t\t<span class=\"fas fa-caret-up indicator\"><\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div id=\"group_69d00a8138fda_collapse\" class=\"accordion-collapse collapse \" role=\"tabpanel\" aria-labelledby=\"group_69d00a8138fda\" data-parent=\".parent_69d00a8138e9b\">\n\t\t<div class=\"accordion-body clearfix\">\n\t\t\t<div data-codecopy=\"1\" class=\"media-item\">\n\t<div class=\"media-object\">\n\t\t<span class=\"fa-stack fa-stacksize-2x\">\n\t\t\t<span class=\"far fa-circle fa-stack-2x text-wawi\"><\/span>\n\t\t\t<span class=\"fas fa-code fa-stack-1x text-wawi\"><\/span>\n\t\t<\/span>\n\t<\/div>\n\t<div class=\"media-content\">\n\t\t<pre><code class=\"rounded bg-rysywhite p-5 sql\">-- wenn Vaterartikel, dann ganz oben auch die gesamtsumme aller kinder\n-- erg&auml;nzen um  Abverkaufsquote (verkaufte Teile \/ (verkaufte Teile + Lagerbestand\n\n-- wenn St&uuml;ckliste, dann alle Komponenten anzeigen und ganz oben die Gesamtsumme der Kinder\n-- Wenn Std Artikel, dann auch anzeigen\n-- (wenn komponente von SL -&gt; Dann alle SLs auch anzeigen)\n--\n\n\n-- Vaterartikel bei Varkombis\nSELECT  \n\t\t&#039;Vater (kumuliert)&#039; AS &#039;Artikeltyp&#039;,\n\t\tjArtikel.cArtNr AS ArtNr,\n        CONCAT(&#039;(Vater kumuliert) &#039;, jArtikel.cName) AS Artikelname, \n        ROUND(CONVERT(FLOAT, SUM(vLagerbestandEx.fVerfuegbar)), 2) AS &#039;Verf&uuml;gbar&#039;,\n        ROUND(CONVERT(FLOAT, SUM(vLagerbestandEx.fZulauf)), 2) AS &#039;Zulauf&#039;,\n        CASE\n            WHEN ISNULL(SUM(jLetzte365Tage.absatz), 0) &gt; 0 THEN CONCAT(ROUND(CONVERT(FLOAT, SUM(vLagerbestandEx.fVerfuegbar) \/ (ISNULL(SUM(jLetzte365Tage.absatz), 0) \/ 365)), 1), &#039; Tage&#039;)\n            ELSE &#039;unendlich&#039;\n        END AS &#039;Lagerreichweite&#039;,\n        ISNULL(SUM(jLetzte30Tage.absatz), 0) AS &#039;Absatz 30 Tage&#039;,\n        ISNULL(SUM(jLetzte90Tage.absatz), 0) AS &#039;Abs. 90 Tage&#039;,\n        ISNULL(SUM(jLetzte365Tage.absatz), 0) AS &#039;Abs. 365 Tage&#039;,\n        ISNULL(SUM(jAbsatzGesamt.absatz), 0) AS &#039;Abs. Gesamt&#039;,\n        ISNULL(AVG(jVKDurchschnitt.vk), 0) AS &#039;&Oslash; VK-Brutto&#039;,\n        CONCAT(ROUND(CONVERT(FLOAT, (ISNULL(AVG(jRetourenGesamt.Retourenquote), 0))), 1), &#039;%&#039;) AS &#039;Retourenquote&#039;,\n        CASE\n            WHEN ISNULL(SUM(jLetzte30Tage.absatz), 0) &gt; 0 OR SUM(vLagerbestandEx.fVerfuegbar) &gt; 0 THEN CONCAT(ROUND(CONVERT(FLOAT, (ISNULL(SUM(jLetzte30Tage.absatz), 0) \/ (SUM(vLagerbestandEx.fVerfuegbar) + ISNULL(SUM(jLetzte30Tage.absatz), 0)) * 100)), 1), &#039;%&#039;)\n            ELSE &#039;-&#039;\n        END AS &#039;Abverkaufsquote (Monat)&#039;\nFROM tartikel\nJOIN\n(SELECT tartikel.kArtikel, cArtNr, tArtikelBeschreibung.cName\n\tFROM tartikel\n\tJOIN dbo.tSpracheUsed ON nStandard = 1\n\tJOIN dbo.tArtikelBeschreibung ON tArtikelBeschreibung.kArtikel = tartikel.kArtikel\n\t\tAND tArtikelBeschreibung.kSprache = tSpracheUsed.kSprache\n\t\tAND tArtikelBeschreibung.kPlattform=1\n\tWHERE tartikel.kArtikel = @Key\n) AS jArtikel ON jArtikel.kArtikel = @Key\nJOIN vLagerbestandEx ON vLagerbestandEx.kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte30Tage ON jLetzte30Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -90, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte90Tage ON jLetzte90Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte365Tage ON jLetzte365Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY tArtikel_kArtikel\n) AS jAbsatzGesamt ON jAbsatzGesamt.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS vk\n    FROM tbestellpos\n    JOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY tArtikel_kArtikel\n) AS jVKDurchschnitt ON jVKDurchschnitt.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\nSELECT jabsatzgesamt.tArtikel_kArtikel,\n        (ISNULL(retourengesamt.rm, 0.0)\/jabsatzgesamt.absatz)*100 as Retourenquote\nFROM\n(SELECT tArtikel_kArtikel,\n    ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n    GROUP BY tArtikel_kArtikel) AS jabsatzgesamt\nLEFT JOIN\n    (SELECT kArtikel,\n        ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    GROUP BY kArtikel) AS retourengesamt on retourengesamt.kArtikel=jabsatzgesamt.tArtikel_kArtikel)\n        as jRetourenGesamt on jRetourenGesamt.tArtikel_kArtikel = tartikel.kArtikel\nWHERE kVaterArtikel = @Key\nGROUP BY kVaterArtikel, jArtikel.cArtNr, jArtikel.cName\n\nUNION -- Kindartikel\nSELECT  \n\t\t&#039;-Kindartikel&#039; AS &#039;Artikeltyp&#039;,\n\t\ttartikel.cArtNr AS ArtNr,\n        tArtikelBeschreibung.cName AS Artikelname,       \n        ROUND(CONVERT(FLOAT, vLagerbestandEx.fVerfuegbar), 2) AS &#039;Verf&uuml;gbar&#039;,\n        ROUND(CONVERT(FLOAT, vLagerbestandEx.fZulauf), 2) AS &#039;Zulauf&#039;,\n        CASE\n            WHEN ISNULL(jLetzte365Tage.absatz, 0) &gt; 0 THEN CONCAT(ROUND(CONVERT(FLOAT, vLagerbestandEx.fVerfuegbar \/ (ISNULL(jLetzte365Tage.absatz, 0) \/ 365)), 1), &#039; Tage&#039;)\n            ELSE &#039;unendlich&#039;\n        END AS &#039;Lagerreichweite&#039;,\n        ISNULL(jLetzte30Tage.absatz, 0) AS &#039;Absatz 30 Tage&#039;,\n        ISNULL(jLetzte90Tage.absatz, 0) AS &#039;Abs. 90 Tage&#039;,\n        ISNULL(jLetzte365Tage.absatz, 0) AS &#039;Abs. 365 Tage&#039;,\n        ISNULL(jAbsatzGesamt.absatz, 0) AS &#039;Abs. Gesamt&#039;,\n        ISNULL(jVKDurchschnitt.vk, 0) AS &#039;&Oslash; VK-Brutto&#039;,\n        ISNULL(jRetourenGesamt.Retourenquote, &#039;0%&#039;) AS &#039;Retourenquote&#039;,\n        CASE\n            WHEN ISNULL(jLetzte30Tage.absatz, 0) &gt; 0 OR vLagerbestandEx.fVerfuegbar &gt; 0 THEN CONCAT(ROUND(CONVERT(FLOAT, (ISNULL(jLetzte30Tage.absatz, 0) \/ (vLagerbestandEx.fVerfuegbar + ISNULL(jLetzte30Tage.absatz, 0)) * 100)), 1), &#039;%&#039;)\n            ELSE &#039;-&#039;\n        END AS &#039;Aberkaufsquote (Monat)&#039;\nFROM tartikel\nJOIN dbo.tSpracheUsed ON nStandard = 1\nJOIN dbo.tArtikelBeschreibung ON tArtikelBeschreibung.kArtikel = tartikel.kArtikel\n    AND tArtikelBeschreibung.kSprache = tSpracheUsed.kSprache\n    AND tArtikelBeschreibung.kPlattform=1\nJOIN vLagerbestandEx ON vLagerbestandEx.kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte30Tage ON jLetzte30Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -90, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte90Tage ON jLetzte90Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte365Tage ON jLetzte365Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY tArtikel_kArtikel\n) AS jAbsatzGesamt ON jAbsatzGesamt.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS vk\n    FROM tbestellpos\n    JOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY tArtikel_kArtikel\n) AS jVKDurchschnitt ON jVKDurchschnitt.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\nSELECT jabsatzgesamt.tArtikel_kArtikel,\n        CONCAT((ISNULL(retourengesamt.rm, 0.0)\/jabsatzgesamt.absatz)*100, &#039;%&#039;) as Retourenquote\nFROM\n(SELECT tArtikel_kArtikel,\n    ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n    GROUP BY tArtikel_kArtikel) AS jabsatzgesamt\nLEFT JOIN\n    (SELECT kArtikel,\n        ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    GROUP BY kArtikel) AS retourengesamt on retourengesamt.kArtikel=jabsatzgesamt.tArtikel_kArtikel)\n        as jRetourenGesamt on jRetourenGesamt.tArtikel_kArtikel = tartikel.kArtikel\nWHERE kVaterArtikel = @Key\n\nUNION -- Standardartikel\nSELECT  \n\t\tCASE\n\t\t\tWHEN tartikel.kStueckliste &gt; 0 THEN &#039;St&uuml;ckliste&#039;\n\t\t\tELSE &#039;Standardartikel&#039;\n\t\tEND  AS &#039;Artikeltyp&#039;,\n\t\ttartikel.cArtNr AS ArtNr,\n\t\tCASE\n\t\t\tWHEN tartikel.kStueckliste &gt; 0 THEN CONCAT(&#039;(St&uuml;ckliste) &#039;, tArtikelBeschreibung.cName)\n\t\t\tELSE tArtikelBeschreibung.cName\n\t\tEND AS Artikelname,\n        ROUND(CONVERT(FLOAT, vLagerbestandEx.fVerfuegbar), 2) AS &#039;Verf&uuml;gbar&#039;,\n        ROUND(CONVERT(FLOAT, vLagerbestandEx.fZulauf), 2) AS &#039;Zulauf&#039;,\n        CASE\n            WHEN ISNULL(jLetzte365Tage.absatz, 0) &gt; 0 THEN CONCAT(ROUND(CONVERT(FLOAT, vLagerbestandEx.fVerfuegbar \/ (ISNULL(jLetzte365Tage.absatz, 0) \/ 365)), 1), &#039; Tage&#039;)\n            ELSE &#039;unendlich&#039;\n        END AS &#039;Lagerreichweite&#039;,\n        ISNULL(jLetzte30Tage.absatz, 0) AS &#039;Absatz 30 Tage&#039;,\n        ISNULL(jLetzte90Tage.absatz, 0) AS &#039;Abs. 90 Tage&#039;,\n        ISNULL(jLetzte365Tage.absatz, 0) AS &#039;Abs. 365 Tage&#039;,\n        ISNULL(jAbsatzGesamt.absatz, 0) AS &#039;Abs. Gesamt&#039;,\n        ISNULL(jVKDurchschnitt.vk, 0) AS &#039;&Oslash; VK-Brutto&#039;,\n        ISNULL(jRetourenGesamt.Retourenquote, &#039;0%&#039;) AS &#039;Retourenquote&#039;,\n        CASE\n            WHEN ISNULL(jLetzte30Tage.absatz, 0) &gt; 0 OR vLagerbestandEx.fVerfuegbar &gt; 0 THEN CONCAT(ROUND(CONVERT(FLOAT, (ISNULL(jLetzte30Tage.absatz, 0) \/ (vLagerbestandEx.fVerfuegbar + ISNULL(jLetzte30Tage.absatz, 0)) * 100)), 1), &#039;%&#039;)\n            ELSE &#039;-&#039;\n        END AS &#039;Aberkaufsquote (Monat)&#039;\nFROM tartikel\nJOIN dbo.tSpracheUsed ON nStandard = 1\nJOIN dbo.tArtikelBeschreibung ON tArtikelBeschreibung.kArtikel = tartikel.kArtikel\n    AND tArtikelBeschreibung.kSprache = tSpracheUsed.kSprache\n    AND tArtikelBeschreibung.kPlattform=1\nJOIN vLagerbestandEx ON vLagerbestandEx.kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte30Tage ON jLetzte30Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -90, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte90Tage ON jLetzte90Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte365Tage ON jLetzte365Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY tArtikel_kArtikel\n) AS jAbsatzGesamt ON jAbsatzGesamt.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS vk\n    FROM tbestellpos\n    JOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY tArtikel_kArtikel\n) AS jVKDurchschnitt ON jVKDurchschnitt.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\nSELECT jabsatzgesamt.tArtikel_kArtikel,\n        CONCAT((ISNULL(retourengesamt.rm, 0.0)\/jabsatzgesamt.absatz)*100, &#039;%&#039;) as Retourenquote\nFROM\n(SELECT tArtikel_kArtikel,\n    ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n    GROUP BY tArtikel_kArtikel) AS jabsatzgesamt\nLEFT JOIN\n    (SELECT kArtikel,\n        ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    GROUP BY kArtikel) AS retourengesamt on retourengesamt.kArtikel=jabsatzgesamt.tArtikel_kArtikel)\n        as jRetourenGesamt on jRetourenGesamt.tArtikel_kArtikel = tartikel.kArtikel\nWHERE tartikel.kArtikel = @Key\n\tAND nIstVater = 0\n\nUNION -- St&uuml;cklistenkomponenten\nSELECT  \n\t\t&#039;-Komponente&#039; AS &#039;Artikeltyp&#039;,\n\t\ttartikel.cArtNr AS ArtNr,\n        tArtikelBeschreibung.cName AS Artikelname,       \n        ROUND(CONVERT(FLOAT, vLagerbestandEx.fVerfuegbar), 2) AS &#039;Verf&uuml;gbar&#039;,\n        ROUND(CONVERT(FLOAT, vLagerbestandEx.fZulauf), 2) AS &#039;Zulauf&#039;,\n        CASE\n            WHEN ISNULL(jLetzte365Tage.absatz, 0) &gt; 0 THEN CONCAT(ROUND(CONVERT(FLOAT, vLagerbestandEx.fVerfuegbar \/ (ISNULL(jLetzte365Tage.absatz, 0) \/ 365)), 1), &#039; Tage&#039;)\n            ELSE &#039;unendlich&#039;\n        END AS &#039;Lagerreichweite&#039;,\n        ISNULL(jLetzte30Tage.absatz, 0) AS &#039;Absatz 30 Tage&#039;,\n        ISNULL(jLetzte90Tage.absatz, 0) AS &#039;Abs. 90 Tage&#039;,\n        ISNULL(jLetzte365Tage.absatz, 0) AS &#039;Abs. 365 Tage&#039;,\n        ISNULL(jAbsatzGesamt.absatz, 0) AS &#039;Abs. Gesamt&#039;,\n        ISNULL(jVKDurchschnitt.vk, 0) AS &#039;&Oslash; VK-Brutto&#039;,\n        ISNULL(jRetourenGesamt.Retourenquote, &#039;0%&#039;) AS &#039;Retourenquote&#039;,\n        CASE\n            WHEN ISNULL(jLetzte30Tage.absatz, 0) &gt; 0 OR vLagerbestandEx.fVerfuegbar &gt; 0 THEN CONCAT(ROUND(CONVERT(FLOAT, (ISNULL(jLetzte30Tage.absatz, 0) \/ (vLagerbestandEx.fVerfuegbar + ISNULL(jLetzte30Tage.absatz, 0)) * 100)), 1), &#039;%&#039;)\n            ELSE &#039;-&#039;\n        END AS &#039;Aberkaufsquote (Monat)&#039;\nFROM tartikel\nJOIN dbo.tSpracheUsed ON nStandard = 1\nJOIN dbo.tArtikelBeschreibung ON tArtikelBeschreibung.kArtikel = tartikel.kArtikel\n    AND tArtikelBeschreibung.kSprache = tSpracheUsed.kSprache\n    AND tArtikelBeschreibung.kPlattform=1\nJOIN vLagerbestandEx ON vLagerbestandEx.kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte30Tage ON jLetzte30Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -90, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte90Tage ON jLetzte90Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY tArtikel_kArtikel\n) AS jLetzte365Tage ON jLetzte365Tage.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY tArtikel_kArtikel\n) AS jAbsatzGesamt ON jAbsatzGesamt.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\n    SELECT tArtikel_kArtikel, ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKPreis), 0.0)), 2) AS vk\n    FROM tbestellpos\n    JOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY tArtikel_kArtikel\n) AS jVKDurchschnitt ON jVKDurchschnitt.tArtikel_kArtikel = tartikel.kArtikel\nLEFT JOIN (\nSELECT jabsatzgesamt.tArtikel_kArtikel,\n        CONCAT((ISNULL(retourengesamt.rm, 0.0)\/jabsatzgesamt.absatz)*100, &#039;%&#039;) as Retourenquote\nFROM\n(SELECT tArtikel_kArtikel,\n    ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n    GROUP BY tArtikel_kArtikel) AS jabsatzgesamt\nLEFT JOIN\n    (SELECT kArtikel,\n        ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    GROUP BY kArtikel) AS retourengesamt on retourengesamt.kArtikel=jabsatzgesamt.tArtikel_kArtikel)\n        as jRetourenGesamt on jRetourenGesamt.tArtikel_kArtikel = tartikel.kArtikel\nWHERE tartikel.kArtikel IN (SELECT tStueckliste.kArtikel FROM tartikel JOIN tStueckliste ON tStueckliste.kStueckliste = tartikel.kStueckliste WHERE tartikel.kArtikel = @Key)\n\tAND nIstVater = 0\nORDER BY Artikeltyp DESC, ArtNr\n<\/code><\/pre>\n\t\t<span class=\"fas fa-paste text-shaftblue copy-btn\"><\/span>\n\t<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div>\n\t<p>Depending on the selected item type, the overviews look like this:<\/p>\n<h4 class=\"d-flex align-items-center hl-wawi\" id=\"parent-item\">Parent item <span id='anchor-parent-item' data-href='#parent-item' class='far fa-link' data-anchor><\/span><\/h4>\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Vaterartikel-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Vaterartikel-jtl-wawi-1024x375.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Vaterartikel-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Vaterartikel-jtl-wawi-1024x375.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Vaterartikel-jtl-wawi-768x281.png 640w\" width=\"1024\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"375\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-Komplexe-Art-KPI-Vaterartikel-jtl-wawi.png&quot;,&quot;w&quot;:1026,&quot;h&quot;:376}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h4 class=\"d-flex align-items-center hl-wawi\" id=\"bill-of-materials\">Bill of materials <span id='anchor-bill-of-materials' data-href='#bill-of-materials' class='far fa-link' data-anchor><\/span><\/h4>\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Stueckliste-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Stueckliste-jtl-wawi.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Stueckliste-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Stueckliste-jtl-wawi.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Stueckliste-jtl-wawi-768x280.png 640w\" width=\"1024\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"373\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-Komplexe-Art-KPI-Stueckliste-jtl-wawi.png&quot;,&quot;w&quot;:1024,&quot;h&quot;:373}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h4 class=\"d-flex align-items-center hl-wawi\" id=\"standard-item\">Standard item <span id='anchor-standard-item' data-href='#standard-item' class='far fa-link' data-anchor><\/span><\/h4>\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Standardartikel-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Standardartikel-jtl-wawi.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Standardartikel-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Standardartikel-jtl-wawi.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Komplexe-Art-KPI-Standardartikel-jtl-wawi-768x280.png 640w\" width=\"1024\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"374\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-Komplexe-Art-KPI-Standardartikel-jtl-wawi.png&quot;,&quot;w&quot;:1025,&quot;h&quot;:374}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-wawi\" id=\"returns-overview\">Returns overview <span id='anchor-returns-overview' data-href='#returns-overview' class='far fa-link' data-anchor><\/span><\/h2>\t<p>With this custom overview you can see information on the returns of the selected item. The following information is shown:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-wawi\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPlatform\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCurrent month\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPrevious month\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tLast 30 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tLast 3 months\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCurrent year\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tLast 365 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPrevious year\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tTotal\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tReturn rate\t<\/li><\/ul><div id=\"parent_69d00a813b0b1\" role=\"tablist\" aria-multiselectable=\"true\" class=\"accordion mb-5 parent_69d00a813b0b1\">\n\t<div class=\"accordion-group\">\n\t<div class=\"accordion-header no-gradient collapsed\" role=\"tab\" id=\"group_69d00a813b1cd\" data-toggle=\"collapse\" data-target=\"#group_69d00a813b1cd_collapse\" aria-expanded=\"true\" aria-controls=\"group_69d00a813b1cd_collapse\">\n\t\t<div class=\"accordion-title\">\n\t\t\tSQL for return overview\t\t\t<span class=\"fas fa-caret-up indicator\"><\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div id=\"group_69d00a813b1cd_collapse\" class=\"accordion-collapse collapse \" role=\"tabpanel\" aria-labelledby=\"group_69d00a813b1cd\" data-parent=\".parent_69d00a813b0b1\">\n\t\t<div class=\"accordion-body clearfix\">\n\t\t\t<div data-codecopy=\"1\" class=\"media-item\">\n\t<div class=\"media-object\">\n\t\t<span class=\"fa-stack fa-stacksize-2x\">\n\t\t\t<span class=\"far fa-circle fa-stack-2x text-wawi\"><\/span>\n\t\t\t<span class=\"fas fa-code fa-stack-1x text-wawi\"><\/span>\n\t\t<\/span>\n\t<\/div>\n\t<div class=\"media-content\">\n\t\t<pre><code class=\"rounded bg-rysywhite p-5 sql\">SELECT    tPlattform.cName AS &#039;Plattform&#039;,\n        ISNULL(jAktMonat.rm, 0) AS &#039;Akt. Monat&#039;,\n        ISNULL(jVorMonat.rm, 0) AS &#039;Vormonat&#039;,\n        ISNULL(jLetzte30Tage.rm, 0) AS &#039;Letzte 30 Tage&#039;,\n        ISNULL(jLetzte3Monate.rm, 0) AS &#039;Letzte 3 Monate&#039;,      \n        ISNULL(jAktJahr.rm, 0) AS &#039;Akt. Jahr&#039;,\n        ISNULL(jLetzte365Tage.rm, 0) AS &#039;Letzte 365 Tage&#039;,\n        ISNULL(jVorjahr.rm, 0) AS &#039;Vorjahr&#039;,\n        ISNULL(jGesamt.rm, 0) AS &#039;Gesamt&#039;,\n        ISNULL(jRetourenGesamt.Retourenquote, &#039;0%&#039;) AS &#039;Retourenquote&#039;\nFROM tPlattform\nLEFT JOIN (\n    SELECT    nPlatform,\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n            AND YEAR(tRMRetoure.dErstellt) = YEAR(getdate())\n            AND MONTH(tRMRetoure.dErstellt) = MONTH(getdate())\n    GROUP BY nPlatform\n) as jAktMonat on jAktMonat.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    50 AS nPlatform, --Plattform = Amazon\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(pf_amazon_retourpos.nMenge), 0.0)), 2) AS rm\n    FROM pf_amazon_angebot_mapping\n\tJOIN pf_amazon_retourpos ON pf_amazon_retourpos.cSellerSKU = pf_amazon_angebot_mapping.cSellerSKU \n    WHERE    pf_amazon_angebot_mapping.kArtikel = @Key\n            AND YEAR(pf_amazon_retourpos.dRetourzeit) = YEAR(getdate())\n            AND MONTH(pf_amazon_retourpos.dRetourzeit) = MONTH(getdate())\n) as jAktMonatFBA on jAktMonatFBA.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    nPlatform,\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n            AND YEAR(tRMRetoure.dErstellt) = YEAR(DATEADD(MONTH, -1, getdate()))\n            AND MONTH(tRMRetoure.dErstellt) = MONTH(DATEADD(MONTH, -1, getdate()))\n    GROUP BY nPlatform\n) as jVorMonat on jVorMonat.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    50 AS nPlatform, --Plattform = Amazon\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(pf_amazon_retourpos.nMenge), 0.0)), 2) AS rm\n    FROM pf_amazon_angebot_mapping\n\tJOIN pf_amazon_retourpos ON pf_amazon_retourpos.cSellerSKU = pf_amazon_angebot_mapping.cSellerSKU \n    WHERE    pf_amazon_angebot_mapping.kArtikel = @Key\n            AND YEAR(pf_amazon_retourpos.dRetourzeit) = YEAR(DATEADD(MONTH, -1, getdate()))\n            AND MONTH(pf_amazon_retourpos.dRetourzeit) = MONTH(DATEADD(MONTH, -1, getdate()))\n) as jVorMonatFBA on jVorMonatFBA.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    nPlatform,\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n            AND tRMRetoure.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY nPlatform\n) as jLetzte30Tage on jLetzte30Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    50 AS nPlatform, --Plattform = Amazon\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(pf_amazon_retourpos.nMenge), 0.0)), 2) AS rm\n    FROM pf_amazon_angebot_mapping\n\tJOIN pf_amazon_retourpos ON pf_amazon_retourpos.cSellerSKU = pf_amazon_angebot_mapping.cSellerSKU \n    WHERE    pf_amazon_angebot_mapping.kArtikel = @Key\n\t\t\tAND pf_amazon_retourpos.dRetourzeit &gt; DATEADD(DAY, -30, getdate())\n) as jLetzte30TageFBA on jLetzte30TageFBA.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    nPlatform,\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n            AND tRMRetoure.dErstellt &gt; DATEADD(MONTH, -3, getdate())\n    GROUP BY nPlatform\n) as jLetzte3Monate on jLetzte3Monate.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    50 AS nPlatform, --Plattform = Amazon\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(pf_amazon_retourpos.nMenge), 0.0)), 2) AS rm\n    FROM pf_amazon_angebot_mapping\n\tJOIN pf_amazon_retourpos ON pf_amazon_retourpos.cSellerSKU = pf_amazon_angebot_mapping.cSellerSKU \n    WHERE    pf_amazon_angebot_mapping.kArtikel = @Key\n\t\t\tAND pf_amazon_retourpos.dRetourzeit &gt; DATEADD(MONTH, -3, getdate())\n) as jLetzte3MonateFBA on jLetzte3MonateFBA.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    nPlatform,\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n            AND YEAR(tRMRetoure.dErstellt) = YEAR(getdate())\n    GROUP BY nPlatform\n) as jAktJahr on jAktJahr.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    50 AS nPlatform, --Plattform = Amazon\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(pf_amazon_retourpos.nMenge), 0.0)), 2) AS rm\n    FROM pf_amazon_angebot_mapping\n\tJOIN pf_amazon_retourpos ON pf_amazon_retourpos.cSellerSKU = pf_amazon_angebot_mapping.cSellerSKU \n    WHERE    pf_amazon_angebot_mapping.kArtikel = @Key\n\t\t\tAND YEAR(pf_amazon_retourpos.dRetourzeit) = YEAR(getdate())\n) as jAktJahrFBA on jAktJahrFBA.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    nPlatform,\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n            AND tRMRetoure.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY nPlatform\n) as jLetzte365Tage on jLetzte365Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    50 AS nPlatform, --Plattform = Amazon\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(pf_amazon_retourpos.nMenge), 0.0)), 2) AS rm\n    FROM pf_amazon_angebot_mapping\n\tJOIN pf_amazon_retourpos ON pf_amazon_retourpos.cSellerSKU = pf_amazon_angebot_mapping.cSellerSKU \n    WHERE    pf_amazon_angebot_mapping.kArtikel = @Key\n\t\t\tAND pf_amazon_retourpos.dRetourzeit &gt; DATEADD(DAY, -365, getdate())\n) as jLetzte365TageFBA on jLetzte365TageFBA.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    nPlatform,\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n            AND YEAR(tRMRetoure.dErstellt) = YEAR(DATEADD(YEAR, -1, getdate()))\n    GROUP BY nPlatform\n) as jVorjahr on jVorjahr.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    50 AS nPlatform, --Plattform = Amazon\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(pf_amazon_retourpos.nMenge), 0.0)), 2) AS rm\n    FROM pf_amazon_angebot_mapping\n\tJOIN pf_amazon_retourpos ON pf_amazon_retourpos.cSellerSKU = pf_amazon_angebot_mapping.cSellerSKU \n    WHERE    pf_amazon_angebot_mapping.kArtikel = @Key\n\t\t\tAND YEAR(pf_amazon_retourpos.dRetourzeit) = YEAR(DATEADD(YEAR, -1, getdate()))\n) as jVorjahrFBA on jVorjahrFBA.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    nPlatform,\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n    GROUP BY nPlatform\n) as jGesamt on jGesamt.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT    50 AS nPlatform, --Plattform = Amazon\n            ROUND(CONVERT(FLOAT, ISNULL(SUM(pf_amazon_retourpos.nMenge), 0.0)), 2) AS rm\n    FROM pf_amazon_angebot_mapping\n\tJOIN pf_amazon_retourpos ON pf_amazon_retourpos.cSellerSKU = pf_amazon_angebot_mapping.cSellerSKU \n    WHERE    pf_amazon_angebot_mapping.kArtikel = @Key\n) as jGesamtFBA on jGesamtFBA.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n\tSELECT jabsatzgesamt.nPlatform, \n        CONCAT((ISNULL(retourengesamt.rm, 0.0)\/jabsatzgesamt.absatz)*100, &#039;%&#039;) as Retourenquote\n\tFROM (\n\t\tSELECT tbestellung.nPlatform,\n\t\tROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n\t\tFROM tbestellung\n\t\tJOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n\t\tWHERE tbestellpos.tArtikel_kArtikel = @Key\n\t\t\tAND tbestellung.cType = &#039;B&#039;\n\t\t\tAND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n\t\tGROUP BY nPlatform) AS jabsatzgesamt\n\t\tLEFT JOIN (\n\t\t\tSELECT nPlatform,\n\t\t\tROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n\t\t\tFROM tbestellung\n\t\t\tJOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n\t\t\tJOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n\t\t\tWHERE    tRMRetourePos.kArtikel = @Key\n\t\t\tGROUP BY nPlatform) AS retourengesamt on retourengesamt.nPlatform=jabsatzgesamt.nPlatform\n\t) as jRetourenGesamt on jRetourenGesamt.nPlatform = tPlattform.nPlattform\n\t\/* todo - nur fba bestellunegn zusammenz&auml;hlen\nLEFT JOIN (\n\tSELECT jabsatzgesamt.nPlatform, \n        CONCAT((ISNULL(jGesamtFBA.rm, 0.0)\/jabsatzgesamt.absatz)*100, &#039;%&#039;) as Retourenquote\n\tFROM (\n\t\tSELECT tbestellung.nPlatform,\n\t\tROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n\t\tFROM tbestellung\n\t\tJOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n\t\tWHERE tbestellpos.tArtikel_kArtikel = @Key\n\t\t\tAND tbestellung.cType = &#039;B&#039;\n\t\t\tAND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n\t\tGROUP BY nPlatform) AS jabsatzgesamt\n\t\tLEFT JOIN (\n\t\t\tSELECT    50 AS nPlatform, --Plattform = Amazon\n\t\t\t\t\tROUND(CONVERT(FLOAT, ISNULL(SUM(pf_amazon_retourpos.nMenge), 0.0)), 2) AS rm\n\t\t\tFROM pf_amazon_angebot_mapping\n\t\t\tJOIN pf_amazon_retourpos ON pf_amazon_retourpos.cSellerSKU = pf_amazon_angebot_mapping.cSellerSKU \n\t\t\tWHERE    pf_amazon_angebot_mapping.kArtikel = @Key\n\t\t) as jGesamtFBA on 1 = 1\n\t) as jRetourenGesamtFBA on jRetourenGesamtFBA.nPlatform = tPlattform.nPlattform\n\t*\/ \nUNION\nSELECT &#039;Alle Plattformen&#039; AS &#039;Plattform&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n            AND YEAR(tRMRetoure.dErstellt) = YEAR(getdate())\n            AND MONTH(tRMRetoure.dErstellt) = MONTH(getdate())) as &#039;Akt. Monat&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n            AND YEAR(tRMRetoure.dErstellt) = YEAR(DATEADD(MONTH, -1, getdate()))\n            AND MONTH(tRMRetoure.dErstellt) = MONTH(DATEADD(MONTH, -1, getdate()))) as &#039;Vormonat&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n    AND tRMRetoure.dErstellt &gt; DATEADD(DAY, -30, getdate())) as &#039;Letzte 30 Tage&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n    AND tRMRetoure.dErstellt &gt; DATEADD(MONTH, -3, getdate())) as &#039;Letzte 3 Monate&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n    AND YEAR(tRMRetoure.dErstellt) = YEAR(getdate())) as &#039;Akt. Jahr&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n    AND tRMRetoure.dErstellt &gt; DATEADD(DAY, -365, getdate())) as &#039;Letzte 365 Tage&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n    AND YEAR(tRMRetoure.dErstellt) = YEAR(DATEADD(YEAR, -1, getdate()))) as &#039;Vorjahr&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key) as &#039;Gesamt&#039;,\n    (SELECT CONCAT(ROUND((retourengesamt.rm\/jabsatzgesamt.absatz)*100, 2), &#039;%&#039;) as Retourenquote\nFROM\n(SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key) AS retourengesamt\nJOIN \n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;) AS jabsatzgesamt on 1=1) AS Retourenquote\nORDER BY Plattform<\/code><\/pre>\n\t\t<span class=\"fas fa-paste text-shaftblue copy-btn\"><\/span>\n\t<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div>\n\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Retourenuebersicht-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Retourenuebersicht-jtl-wawi.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Retourenuebersicht-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Retourenuebersicht-jtl-wawi.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Retourenuebersicht-jtl-wawi-768x281.png 640w\" width=\"1024\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"374\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-Retourenuebersicht-jtl-wawi.png&quot;,&quot;w&quot;:1024,&quot;h&quot;:374}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-wawi\" id=\"sales-per-platform\">Sales per platform <span id='anchor-sales-per-platform' data-href='#sales-per-platform' class='far fa-link' data-anchor><\/span><\/h2>\t<p>With this custom overview you can see how often the selected item is sold via the different sales channels. Marketplaces via third-party connections, online shop systems and POS cash registers are also considered in the overview. The following information is shown:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-wawi\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPlatform\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tToday\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tYesterday\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCurrent month\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPrevious month\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tLast 30 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tLast 3 months\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tCurrent year\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tLast 365 days\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPrevious year\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tTotal\t<\/li><\/ul><div id=\"parent_69d00a813c48c\" role=\"tablist\" aria-multiselectable=\"true\" class=\"accordion mb-5 parent_69d00a813c48c\">\n\t<div class=\"accordion-group\">\n\t<div class=\"accordion-header no-gradient collapsed\" role=\"tab\" id=\"group_69d00a813c5a8\" data-toggle=\"collapse\" data-target=\"#group_69d00a813c5a8_collapse\" aria-expanded=\"true\" aria-controls=\"group_69d00a813c5a8_collapse\">\n\t\t<div class=\"accordion-title\">\n\t\t\tSQL for sales per platform\t\t\t<span class=\"fas fa-caret-up indicator\"><\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div id=\"group_69d00a813c5a8_collapse\" class=\"accordion-collapse collapse \" role=\"tabpanel\" aria-labelledby=\"group_69d00a813c5a8\" data-parent=\".parent_69d00a813c48c\">\n\t\t<div class=\"accordion-body clearfix\">\n\t\t\t<div data-codecopy=\"1\" class=\"media-item\">\n\t<div class=\"media-object\">\n\t\t<span class=\"fa-stack fa-stacksize-2x\">\n\t\t\t<span class=\"far fa-circle fa-stack-2x text-wawi\"><\/span>\n\t\t\t<span class=\"fas fa-code fa-stack-1x text-wawi\"><\/span>\n\t\t<\/span>\n\t<\/div>\n\t<div class=\"media-content\">\n\t\t<pre><code class=\"rounded bg-rysywhite p-5 sql\">SELECT tPlattform.cName AS &#039;Plattform&#039;,\n        ISNULL(jAktTag.absatz, 0) AS &#039;Heute&#039;,\n        ISNULL(jGestern .absatz, 0) AS &#039;Gestern&#039;,  \n        ISNULL(jAktMonat.absatz, 0) AS &#039;Akt. Monat&#039;,\n        ISNULL(jVorMonat.absatz, 0) AS &#039;Vormonat&#039;,\n        ISNULL(jLetzte30Tage.absatz, 0) AS &#039;Letzte 30 Tage&#039;,\n        ISNULL(jLetzte3Monate.absatz, 0) AS &#039;Letzte 3 Monate&#039;,  \n        ISNULL(jAktJahr.absatz, 0) AS &#039;Akt. Jahr&#039;,\n        ISNULL(jLetzte365Tage.absatz, 0) AS &#039;Letzte 365 Tage&#039;,\n        ISNULL(jVorjahr.absatz, 0) AS &#039;Vorjahr&#039;,\n        ISNULL(jGesamt.absatz, 0) AS &#039;Gesamt&#039;,\n        ISNULL(jVKDurchschnitt.vknetto, 0) &#039;&Oslash; VK-Netto&#039;,\n        ISNULL(jRetourenGesamt.Retourenquote, &#039;0%&#039;) AS &#039;Retourenquote&#039;\nFROM tPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND YEAR(tBestellung.dErstellt) = YEAR(getdate())\n        AND MONTH(tBestellung.dErstellt) = MONTH(getdate())\n        AND DAY(tBestellung.dErstellt) = DAY(getdate())\n    GROUP BY nPlatform\n) AS jAktTag ON jAktTag.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND YEAR(tBestellung.dErstellt) = YEAR(DATEADD(DAY, -1, getdate()))\n        AND MONTH(tBestellung.dErstellt) = MONTH(DATEADD(DAY, -1, getdate()))\n        AND DAY(tBestellung.dErstellt) = DAY(DATEADD(DAY, -1, getdate()))\n    GROUP BY nPlatform\n) AS jGestern ON jGestern.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND YEAR(tBestellung.dErstellt) = YEAR(getdate())\n        AND MONTH(tBestellung.dErstellt) = MONTH(getdate())\n    GROUP BY nPlatform\n) AS jAktMonat ON jAktMonat.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND YEAR(tBestellung.dErstellt) = YEAR(DATEADD(MONTH, -1, getdate()))\n        AND MONTH(tBestellung.dErstellt) = MONTH(DATEADD(MONTH, -1, getdate()))\n    GROUP BY nPlatform\n) AS jVorMonat ON jVorMonat.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())\n    GROUP BY nPlatform\n) AS jLetzte30Tage ON jLetzte30Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(MONTH, -3, getdate())\n    GROUP BY nPlatform\n) AS jLetzte3Monate ON jLetzte3Monate.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND YEAR(tBestellung.dErstellt) = YEAR(getdate())\n    GROUP BY nPlatform\n) AS jAktJahr ON jAktJahr.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())\n    GROUP BY nPlatform\n) AS jLetzte365Tage ON jLetzte365Tage.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND YEAR(tBestellung.dErstellt) = YEAR(DATEADD(YEAR, -1, getdate()))\n    GROUP BY nPlatform\n) AS jVorjahr ON jVorjahr.nPlatform = tPlattform.nPlattform\nJOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY nPlatform\n) AS jGesamt ON jGesamt.nPlatform = tPlattform.nPlattform\nJOIN (\n    SELECT nPlatform, ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKNetto \/ tBestellung.fFaktor), 0.0)), 2) AS vknetto -- f&uuml;r Brutto &#039;fVKNetto&#039; durch &#039;fVKPreis&#039; ersetzen\n    FROM tbestellpos\n    JOIN tBestellung ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n    GROUP BY nPlatform\n) AS jVKDurchschnitt ON jVKDurchschnitt.nPlatform = tPlattform.nPlattform\nLEFT JOIN (\nSELECT jabsatzgesamt.nPlatform, \n        CONCAT((CASE WHEN jabsatzgesamt.absatz &gt; 0.0 THEN ISNULL(retourengesamt.rm, 0.0) \/ jabsatzgesamt.absatz ELSE 0.0 END)*100, &#039;%&#039;) as Retourenquote\nFROM\n(SELECT tbestellung.nPlatform,\n    ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n  AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n    GROUP BY nPlatform) AS jabsatzgesamt\nLEFT JOIN \n    (SELECT nPlatform,\n  ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key\n    GROUP BY nPlatform) AS retourengesamt on retourengesamt.nPlatform=jabsatzgesamt.nPlatform) \n        as jRetourenGesamt on jRetourenGesamt.nPlatform = tPlattform.nPlattform\nUNION\nSELECT &#039;Alle Plattformen&#039; AS &#039;Plattform&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND YEAR(tBestellung.dErstellt) = YEAR(getdate())\n        AND MONTH(tBestellung.dErstellt) = MONTH(getdate())\n        AND DAY(tBestellung.dErstellt) = DAY(getdate())) AS &#039;Heute&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND YEAR(tBestellung.dErstellt) = YEAR(DATEADD(DAY, -1, getdate()))\n        AND MONTH(tBestellung.dErstellt) = MONTH(DATEADD(DAY, -1, getdate()))\n        AND DAY(tBestellung.dErstellt) = DAY(DATEADD(DAY, -1, getdate()))) AS &#039;Gestern&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND YEAR(tBestellung.dErstellt) = YEAR(getdate())\n        AND MONTH(tBestellung.dErstellt) = MONTH(getdate())) AS &#039;Akt. Monat&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND YEAR(tBestellung.dErstellt) = YEAR(DATEADD(MONTH, -1, getdate()))\n        AND MONTH(tBestellung.dErstellt) = MONTH(DATEADD(MONTH, -1, getdate()))) AS &#039;Vormonat&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -30, getdate())) AS &#039;Letzte 30 Tage&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tBestellung.dErstellt &gt; DATEADD(MONTH, -3, getdate())) AS &#039;Letzte 3 Monate&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND YEAR(tBestellung.dErstellt) = YEAR(getdate())) AS &#039;Akt. Jahr&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND tBestellung.dErstellt &gt; DATEADD(DAY, -365, getdate())) AS &#039;Letzte 365 Tage&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n        AND YEAR(tBestellung.dErstellt) = YEAR(DATEADD(YEAR, -1, getdate()))) AS &#039;Vorjahr&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n    ) AS &#039;Gesamt&#039;,\n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(AVG(tbestellpos.fVKNetto \/ tBestellung.fFaktor), 0.0)), 2) AS vknetto -- f&uuml;r Brutto &#039;fVKNetto&#039; durch &#039;fVKPreis&#039; ersetzen\n    FROM tbestellpos\n    JOIN tBestellung ON tBestellung.kBestellung = tbestellpos.tBestellung_kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;\n        AND tBestellung.nStorno = 0 -- Stornierte Auftr&auml;ge nicht beachten\n    ) AS &#039;&Oslash; VK-Netto&#039;,\n(SELECT CONCAT(ROUND((CASE WHEN jabsatzgesamt.absatz &gt; 0.0 THEN retourengesamt.rm \/ jabsatzgesamt.absatz ELSE 0.0 END)*100, 2), &#039;%&#039;) as Retourenquote\nFROM\n(SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tRMRetourePos.fAnzahl), 0.0)), 2) AS rm\n    FROM tbestellung\n    JOIN tRMRetoure ON tRMRetoure.kBestellung = tBestellung.kBestellung\n    JOIN tRMRetourePos ON tRMRetourePos.kRMRetoure = tRMRetoure.kRMRetoure\n    WHERE    tRMRetourePos.kArtikel = @Key) AS retourengesamt\nJOIN \n    (SELECT ROUND(CONVERT(FLOAT, ISNULL(SUM(tbestellpos.nAnzahl), 0.0)), 2) AS absatz\n    FROM tbestellung\n    JOIN tbestellpos ON tbestellpos.tBestellung_kBestellung = tBestellung.kBestellung\n    WHERE tbestellpos.tArtikel_kArtikel = @Key\n        AND tbestellung.cType = &#039;B&#039;) AS jabsatzgesamt on 1=1) AS Retourenquote\nORDER BY Plattform<\/code><\/pre>\n\t\t<span class=\"fas fa-paste text-shaftblue copy-btn\"><\/span>\n\t<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div>\n\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigen-Uebersicht-Verkaeufe-pro-Plattform-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigen-Uebersicht-Verkaeufe-pro-Plattform-jtl-wawi.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigen-Uebersicht-Verkaeufe-pro-Plattform-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigen-Uebersicht-Verkaeufe-pro-Plattform-jtl-wawi.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigen-Uebersicht-Verkaeufe-pro-Plattform-jtl-wawi-768x281.png 640w\" width=\"1024\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"374\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigen-Uebersicht-Verkaeufe-pro-Plattform-jtl-wawi.png&quot;,&quot;w&quot;:1024,&quot;h&quot;:374}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-wawi\" id=\"awaiting-delivery-overview\">Awaiting delivery overview <span id='anchor-awaiting-delivery-overview' data-href='#awaiting-delivery-overview' class='far fa-link' data-anchor><\/span><\/h2>\t<p>With this custom overview, you can see information on pending purchase orders of the selected item. The following information is shown:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-wawi\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPurchase order ID\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tSupplier\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPurchase order date\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tOrder quantity\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tDelivered quantity\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tOpen quantity\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tEstimated delivery date\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tNote\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tInternal comment\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tPrinting note\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tnStatus\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\tDestination\t<\/li><\/ul><div id=\"parent_69d00a813d923\" role=\"tablist\" aria-multiselectable=\"true\" class=\"accordion mb-5 parent_69d00a813d923\">\n\t<div class=\"accordion-group\">\n\t<div class=\"accordion-header no-gradient collapsed\" role=\"tab\" id=\"group_69d00a813da06\" data-toggle=\"collapse\" data-target=\"#group_69d00a813da06_collapse\" aria-expanded=\"true\" aria-controls=\"group_69d00a813da06_collapse\">\n\t\t<div class=\"accordion-title\">\n\t\t\tSQL for Awaiting delivery overview\t\t\t<span class=\"fas fa-caret-up indicator\"><\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div id=\"group_69d00a813da06_collapse\" class=\"accordion-collapse collapse \" role=\"tabpanel\" aria-labelledby=\"group_69d00a813da06\" data-parent=\".parent_69d00a813d923\">\n\t\t<div class=\"accordion-body clearfix\">\n\t\t\t<div data-codecopy=\"1\" class=\"media-item\">\n\t<div class=\"media-object\">\n\t\t<span class=\"fa-stack fa-stacksize-2x\">\n\t\t\t<span class=\"far fa-circle fa-stack-2x text-wawi\"><\/span>\n\t\t\t<span class=\"fas fa-code fa-stack-1x text-wawi\"><\/span>\n\t\t<\/span>\n\t<\/div>\n\t<div class=\"media-content\">\n\t\t<pre><code class=\"rounded bg-rysywhite p-5 sql\">SELECT \n\ttLieferantenBestellung.cEigeneBestellnummer AS &#039;Bestellnummer&#039;,\n\ttLieferant.cFirma AS &#039;Lieferant&#039;,\n\tCONVERT(VARCHAR, tLieferantenBestellung.dErstellt, 104) AS &#039;Bestelldatum&#039;,\n\tROUND(CONVERT(FLOAT, tLieferantenBestellungPos.fMenge), 2) AS &#039;Bestellmenge&#039;,\n\tROUND(CONVERT(FLOAT, tLieferantenBestellungPos.fMengeGeliefert), 2) AS &#039;Gelieferte Menge&#039;,\n\tROUND(CONVERT(FLOAT, tLieferantenBestellungPos.fAnzahlOffen), 2) AS &#039;Offene Menge&#039;,\n\tCONVERT(VARCHAR, tLieferantenBestellungPos.dLieferdatum, 104) AS &#039;Vorauss. Lieferdatum&#039;,\n\ttLieferantenBestellungPos.cHinweis AS &#039;Hinweis&#039;,\n\ttLieferantenBestellung.cInternerKommentar AS &#039;Interner Kommentar&#039;,\n\ttLieferantenBestellung.cDruckAnmerkung AS &#039;Druckanmerkung&#039;,\n\ttLieferantenBestellung.nStatus,\n\tCASE\n\t\tWHEN tLieferantenBestellung.kKunde &gt; 0 THEN CONCAT(tLieferantenBestellungLA.cVorname, &#039; &#039;, tLieferantenBestellungLA.cNachname, &#039; &#039;, tLieferantenBestellungLA.cFirma)\n\t\tELSE ISNULL(tWarenLager.cName, &#039;&#039;)\n\tEND AS &#039;Zielort&#039;\nFROM tLieferantenBestellung\n\tJOIN tLieferantenBestellungPos ON tLieferantenBestellungPos.kLieferantenBestellung = tLieferantenBestellung.kLieferantenBestellung\n\tJOIN tArtikel ON tArtikel.kArtikel = tLieferantenBestellungPos.kArtikel\n\tJOIN tlieferant ON tlieferant.kLieferant = tLieferantenBestellung.kLieferant\n\tLEFT JOIN tWarenLager ON tWarenLager.kWarenLager = tLieferantenBestellung.kLager\n\tJOIN tLieferantenBestellungLA ON tLieferantenBestellungLA.kLieferantenBestellungLA = tLieferantenBestellung.kLieferantenBestellungLA\nWHERE tArtikel.kArtikel = @Key\n\tAND tLieferantenBestellung.nStatus &gt;= 20 \n\tAND tLieferantenBestellung.nStatus &lt; 500 \n\tAND (nDeleted = 0 OR nDeleted IS NULL)\n\tAND tLieferantenBestellungPos.fMengeGeliefert &lt; tLieferantenBestellungPos.fMenge<\/code><\/pre>\n\t\t<span class=\"fas fa-paste text-shaftblue copy-btn\"><\/span>\n\t<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div>\n\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Zulaufuebersicht-jtl-wawi.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Zulaufuebersicht-jtl-wawi.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Zulaufuebersicht-jtl-wawi.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Zulaufuebersicht-jtl-wawi.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/Eigene-Uebersicht-Zulaufuebersicht-jtl-wawi-768x279.png 640w\" width=\"1024\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"373\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/Eigene-Uebersicht-Zulaufuebersicht-jtl-wawi.png&quot;,&quot;w&quot;:1025,&quot;h&quot;:373}\" class=\"border-defaultgray border-w-1 border img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<div class=\"mt-5 card\">\n\t\t\t<span class=\"fa-layers mx-auto mt--4 fa-fw fa-3x text-wawi\">\n\t\t\t<span class=\"fas fa-circle\"><\/span>\n\t\t\t<span data-fa-transform=\"shrink-8\" class=\"fas fa-link fa-inverse\"><\/span>\n\t\t<\/span>\n\t\t\t<div class=\"card-body p-4\">\n\t\t<p class=\"d-flex align-items-center hl-wawi h4\">Related topics<\/p>\n<ul class=\"list-reset list-icons list-custom-square list-wawi\">\n\t\t<\/ul>\t<\/div>\n<\/div>[\/vc_column][\/vc_row]<\/div>","protected":false},"excerpt":{"rendered":"[vc_row][vc_column width=&#8221;1\/3&#8243; responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;order-md&#8220;: &#8220;1&#8220;, &#8220;col-lg&#8220;: &#8220;4&#8220;, &#8220;order-lg&#8220;: &#8220;12&#8220;}&#8221; advanced=&#8221;{&#8220;class&#8220;: &#8220;&#8220;, &#8220;hash&#8220;: &#8220;&#8220;}&#8221;][\/vc_column][vc_column responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;col-md&#8220;: &#8220;8&#8220;, &#8220;order-md&#8220;: &#8220;12&#8220;, <a href=\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/\">[&#8230;]<\/a>","protected":false},"author":2,"featured_media":0,"parent":191800,"menu_order":727,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","footnotes":""},"tags":[],"class_list":["post-172303","page","type-page","status-publish","hentry","search_categorie-jtl-wawi","pages_category-eigene-uebersichten-en"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Examples of Custom overviews for items &#8211; JTL-Guide<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Examples of Custom overviews for items &#8211; JTL-Guide\" \/>\n<meta property=\"og:description\" content=\"[vc_row][vc_column width=&#8221;1\/3&#8243; responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;order-md&#8220;: &#8220;1&#8220;, &#8220;col-lg&#8220;: &#8220;4&#8220;, &#8220;order-lg&#8220;: &#8220;12&#8220;}&#8221; advanced=&#8221;{&#8220;class&#8220;: &#8220;&#8220;, &#8220;hash&#8220;: &#8220;&#8220;}&#8221;][\/vc_column][vc_column responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;col-md&#8220;: &#8220;8&#8220;, &#8220;order-md&#8220;: &#8220;12&#8220;, [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/\" \/>\n<meta property=\"og:site_name\" content=\"JTL-Guide\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-20T07:06:14+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"64 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/\",\"url\":\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/\",\"name\":\"Examples of Custom overviews for items &#8211; JTL-Guide\",\"isPartOf\":{\"@id\":\"https:\/\/guide.jtl-software.com\/en\/#website\"},\"datePublished\":\"2023-01-23T13:05:21+00:00\",\"dateModified\":\"2023-09-20T07:06:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/#breadcrumb\"},\"inLanguage\":\"en-en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"JTL-Wawi\",\"item\":\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Items\",\"item\":\"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/artikel\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Examples of Custom overviews for items\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/guide.jtl-software.com\/en\/#website\",\"url\":\"https:\/\/guide.jtl-software.com\/en\/\",\"name\":\"JTL-Guide\",\"description\":\"Dokumentation f\u00fcr die gesamte Produktfamilie von JTL\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/guide.jtl-software.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-en\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Examples of Custom overviews for items &#8211; JTL-Guide","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/","og_locale":"en_US","og_type":"article","og_title":"Examples of Custom overviews for items &#8211; JTL-Guide","og_description":"[vc_row][vc_column width=&#8221;1\/3&#8243; responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;order-md&#8220;: &#8220;1&#8220;, &#8220;col-lg&#8220;: &#8220;4&#8220;, &#8220;order-lg&#8220;: &#8220;12&#8220;}&#8221; advanced=&#8221;{&#8220;class&#8220;: &#8220;&#8220;, &#8220;hash&#8220;: &#8220;&#8220;}&#8221;][\/vc_column][vc_column responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;col-md&#8220;: &#8220;8&#8220;, &#8220;order-md&#8220;: &#8220;12&#8220;, [...]","og_url":"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/","og_site_name":"JTL-Guide","article_modified_time":"2023-09-20T07:06:14+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"64 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/","url":"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/","name":"Examples of Custom overviews for items &#8211; JTL-Guide","isPartOf":{"@id":"https:\/\/guide.jtl-software.com\/en\/#website"},"datePublished":"2023-01-23T13:05:21+00:00","dateModified":"2023-09-20T07:06:14+00:00","breadcrumb":{"@id":"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/#breadcrumb"},"inLanguage":"en-en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/items\/examples-of-custom-overviews-for-items\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"JTL-Wawi","item":"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/"},{"@type":"ListItem","position":2,"name":"Items","item":"https:\/\/guide.jtl-software.com\/en\/jtl-wawi\/artikel\/"},{"@type":"ListItem","position":3,"name":"Examples of Custom overviews for items"}]},{"@type":"WebSite","@id":"https:\/\/guide.jtl-software.com\/en\/#website","url":"https:\/\/guide.jtl-software.com\/en\/","name":"JTL-Guide","description":"Dokumentation f\u00fcr die gesamte Produktfamilie von JTL","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/guide.jtl-software.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-en"}]}},"_links":{"self":[{"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages\/172303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/comments?post=172303"}],"version-history":[{"count":5,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages\/172303\/revisions"}],"predecessor-version":[{"id":233476,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages\/172303\/revisions\/233476"}],"up":[{"embeddable":true,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages\/191800"}],"wp:attachment":[{"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/media?parent=172303"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/tags?post=172303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}