This commit is contained in:
Mario Zechner 2023-07-05 20:32:09 +02:00
parent 958c9f2d00
commit 36fd2e9705
4 changed files with 101 additions and 65 deletions

View File

@ -60,7 +60,7 @@ class ItemsChart extends View {
let priceChanges = new Array(uniqueDates.length);
for (let i = 0; i < uniqueDates.length; i++) {
priceChanges[i] = { date: uniqueDates[i], price: 0 };
priceChanges[i] = { date: uniqueDates[i], price: 0, unitPrice: 0 };
}
const priceScratch = new Array(uniqueDates.length);
items.forEach((product) => {
@ -87,6 +87,7 @@ class ItemsChart extends View {
for (let i = 0; i < priceScratch.length; i++) {
const price = priceScratch[i];
priceChanges[i].price += price;
priceChanges[i].unitPrice += price;
}
});

View File

@ -514,13 +514,13 @@
"code": "57"
},
{
"id": "sauerkonserven",
"url": "https://www.roksh.at/hofer/angebot/sauerkonserven",
"id": "fleisch-fischkonserven",
"url": "https://www.roksh.at/hofer/angebot/fleisch-fischkonserven",
"code": "57"
},
{
"id": "fleisch-fischkonserven",
"url": "https://www.roksh.at/hofer/angebot/fleisch-fischkonserven",
"id": "sauerkonserven",
"url": "https://www.roksh.at/hofer/angebot/sauerkonserven",
"code": "57"
},
{
@ -533,6 +533,11 @@
"url": "https://www.roksh.at/hofer/angebot/trockenfruchte",
"code": "03"
},
{
"id": "tafelschokolade",
"url": "https://www.roksh.at/hofer/angebot/tafelschokolade",
"code": "64"
},
{
"id": "bonbons-kaugummi",
"url": "https://www.roksh.at/hofer/angebot/bonbons-kaugummi",
@ -543,11 +548,6 @@
"url": "https://www.roksh.at/hofer/angebot/waffeln",
"code": "60"
},
{
"id": "tafelschokolade",
"url": "https://www.roksh.at/hofer/angebot/tafelschokolade",
"code": "64"
},
{
"id": "kekse",
"url": "https://www.roksh.at/hofer/angebot/kekse",

View File

@ -2894,6 +2894,11 @@
"url": "https://www.mueller.at/genusswelt/aktionen/",
"code": null
},
{
"id": "Genusswelt/Aktionen/Aus dem Prospekt",
"url": "https://www.mueller.at/genusswelt/aktionen/aus-dem-prospekt/",
"code": null
},
{
"id": "Tiershop/Tiernahrung",
"url": "https://www.mueller.at/tiershop/tiernahrung/",
@ -3079,6 +3084,11 @@
"url": "https://www.mueller.at/tiershop/marken/bosch-tiernahrung/bosch-heimat-tiernahrung/",
"code": "90"
},
{
"id": "Tiershop/Marken/bosch Tiernahrung/bosch Tierschutz",
"url": "https://www.mueller.at/tiershop/marken/bosch-tiernahrung/bosch-tierschutz/",
"code": null
},
{
"id": "Tiershop/Marken/CALIMBA",
"url": "https://www.mueller.at/tiershop/marken/calimba/",

View File

@ -89,6 +89,11 @@
"url": "https://www.penny.at/kategorie/fleisch-13035",
"code": "32"
},
{
"id": "Kühlwaren -> Fisch",
"url": "https://www.penny.at/kategorie/fisch-13045",
"code": "39"
},
{
"id": "Kühlwaren -> Käse, Aufstriche & Salate",
"url": "https://www.penny.at/kategorie/kaese-aufstriche-und-salate-13038",
@ -99,6 +104,16 @@
"url": "https://www.penny.at/kategorie/schnelle-kueche-13033",
"code": "30"
},
{
"id": "Kühlwaren -> Eier",
"url": "https://www.penny.at/kategorie/eier-13034",
"code": "31"
},
{
"id": "Kühlwaren -> Tofu & Vegetarische/Vegane Produkte",
"url": "https://www.penny.at/kategorie/tofu-und-vegetarischevegane-produkte-13046",
"code": "3B"
},
{
"id": "Kühlwaren -> Blätterteig & Strudelteig",
"url": "https://www.penny.at/kategorie/blaetterteig-und-strudelteig-13043",
@ -109,6 +124,11 @@
"url": "https://www.penny.at/kategorie/tiefkuehl-13047",
"code": "40"
},
{
"id": "Tiefkühl -> Desserts & Früchte",
"url": "https://www.penny.at/kategorie/desserts-und-fruechte-13054",
"code": "47"
},
{
"id": "Tiefkühl -> Eis",
"url": "https://www.penny.at/kategorie/eis-13048",
@ -139,16 +159,31 @@
"url": "https://www.penny.at/kategorie/fertiggerichte-13059",
"code": "54"
},
{
"id": "Grundnahrungsmittel -> Konserven & Sauerwaren",
"url": "https://www.penny.at/kategorie/konserven-und-sauerwaren-13062",
"code": "57"
},
{
"id": "Grundnahrungsmittel -> Essig & Öle",
"url": "https://www.penny.at/kategorie/essig-und-oele-13058",
"code": "53"
},
{
"id": "Grundnahrungsmittel -> Gewürze & Würzmittel",
"url": "https://www.penny.at/kategorie/gewuerze-und-wuerzmittel-13060",
"code": null
},
{
"id": "Grundnahrungsmittel -> Zucker & Süßstoffe",
"url": "https://www.penny.at/kategorie/zucker-und-suessstoffe-13069",
"code": "5E"
},
{
"id": "Grundnahrungsmittel -> Basisprodukte",
"url": "https://www.penny.at/kategorie/basisprodukte-13070",
"code": null
},
{
"id": "Grundnahrungsmittel -> Müsli & Cerealien",
"url": "https://www.penny.at/kategorie/muesli-und-cerealien-13065",
@ -204,11 +239,26 @@
"url": "https://www.penny.at/kategorie/chips-und-co-13073",
"code": "63"
},
{
"id": "Haustier",
"url": "https://www.penny.at/kategorie/haustier-13090",
"code": "90"
},
{
"id": "Haustier -> Katzen",
"url": "https://www.penny.at/kategorie/katzen-13092",
"code": "91"
},
{
"id": "Haushalt",
"url": "https://www.penny.at/kategorie/haushalt-13089",
"code": "80"
},
{
"id": "Haushalt -> Küchenrollen & WC-Papier",
"url": "https://www.penny.at/kategorie/kuechenrollen-und-wcpapier-13094",
"code": "84"
},
{
"id": "Haushalt -> Waschmittel & Weichspüler",
"url": "https://www.penny.at/kategorie/waschmittel-und-weichspueler-13099",
@ -219,6 +269,11 @@
"url": "https://www.penny.at/kategorie/reinigen-und-pflegen-13097",
"code": "88"
},
{
"id": "Haushalt -> Raumsprays & Kerzen",
"url": "https://www.penny.at/kategorie/raumsprays-und-kerzen-13096",
"code": null
},
{
"id": "Haushalt -> Pflanzen & Blumen",
"url": "https://www.penny.at/kategorie/pflanzen-und-blumen-13100",
@ -244,6 +299,11 @@
"url": "https://www.penny.at/kategorie/seifen-und-duschbaeder-13085",
"code": "78"
},
{
"id": "Pflege -> Mund- & Zahnhygiene",
"url": "https://www.penny.at/kategorie/mund-und-zahnhygiene-13083",
"code": null
},
{
"id": "Pflege -> Deodrants",
"url": "https://www.penny.at/kategorie/deodrants-13079",
@ -254,6 +314,16 @@
"url": "https://www.penny.at/kategorie/haarpflege-und-haarfarben-13080",
"code": "73"
},
{
"id": "Pflege -> Baby",
"url": "https://www.penny.at/kategorie/baby-13077",
"code": null
},
{
"id": "Pflege -> Sonnen- & Insektenschutzmittel",
"url": "https://www.penny.at/kategorie/sonnen-und-insektenschutzmittel-13088",
"code": "79"
},
{
"id": "Non-Food",
"url": "https://www.penny.at/kategorie/nonfood-13106",
@ -269,6 +339,11 @@
"url": "https://www.penny.at/kategorie/koerbe-koffer-und-co-13112",
"code": null
},
{
"id": "Non-Food -> Haushalt",
"url": "https://www.penny.at/kategorie/haushalt-13109",
"code": "82"
},
{
"id": "Non-Food -> Bekleidung & Textilien",
"url": "https://www.penny.at/kategorie/bekleidung-und-textilien-13107",
@ -279,89 +354,39 @@
"url": "https://www.penny.at/kategorie/saison-13111",
"code": null
},
{
"id": "Non-Food -> Küche",
"url": "https://www.penny.at/kategorie/kueche-13108",
"code": "83"
},
{
"id": "Brot & Gebäck -> Aufbackbrötchen & Toast",
"url": "https://www.penny.at/kategorie/aufbackbroetchen-und-toast-13019",
"code": "10"
},
{
"id": "Kühlwaren -> Fisch",
"url": "https://www.penny.at/kategorie/fisch-13045",
"code": "39"
},
{
"id": "Kühlwaren -> Eier",
"url": "https://www.penny.at/kategorie/eier-13034",
"code": "31"
},
{
"id": "Kühlwaren -> Tofu & Vegetarische/Vegane Produkte",
"url": "https://www.penny.at/kategorie/tofu-und-vegetarischevegane-produkte-13046",
"code": "3B"
},
{
"id": "Tiefkühl -> Desserts & Früchte",
"url": "https://www.penny.at/kategorie/desserts-und-fruechte-13054",
"code": "47"
},
{
"id": "Tiefkühl -> Gemüse & Kräuter",
"url": "https://www.penny.at/kategorie/gemuese-und-kraeuter-13051",
"code": "44"
},
{
"id": "Grundnahrungsmittel -> Konserven & Sauerwaren",
"url": "https://www.penny.at/kategorie/konserven-und-sauerwaren-13062",
"code": "57"
},
{
"id": "Süßes & Salziges -> Müsliriegel",
"url": "https://www.penny.at/kategorie/muesliriegel-13072",
"code": "62"
},
{
"id": "Haustier",
"url": "https://www.penny.at/kategorie/haustier-13090",
"code": "90"
},
{
"id": "Haustier -> Hunde",
"url": "https://www.penny.at/kategorie/hunde-13091",
"code": "90"
},
{
"id": "Haustier -> Katzen",
"url": "https://www.penny.at/kategorie/katzen-13092",
"code": "91"
},
{
"id": "Haushalt -> Küchenrollen & WC-Papier",
"url": "https://www.penny.at/kategorie/kuechenrollen-und-wcpapier-13094",
"code": "84"
},
{
"id": "Haushalt -> Taschentücher & Servietten",
"url": "https://www.penny.at/kategorie/taschentuecher-und-servietten-13098",
"code": "89"
},
{
"id": "Pflege -> Sonnen- & Insektenschutzmittel",
"url": "https://www.penny.at/kategorie/sonnen-und-insektenschutzmittel-13088",
"code": "79"
},
{
"id": "Pflege -> Strumpfhosen & Socken",
"url": "https://www.penny.at/kategorie/strumpfhosen-und-socken-13086",
"code": "7C"
},
{
"id": "Non-Food -> Haushalt",
"url": "https://www.penny.at/kategorie/haushalt-13109",
"code": "82"
},
{
"id": "Non-Food -> Küche",
"url": "https://www.penny.at/kategorie/kueche-13108",
"code": "83"
}
]