diff --git a/KeyGenerator/frutas2.json b/KeyGenerator/frutas2.json new file mode 100644 index 0000000..7793c17 --- /dev/null +++ b/KeyGenerator/frutas2.json @@ -0,0 +1,162 @@ +[ + { + "name": "Paltas", + "plu": "3509", + "image": "https://server-ifps.accurateig.com/assets/commodities/3509-gem-avocado_1625011346.JPG" + }, + { + "name": "Papas", + "plu": "3414", + "image": "https://server-ifps.accurateig.com/assets/commodities/3414-baking-potato-white_1635179333.jpg" + }, + { + "name": "Limones", + "plu": "3626", + "image": "https://server-ifps.accurateig.com/assets/commodities/3626-meyer-lemons_1460404763.jpg" + }, + { + "name": "Cebollines / Cebollas", + "plu": "4068", + "image": "https://server-ifps.accurateig.com/assets/commodities/4068-onions-green-2_1625063600.jpg" + }, + { + "name": "Ajo", + "plu": "4608", + "image": "https://server-ifps.accurateig.com/assets/commodities/4608-garlic-regular_1637184640.jpg" + }, + { + "name": "Zanahorias", + "plu": "4560", + "image": "https://server-ifps.accurateig.com/assets/commodities/4560-carrots-baby_1625673556.jpg" + }, + { + "name": "Plátanos", + "plu": "4235", + "image": "https://server-ifps.accurateig.com/assets/commodities/4235-plantains-01_1625076376.jpg" + }, + { + "name": "Manzanas", + "plu": "4099", + "image": "https://server-ifps.accurateig.com/assets/commodities/apples-akane_1629314651.png" + }, + { + "name": "Naranjas", + "plu": "4381", + "image": "https://server-ifps.accurateig.com/assets/commodities/4381-oranges-blood-01_1625082045.jpg" + }, + { + "name": "Choclo", + "plu": "3087", + "image": "https://server-ifps.accurateig.com/assets/commodities/3087-corn-04_1614633780.jpg" + }, + { + "name": "Zapallo", + "plu": "4734", + "image": "https://server-ifps.accurateig.com/assets/commodities/4734-mini-pumpkin_1633964765.jpg" + }, + { + "name": "Zapallo italiano", + "plu": "4750", + "image": "https://server-ifps.accurateig.com/assets/commodities/4750-squash-acorn-01_1625751871.jpg" + }, + { + "name": "Repollo", + "plu": "4069", + "image": "https://server-ifps.accurateig.com/assets/commodities/4069-green-cabbage_1633958066.jpg" + }, + { + "name": "Betarragas", + "plu": "4537", + "image": "https://server-ifps.accurateig.com/assets/commodities/4537-baby-golden-beets_1635173500.jpg" + }, + { + "name": "Porotos verdes", + "plu": "4527", + "image": "https://server-ifps.accurateig.com/assets/commodities/4527-beans-chinese-long-07_1625671743.jpg" + }, + { + "name": "Mandarinas", + "plu": "3524", + "image": "https://server-ifps.accurateig.com/assets/commodities/noble-juicycrunch-productisolated-900x900-rgb-copy_1627662136.png" + }, + { + "name": "Uvas", + "plu": "3491", + "image": "https://server-ifps.accurateig.com/assets/commodities/arra-15-grape_1518122851.JPG" + }, + { + "name": "Duraznos", + "plu": "3113", + "image": "https://server-ifps.accurateig.com/assets/commodities/3113-peaches-donut-04_1614707155.jpg" + }, + { + "name": "Cerezas", + "plu": "3549", + "image": "https://server-ifps.accurateig.com/assets/commodities/screenshot-2023-05-02-100428_1683036305.png" + }, + { + "name": "Peras", + "plu": "3317", + "image": "https://server-ifps.accurateig.com/assets/commodities/3317-angelys-pear_1460402454.jpg" + }, + { + "name": "Ciruelas", + "plu": "4435", + "image": "https://server-ifps.accurateig.com/assets/commodities/4435-plums-greengage-01_1625667846.jpg" + }, + { + "name": "Kiwi", + "plu": "3279", + "image": "https://server-ifps.accurateig.com/assets/commodities/3279-kiwi-gold-03_1614718637.jpg" + }, + { + "name": "Piña", + "plu": "4430", + "image": "https://server-ifps.accurateig.com/assets/commodities/4430-pineapple-05_1625667649.jpg" + }, + { + "name": "Puerros", + "plu": "4629", + "image": "https://server-ifps.accurateig.com/assets/commodities/4629-leeks-02_1625680225.jpg" + }, + { + "name": "Alcachofas", + "plu": "4519", + "image": "https://server-ifps.accurateig.com/assets/commodities/4519-artichokes-baby-02_1625671366.jpg" + }, + { + "name": "Espárragos", + "plu": "4521", + "image": "https://server-ifps.accurateig.com/assets/commodities/4521-asparagus-01_1625671446.jpg" + }, + { + "name": "Berenjena", + "plu": "4599", + "image": "https://server-ifps.accurateig.com/assets/commodities/4599-baby-eggplant-aubergine_1633372314.jpg" + }, + { + "name": "Durazno Nectarin", + "plu": "3437", + "image": "https://server-ifps.accurateig.com/assets/commodities/yellow-fleshed-flat-nectarine_1629140965.jpg" + }, + { + "name": "Damascos", + "plu": "3044", + "image": "https://server-ifps.accurateig.com/assets/commodities/3044-apricots-black-velvet-03_1614619576.jpg" + }, + { + "name": "Membrillo", + "plu": "4447", + "image": "https://server-ifps.accurateig.com/assets/commodities/4447-quince-1_1625668926.jpg" + }, + { + "name": "Champiñones", + "plu": "4647", + "image": "https://server-ifps.accurateig.com/assets/commodities/4647-mushrooms-chanterelles-1_1625681503.jpg" + }, + { + "name": "Castañas", + "plu": "4927", + "image": "https://server-ifps.accurateig.com/assets/commodities/4927-chestnuts-italian-02_1625756943.jpg" + } +] diff --git a/KeyGenerator/generate_keys.py b/KeyGenerator/generate_keys.py index 7ef2236..9bf8d95 100644 --- a/KeyGenerator/generate_keys.py +++ b/KeyGenerator/generate_keys.py @@ -11,7 +11,7 @@ from io import BytesIO urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # --- CONFIGURATION --- -JSON_FILE = os.path.join(os.getcwd(), 'frutas.json') +JSON_FILE = os.path.join(os.getcwd(), 'frutas2.json') OUTPUT_DIR = os.path.join(os.getcwd(), 'keychain_cards') IMG_CACHE_DIR = os.path.join(os.getcwd(), 'image_cache') os.makedirs(OUTPUT_DIR, exist_ok=True) diff --git a/KeyGenerator/keychain_cards/PLU_3039_Physalis.png b/KeyGenerator/keychain_cards/PLU_3039_Physalis.png deleted file mode 100644 index ebd88f2..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3039_Physalis.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3040_Pitahaya.png b/KeyGenerator/keychain_cards/PLU_3040_Pitahaya.png deleted file mode 100644 index 7ae8456..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3040_Pitahaya.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3091_Bardana.png b/KeyGenerator/keychain_cards/PLU_3091_Bardana.png deleted file mode 100644 index 1de1db9..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3091_Bardana.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3099_Raíz_de_loto.png b/KeyGenerator/keychain_cards/PLU_3099_Raíz_de_loto.png deleted file mode 100644 index 76f66af..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3099_Raíz_de_loto.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3105_Castañas_de_cajú.png b/KeyGenerator/keychain_cards/PLU_3105_Castañas_de_cajú.png deleted file mode 100644 index f1381e1..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3105_Castañas_de_cajú.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3106_Macadamia.png b/KeyGenerator/keychain_cards/PLU_3106_Macadamia.png deleted file mode 100644 index c6c8bdd..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3106_Macadamia.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3137_Zapote.png b/KeyGenerator/keychain_cards/PLU_3137_Zapote.png deleted file mode 100644 index 7314271..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3137_Zapote.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3168_Radicchio.png b/KeyGenerator/keychain_cards/PLU_3168_Radicchio.png deleted file mode 100644 index 7027642..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3168_Radicchio.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3276_Ñame.png b/KeyGenerator/keychain_cards/PLU_3276_Ñame.png deleted file mode 100644 index f1a5db0..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3276_Ñame.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3303_Babaco.png b/KeyGenerator/keychain_cards/PLU_3303_Babaco.png deleted file mode 100644 index 08462a5..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3303_Babaco.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3311_Maracuyá.png b/KeyGenerator/keychain_cards/PLU_3311_Maracuyá.png deleted file mode 100644 index 63e7473..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3311_Maracuyá.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3321_Apionabo.png b/KeyGenerator/keychain_cards/PLU_3321_Apionabo.png deleted file mode 100644 index d781985..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3321_Apionabo.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3440_Granada.png b/KeyGenerator/keychain_cards/PLU_3440_Granada.png deleted file mode 100644 index 76252a7..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3440_Granada.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3475_Menta.png b/KeyGenerator/keychain_cards/PLU_3475_Menta.png deleted file mode 100644 index 15c52f1..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3475_Menta.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3478_Quelites.png b/KeyGenerator/keychain_cards/PLU_3478_Quelites.png deleted file mode 100644 index 209b9d2..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3478_Quelites.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3480_Guía_de_zapallo.png b/KeyGenerator/keychain_cards/PLU_3480_Guía_de_zapallo.png deleted file mode 100644 index 4ecb1d9..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3480_Guía_de_zapallo.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3481_Xpelón.png b/KeyGenerator/keychain_cards/PLU_3481_Xpelón.png deleted file mode 100644 index 82fbc80..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3481_Xpelón.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_3611_Plumcot.png b/KeyGenerator/keychain_cards/PLU_3611_Plumcot.png deleted file mode 100644 index aa46b77..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_3611_Plumcot.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4239_Moras___Berries.png b/KeyGenerator/keychain_cards/PLU_4239_Moras___Berries.png deleted file mode 100644 index 45b8762..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4239_Moras___Berries.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4261_Cocos.png b/KeyGenerator/keychain_cards/PLU_4261_Cocos.png deleted file mode 100644 index 451a72f..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4261_Cocos.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4266_Higos.png b/KeyGenerator/keychain_cards/PLU_4266_Higos.png deleted file mode 100644 index e70e659..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4266_Higos.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4279_Pomelo.png b/KeyGenerator/keychain_cards/PLU_4279_Pomelo.png deleted file mode 100644 index ad0b160..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4279_Pomelo.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4303_Kumquat.png b/KeyGenerator/keychain_cards/PLU_4303_Kumquat.png deleted file mode 100644 index 3f72717..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4303_Kumquat.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4305_Limas.png b/KeyGenerator/keychain_cards/PLU_4305_Limas.png deleted file mode 100644 index e3a52f8..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4305_Limas.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4308_Nísperos.png b/KeyGenerator/keychain_cards/PLU_4308_Nísperos.png deleted file mode 100644 index 0ade843..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4308_Nísperos.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4328_Limequats.png b/KeyGenerator/keychain_cards/PLU_4328_Limequats.png deleted file mode 100644 index d803553..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4328_Limequats.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4428_Caqui.png b/KeyGenerator/keychain_cards/PLU_4428_Caqui.png deleted file mode 100644 index 0a7df9f..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4428_Caqui.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4448_Tamarindo.png b/KeyGenerator/keychain_cards/PLU_4448_Tamarindo.png deleted file mode 100644 index 4dd17cc..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4448_Tamarindo.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4527_Porotos_verdes___Porotos.png b/KeyGenerator/keychain_cards/PLU_4527_Porotos_verdes___Porotos.png deleted file mode 100644 index c342bf2..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4527_Porotos_verdes___Porotos.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4606_Helechos.png b/KeyGenerator/keychain_cards/PLU_4606_Helechos.png deleted file mode 100644 index cb2f6c3..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4606_Helechos.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4612_Jengibre.png b/KeyGenerator/keychain_cards/PLU_4612_Jengibre.png deleted file mode 100644 index 53b6d90..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4612_Jengibre.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4614_Hojas_de_col___Verdes.png b/KeyGenerator/keychain_cards/PLU_4614_Hojas_de_col___Verdes.png deleted file mode 100644 index bad7536..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4614_Hojas_de_col___Verdes.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4625_Rábano_picante.png b/KeyGenerator/keychain_cards/PLU_4625_Rábano_picante.png deleted file mode 100644 index b776717..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4625_Rábano_picante.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4626_Jícama.png b/KeyGenerator/keychain_cards/PLU_4626_Jícama.png deleted file mode 100644 index 938291d..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4626_Jícama.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4644_Malanga.png b/KeyGenerator/keychain_cards/PLU_4644_Malanga.png deleted file mode 100644 index 7ecde57..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4644_Malanga.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4672_Chirivía.png b/KeyGenerator/keychain_cards/PLU_4672_Chirivía.png deleted file mode 100644 index 538b6d0..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4672_Chirivía.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4673_Arvejas.png b/KeyGenerator/keychain_cards/PLU_4673_Arvejas.png deleted file mode 100644 index 49d2157..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4673_Arvejas.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4739_Rábanos.png b/KeyGenerator/keychain_cards/PLU_4739_Rábanos.png deleted file mode 100644 index b20ed22..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4739_Rábanos.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4745_Ruibarbo.png b/KeyGenerator/keychain_cards/PLU_4745_Ruibarbo.png deleted file mode 100644 index c2652c4..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4745_Ruibarbo.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4747_Rutabagas.png b/KeyGenerator/keychain_cards/PLU_4747_Rutabagas.png deleted file mode 100644 index 4c6eee8..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4747_Rutabagas.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4790_Caña_de_azúcar.png b/KeyGenerator/keychain_cards/PLU_4790_Caña_de_azúcar.png deleted file mode 100644 index 4919816..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4790_Caña_de_azúcar.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4791_Tupinambo.png b/KeyGenerator/keychain_cards/PLU_4791_Tupinambo.png deleted file mode 100644 index a411c20..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4791_Tupinambo.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4795_Taro.png b/KeyGenerator/keychain_cards/PLU_4795_Taro.png deleted file mode 100644 index 0c1f02c..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4795_Taro.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4811_Nabo.png b/KeyGenerator/keychain_cards/PLU_4811_Nabo.png deleted file mode 100644 index 5aeed6a..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4811_Nabo.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4814_Castañas_de_agua.png b/KeyGenerator/keychain_cards/PLU_4814_Castañas_de_agua.png deleted file mode 100644 index 9c23279..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4814_Castañas_de_agua.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4816_Camote.png b/KeyGenerator/keychain_cards/PLU_4816_Camote.png deleted file mode 100644 index f71361c..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4816_Camote.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4819_Yuca.png b/KeyGenerator/keychain_cards/PLU_4819_Yuca.png deleted file mode 100644 index f5f7ce8..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4819_Yuca.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4862_Dátiles.png b/KeyGenerator/keychain_cards/PLU_4862_Dátiles.png deleted file mode 100644 index b3cc1bd..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4862_Dátiles.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4892_Eneldo.png b/KeyGenerator/keychain_cards/PLU_4892_Eneldo.png deleted file mode 100644 index 06801c2..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4892_Eneldo.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4924_Almendras.png b/KeyGenerator/keychain_cards/PLU_4924_Almendras.png deleted file mode 100644 index c8da3eb..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4924_Almendras.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4926_Nueces_de_Brasil.png b/KeyGenerator/keychain_cards/PLU_4926_Nueces_de_Brasil.png deleted file mode 100644 index a937227..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4926_Nueces_de_Brasil.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4931_Maníes.png b/KeyGenerator/keychain_cards/PLU_4931_Maníes.png deleted file mode 100644 index 863f58c..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4931_Maníes.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4936_Nueces_pecán.png b/KeyGenerator/keychain_cards/PLU_4936_Nueces_pecán.png deleted file mode 100644 index f8408f1..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4936_Nueces_pecán.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4939_Pistacho.png b/KeyGenerator/keychain_cards/PLU_4939_Pistacho.png deleted file mode 100644 index c3bb0ed..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4939_Pistacho.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4942_Semillas_de_maravilla.png b/KeyGenerator/keychain_cards/PLU_4942_Semillas_de_maravilla.png deleted file mode 100644 index 7892e99..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4942_Semillas_de_maravilla.png and /dev/null differ diff --git a/KeyGenerator/keychain_cards/PLU_4943_Nueces.png b/KeyGenerator/keychain_cards/PLU_4943_Nueces.png deleted file mode 100644 index af3ee74..0000000 Binary files a/KeyGenerator/keychain_cards/PLU_4943_Nueces.png and /dev/null differ diff --git a/frutas2.json b/frutas2.json new file mode 100644 index 0000000..7793c17 --- /dev/null +++ b/frutas2.json @@ -0,0 +1,162 @@ +[ + { + "name": "Paltas", + "plu": "3509", + "image": "https://server-ifps.accurateig.com/assets/commodities/3509-gem-avocado_1625011346.JPG" + }, + { + "name": "Papas", + "plu": "3414", + "image": "https://server-ifps.accurateig.com/assets/commodities/3414-baking-potato-white_1635179333.jpg" + }, + { + "name": "Limones", + "plu": "3626", + "image": "https://server-ifps.accurateig.com/assets/commodities/3626-meyer-lemons_1460404763.jpg" + }, + { + "name": "Cebollines / Cebollas", + "plu": "4068", + "image": "https://server-ifps.accurateig.com/assets/commodities/4068-onions-green-2_1625063600.jpg" + }, + { + "name": "Ajo", + "plu": "4608", + "image": "https://server-ifps.accurateig.com/assets/commodities/4608-garlic-regular_1637184640.jpg" + }, + { + "name": "Zanahorias", + "plu": "4560", + "image": "https://server-ifps.accurateig.com/assets/commodities/4560-carrots-baby_1625673556.jpg" + }, + { + "name": "Plátanos", + "plu": "4235", + "image": "https://server-ifps.accurateig.com/assets/commodities/4235-plantains-01_1625076376.jpg" + }, + { + "name": "Manzanas", + "plu": "4099", + "image": "https://server-ifps.accurateig.com/assets/commodities/apples-akane_1629314651.png" + }, + { + "name": "Naranjas", + "plu": "4381", + "image": "https://server-ifps.accurateig.com/assets/commodities/4381-oranges-blood-01_1625082045.jpg" + }, + { + "name": "Choclo", + "plu": "3087", + "image": "https://server-ifps.accurateig.com/assets/commodities/3087-corn-04_1614633780.jpg" + }, + { + "name": "Zapallo", + "plu": "4734", + "image": "https://server-ifps.accurateig.com/assets/commodities/4734-mini-pumpkin_1633964765.jpg" + }, + { + "name": "Zapallo italiano", + "plu": "4750", + "image": "https://server-ifps.accurateig.com/assets/commodities/4750-squash-acorn-01_1625751871.jpg" + }, + { + "name": "Repollo", + "plu": "4069", + "image": "https://server-ifps.accurateig.com/assets/commodities/4069-green-cabbage_1633958066.jpg" + }, + { + "name": "Betarragas", + "plu": "4537", + "image": "https://server-ifps.accurateig.com/assets/commodities/4537-baby-golden-beets_1635173500.jpg" + }, + { + "name": "Porotos verdes", + "plu": "4527", + "image": "https://server-ifps.accurateig.com/assets/commodities/4527-beans-chinese-long-07_1625671743.jpg" + }, + { + "name": "Mandarinas", + "plu": "3524", + "image": "https://server-ifps.accurateig.com/assets/commodities/noble-juicycrunch-productisolated-900x900-rgb-copy_1627662136.png" + }, + { + "name": "Uvas", + "plu": "3491", + "image": "https://server-ifps.accurateig.com/assets/commodities/arra-15-grape_1518122851.JPG" + }, + { + "name": "Duraznos", + "plu": "3113", + "image": "https://server-ifps.accurateig.com/assets/commodities/3113-peaches-donut-04_1614707155.jpg" + }, + { + "name": "Cerezas", + "plu": "3549", + "image": "https://server-ifps.accurateig.com/assets/commodities/screenshot-2023-05-02-100428_1683036305.png" + }, + { + "name": "Peras", + "plu": "3317", + "image": "https://server-ifps.accurateig.com/assets/commodities/3317-angelys-pear_1460402454.jpg" + }, + { + "name": "Ciruelas", + "plu": "4435", + "image": "https://server-ifps.accurateig.com/assets/commodities/4435-plums-greengage-01_1625667846.jpg" + }, + { + "name": "Kiwi", + "plu": "3279", + "image": "https://server-ifps.accurateig.com/assets/commodities/3279-kiwi-gold-03_1614718637.jpg" + }, + { + "name": "Piña", + "plu": "4430", + "image": "https://server-ifps.accurateig.com/assets/commodities/4430-pineapple-05_1625667649.jpg" + }, + { + "name": "Puerros", + "plu": "4629", + "image": "https://server-ifps.accurateig.com/assets/commodities/4629-leeks-02_1625680225.jpg" + }, + { + "name": "Alcachofas", + "plu": "4519", + "image": "https://server-ifps.accurateig.com/assets/commodities/4519-artichokes-baby-02_1625671366.jpg" + }, + { + "name": "Espárragos", + "plu": "4521", + "image": "https://server-ifps.accurateig.com/assets/commodities/4521-asparagus-01_1625671446.jpg" + }, + { + "name": "Berenjena", + "plu": "4599", + "image": "https://server-ifps.accurateig.com/assets/commodities/4599-baby-eggplant-aubergine_1633372314.jpg" + }, + { + "name": "Durazno Nectarin", + "plu": "3437", + "image": "https://server-ifps.accurateig.com/assets/commodities/yellow-fleshed-flat-nectarine_1629140965.jpg" + }, + { + "name": "Damascos", + "plu": "3044", + "image": "https://server-ifps.accurateig.com/assets/commodities/3044-apricots-black-velvet-03_1614619576.jpg" + }, + { + "name": "Membrillo", + "plu": "4447", + "image": "https://server-ifps.accurateig.com/assets/commodities/4447-quince-1_1625668926.jpg" + }, + { + "name": "Champiñones", + "plu": "4647", + "image": "https://server-ifps.accurateig.com/assets/commodities/4647-mushrooms-chanterelles-1_1625681503.jpg" + }, + { + "name": "Castañas", + "plu": "4927", + "image": "https://server-ifps.accurateig.com/assets/commodities/4927-chestnuts-italian-02_1625756943.jpg" + } +] diff --git a/image_cache/3044.jpg b/image_cache/3044.jpg new file mode 100644 index 0000000..6a933b7 Binary files /dev/null and b/image_cache/3044.jpg differ diff --git a/image_cache/3087.jpg b/image_cache/3087.jpg new file mode 100644 index 0000000..388e991 Binary files /dev/null and b/image_cache/3087.jpg differ diff --git a/image_cache/3113.jpg b/image_cache/3113.jpg new file mode 100644 index 0000000..32eb2da Binary files /dev/null and b/image_cache/3113.jpg differ diff --git a/image_cache/3279.jpg b/image_cache/3279.jpg new file mode 100644 index 0000000..de99515 Binary files /dev/null and b/image_cache/3279.jpg differ diff --git a/image_cache/3317.jpg b/image_cache/3317.jpg new file mode 100644 index 0000000..c4a30ca Binary files /dev/null and b/image_cache/3317.jpg differ diff --git a/image_cache/3414.jpg b/image_cache/3414.jpg new file mode 100644 index 0000000..6940871 Binary files /dev/null and b/image_cache/3414.jpg differ diff --git a/image_cache/3437.jpg b/image_cache/3437.jpg new file mode 100644 index 0000000..13f8e01 Binary files /dev/null and b/image_cache/3437.jpg differ diff --git a/image_cache/3491.jpg b/image_cache/3491.jpg new file mode 100644 index 0000000..aed375f Binary files /dev/null and b/image_cache/3491.jpg differ diff --git a/image_cache/3509.jpg b/image_cache/3509.jpg new file mode 100644 index 0000000..3f4727c Binary files /dev/null and b/image_cache/3509.jpg differ diff --git a/image_cache/3524.jpg b/image_cache/3524.jpg new file mode 100644 index 0000000..efc6b6d Binary files /dev/null and b/image_cache/3524.jpg differ diff --git a/image_cache/3549.jpg b/image_cache/3549.jpg new file mode 100644 index 0000000..68269b5 Binary files /dev/null and b/image_cache/3549.jpg differ diff --git a/image_cache/3626.jpg b/image_cache/3626.jpg new file mode 100644 index 0000000..47288a6 Binary files /dev/null and b/image_cache/3626.jpg differ diff --git a/image_cache/4068.jpg b/image_cache/4068.jpg new file mode 100644 index 0000000..f6b831c Binary files /dev/null and b/image_cache/4068.jpg differ diff --git a/image_cache/4069.jpg b/image_cache/4069.jpg new file mode 100644 index 0000000..c47d07b Binary files /dev/null and b/image_cache/4069.jpg differ diff --git a/image_cache/4099.jpg b/image_cache/4099.jpg new file mode 100644 index 0000000..cc801fd Binary files /dev/null and b/image_cache/4099.jpg differ diff --git a/image_cache/4235.jpg b/image_cache/4235.jpg new file mode 100644 index 0000000..f59b257 Binary files /dev/null and b/image_cache/4235.jpg differ diff --git a/image_cache/4381.jpg b/image_cache/4381.jpg new file mode 100644 index 0000000..d989789 Binary files /dev/null and b/image_cache/4381.jpg differ diff --git a/image_cache/4430.jpg b/image_cache/4430.jpg new file mode 100644 index 0000000..08f6f8e Binary files /dev/null and b/image_cache/4430.jpg differ diff --git a/image_cache/4435.jpg b/image_cache/4435.jpg new file mode 100644 index 0000000..280c65b Binary files /dev/null and b/image_cache/4435.jpg differ diff --git a/image_cache/4447.jpg b/image_cache/4447.jpg new file mode 100644 index 0000000..2d83cfa Binary files /dev/null and b/image_cache/4447.jpg differ diff --git a/image_cache/4519.jpg b/image_cache/4519.jpg new file mode 100644 index 0000000..65f8f23 Binary files /dev/null and b/image_cache/4519.jpg differ diff --git a/image_cache/4521.jpg b/image_cache/4521.jpg new file mode 100644 index 0000000..9cbb6f5 Binary files /dev/null and b/image_cache/4521.jpg differ diff --git a/image_cache/4527.jpg b/image_cache/4527.jpg new file mode 100644 index 0000000..effe987 Binary files /dev/null and b/image_cache/4527.jpg differ diff --git a/image_cache/4537.jpg b/image_cache/4537.jpg new file mode 100644 index 0000000..d5c8966 Binary files /dev/null and b/image_cache/4537.jpg differ diff --git a/image_cache/4560.jpg b/image_cache/4560.jpg new file mode 100644 index 0000000..8a6d57e Binary files /dev/null and b/image_cache/4560.jpg differ diff --git a/image_cache/4599.jpg b/image_cache/4599.jpg new file mode 100644 index 0000000..2783b13 Binary files /dev/null and b/image_cache/4599.jpg differ diff --git a/image_cache/4608.jpg b/image_cache/4608.jpg new file mode 100644 index 0000000..bc325ba Binary files /dev/null and b/image_cache/4608.jpg differ diff --git a/image_cache/4629.jpg b/image_cache/4629.jpg new file mode 100644 index 0000000..614f266 Binary files /dev/null and b/image_cache/4629.jpg differ diff --git a/image_cache/4647.jpg b/image_cache/4647.jpg new file mode 100644 index 0000000..36a95e4 Binary files /dev/null and b/image_cache/4647.jpg differ diff --git a/image_cache/4734.jpg b/image_cache/4734.jpg new file mode 100644 index 0000000..f88dd39 Binary files /dev/null and b/image_cache/4734.jpg differ diff --git a/image_cache/4750.jpg b/image_cache/4750.jpg new file mode 100644 index 0000000..4aabdc9 Binary files /dev/null and b/image_cache/4750.jpg differ diff --git a/image_cache/4927.jpg b/image_cache/4927.jpg new file mode 100644 index 0000000..53910a4 Binary files /dev/null and b/image_cache/4927.jpg differ diff --git a/keychain_3x3_perfect.pdf b/keychain_3x3_perfect.pdf new file mode 100644 index 0000000..4da2d4d Binary files /dev/null and b/keychain_3x3_perfect.pdf differ diff --git a/KeyGenerator/keychain_cards/PLU_3044_Damascos.png b/keychain_cards/PLU_3044_Damascos.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3044_Damascos.png rename to keychain_cards/PLU_3044_Damascos.png diff --git a/KeyGenerator/keychain_cards/PLU_3087_Choclo.png b/keychain_cards/PLU_3087_Choclo.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3087_Choclo.png rename to keychain_cards/PLU_3087_Choclo.png diff --git a/KeyGenerator/keychain_cards/PLU_3113_Duraznos.png b/keychain_cards/PLU_3113_Duraznos.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3113_Duraznos.png rename to keychain_cards/PLU_3113_Duraznos.png diff --git a/KeyGenerator/keychain_cards/PLU_3279_Kiwi.png b/keychain_cards/PLU_3279_Kiwi.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3279_Kiwi.png rename to keychain_cards/PLU_3279_Kiwi.png diff --git a/KeyGenerator/keychain_cards/PLU_3317_Peras.png b/keychain_cards/PLU_3317_Peras.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3317_Peras.png rename to keychain_cards/PLU_3317_Peras.png diff --git a/KeyGenerator/keychain_cards/PLU_3414_Papas.png b/keychain_cards/PLU_3414_Papas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3414_Papas.png rename to keychain_cards/PLU_3414_Papas.png diff --git a/KeyGenerator/keychain_cards/PLU_3437_Nectarinas.png b/keychain_cards/PLU_3437_Durazno_Nectarin.png similarity index 80% rename from KeyGenerator/keychain_cards/PLU_3437_Nectarinas.png rename to keychain_cards/PLU_3437_Durazno_Nectarin.png index d39ef59..c4ee9f2 100644 Binary files a/KeyGenerator/keychain_cards/PLU_3437_Nectarinas.png and b/keychain_cards/PLU_3437_Durazno_Nectarin.png differ diff --git a/KeyGenerator/keychain_cards/PLU_3491_Uvas.png b/keychain_cards/PLU_3491_Uvas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3491_Uvas.png rename to keychain_cards/PLU_3491_Uvas.png diff --git a/KeyGenerator/keychain_cards/PLU_3509_Paltas.png b/keychain_cards/PLU_3509_Paltas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3509_Paltas.png rename to keychain_cards/PLU_3509_Paltas.png diff --git a/KeyGenerator/keychain_cards/PLU_3524_Mandarinas.png b/keychain_cards/PLU_3524_Mandarinas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3524_Mandarinas.png rename to keychain_cards/PLU_3524_Mandarinas.png diff --git a/KeyGenerator/keychain_cards/PLU_3549_Cerezas.png b/keychain_cards/PLU_3549_Cerezas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3549_Cerezas.png rename to keychain_cards/PLU_3549_Cerezas.png diff --git a/KeyGenerator/keychain_cards/PLU_3626_Limones.png b/keychain_cards/PLU_3626_Limones.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_3626_Limones.png rename to keychain_cards/PLU_3626_Limones.png diff --git a/KeyGenerator/keychain_cards/PLU_4068_Cebollines___Cebollas.png b/keychain_cards/PLU_4068_Cebollines___Cebollas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4068_Cebollines___Cebollas.png rename to keychain_cards/PLU_4068_Cebollines___Cebollas.png diff --git a/KeyGenerator/keychain_cards/PLU_4069_Repollo.png b/keychain_cards/PLU_4069_Repollo.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4069_Repollo.png rename to keychain_cards/PLU_4069_Repollo.png diff --git a/KeyGenerator/keychain_cards/PLU_4099_Manzanas.png b/keychain_cards/PLU_4099_Manzanas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4099_Manzanas.png rename to keychain_cards/PLU_4099_Manzanas.png diff --git a/KeyGenerator/keychain_cards/PLU_4235_Plátanos.png b/keychain_cards/PLU_4235_Plátanos.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4235_Plátanos.png rename to keychain_cards/PLU_4235_Plátanos.png diff --git a/KeyGenerator/keychain_cards/PLU_4381_Naranjas.png b/keychain_cards/PLU_4381_Naranjas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4381_Naranjas.png rename to keychain_cards/PLU_4381_Naranjas.png diff --git a/KeyGenerator/keychain_cards/PLU_4430_Piña.png b/keychain_cards/PLU_4430_Piña.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4430_Piña.png rename to keychain_cards/PLU_4430_Piña.png diff --git a/KeyGenerator/keychain_cards/PLU_4435_Ciruelas.png b/keychain_cards/PLU_4435_Ciruelas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4435_Ciruelas.png rename to keychain_cards/PLU_4435_Ciruelas.png diff --git a/KeyGenerator/keychain_cards/PLU_4447_Membrillo.png b/keychain_cards/PLU_4447_Membrillo.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4447_Membrillo.png rename to keychain_cards/PLU_4447_Membrillo.png diff --git a/KeyGenerator/keychain_cards/PLU_4519_Alcachofas.png b/keychain_cards/PLU_4519_Alcachofas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4519_Alcachofas.png rename to keychain_cards/PLU_4519_Alcachofas.png diff --git a/KeyGenerator/keychain_cards/PLU_4521_Espárragos.png b/keychain_cards/PLU_4521_Espárragos.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4521_Espárragos.png rename to keychain_cards/PLU_4521_Espárragos.png diff --git a/keychain_cards/PLU_4527_Porotos_verdes.png b/keychain_cards/PLU_4527_Porotos_verdes.png new file mode 100644 index 0000000..873ff6b Binary files /dev/null and b/keychain_cards/PLU_4527_Porotos_verdes.png differ diff --git a/KeyGenerator/keychain_cards/PLU_4537_Betarragas.png b/keychain_cards/PLU_4537_Betarragas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4537_Betarragas.png rename to keychain_cards/PLU_4537_Betarragas.png diff --git a/KeyGenerator/keychain_cards/PLU_4560_Zanahorias.png b/keychain_cards/PLU_4560_Zanahorias.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4560_Zanahorias.png rename to keychain_cards/PLU_4560_Zanahorias.png diff --git a/KeyGenerator/keychain_cards/PLU_4599_Berenjena.png b/keychain_cards/PLU_4599_Berenjena.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4599_Berenjena.png rename to keychain_cards/PLU_4599_Berenjena.png diff --git a/KeyGenerator/keychain_cards/PLU_4608_Ajo.png b/keychain_cards/PLU_4608_Ajo.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4608_Ajo.png rename to keychain_cards/PLU_4608_Ajo.png diff --git a/KeyGenerator/keychain_cards/PLU_4629_Puerros.png b/keychain_cards/PLU_4629_Puerros.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4629_Puerros.png rename to keychain_cards/PLU_4629_Puerros.png diff --git a/KeyGenerator/keychain_cards/PLU_4647_Hongos___Callampas.png b/keychain_cards/PLU_4647_Champiñones.png similarity index 52% rename from KeyGenerator/keychain_cards/PLU_4647_Hongos___Callampas.png rename to keychain_cards/PLU_4647_Champiñones.png index a01b037..7d12d51 100644 Binary files a/KeyGenerator/keychain_cards/PLU_4647_Hongos___Callampas.png and b/keychain_cards/PLU_4647_Champiñones.png differ diff --git a/KeyGenerator/keychain_cards/PLU_4734_Zapallo.png b/keychain_cards/PLU_4734_Zapallo.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4734_Zapallo.png rename to keychain_cards/PLU_4734_Zapallo.png diff --git a/KeyGenerator/keychain_cards/PLU_4750_Zapallo_italiano___Zapallo.png b/keychain_cards/PLU_4750_Zapallo_italiano.png similarity index 57% rename from KeyGenerator/keychain_cards/PLU_4750_Zapallo_italiano___Zapallo.png rename to keychain_cards/PLU_4750_Zapallo_italiano.png index 64b67cf..08f980a 100644 Binary files a/KeyGenerator/keychain_cards/PLU_4750_Zapallo_italiano___Zapallo.png and b/keychain_cards/PLU_4750_Zapallo_italiano.png differ diff --git a/KeyGenerator/keychain_cards/PLU_4927_Castañas.png b/keychain_cards/PLU_4927_Castañas.png similarity index 100% rename from KeyGenerator/keychain_cards/PLU_4927_Castañas.png rename to keychain_cards/PLU_4927_Castañas.png diff --git a/templates/checkout.html b/templates/checkout.html index a743c89..492813a 100644 --- a/templates/checkout.html +++ b/templates/checkout.html @@ -214,10 +214,63 @@ .receipt-table td { padding: 3px 0; vertical-align: top; } .receipt-total-row { border-top: 1px dashed #000; font-weight: bold; font-size: 14px; } } + + /* ── Dropdown Select Fix ── */ + .form-select, + .form-select:focus { + background-color: var(--input-bg) !important; + color: var(--text-main) !important; + border: 1px solid var(--border) !important; + box-shadow: none !important; + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23adb5bd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important; + } + + .form-select:focus { + border-color: var(--accent) !important; + } + + [data-theme="dark"] .form-select { + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dcddde' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important; + } +

SekiPOS

@@ -368,9 +421,9 @@ -
-
@@ -824,6 +877,54 @@ window.print(); } + function openCustomProductModal() { + // Scrub the inputs clean + document.getElementById('custom-name').value = ''; + document.getElementById('custom-price').value = ''; + document.getElementById('custom-unit').value = 'unit'; + + const modal = bootstrap.Modal.getOrCreateInstance(document.getElementById('customProductModal')); + modal.show(); + setTimeout(() => document.getElementById('custom-name').focus(), 500); + } + + function addCustomProduct() { + const nameInput = document.getElementById('custom-name').value.trim(); + const priceInput = parseInt(document.getElementById('custom-price').value, 10); + const unitInput = document.getElementById('custom-unit').value; + + if (!nameInput || isNaN(priceInput) || priceInput <= 0) { + alert("Por favor ingresa un nombre y un precio válido."); + return; + } + + // Generate a unique dummy barcode so the cart math doesn't implode + const fakeBarcode = `MANUAL-${Date.now().toString().slice(-6)}`; + + const customProduct = { + barcode: fakeBarcode, + name: `* ${nameInput}`, // Adds a star to the receipt so you know it was manual + price: priceInput, + image: '', + stock: 0, + unit: unitInput + }; + + if (unitInput === 'kg') { + // Send it to your existing weight modal flow + pendingProduct = customProduct; + bootstrap.Modal.getInstance(document.getElementById('customProductModal')).hide(); + + const weightModal = bootstrap.Modal.getOrCreateInstance(document.getElementById('weightModal')); + weightModal.show(); + setTimeout(() => document.getElementById('weight-input').focus(), 500); + } else { + // Add directly as 1 unit + addToCart(customProduct, 1); + bootstrap.Modal.getInstance(document.getElementById('customProductModal')).hide(); + } + } + // Ensure the listener is intact document.getElementById('btn-confirm-remove').addEventListener('click', () => { if (itemIndexToRemove !== null) {