Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c2c5054814 | |||
| e058bd5f46 | |||
| d58958db39 | |||
| 9452743660 | |||
| 6a3865ef24 | |||
| 96d45710ac |
+46
-47
@@ -6366,12 +6366,22 @@ def edit_item(id):
|
||||
|
||||
return redirect(url_for('home_admin'))
|
||||
|
||||
def is_library_item(item):
|
||||
"""
|
||||
Prüft, ob ein Artikel ein Bibliotheks-Item ist.
|
||||
- 'other', None oder Leerstring -> Inventarsystem (False)
|
||||
- Jeder andere Medientyp ('Buch', 'CD', etc.) -> Bibliothek (True)
|
||||
"""
|
||||
if not item:
|
||||
return False
|
||||
item_type = item.get('ItemType', 'other')
|
||||
if not item_type:
|
||||
return False
|
||||
return item_type.strip().lower() != 'other'
|
||||
|
||||
|
||||
@app.route('/item_edit/<id>', methods=['GET', 'POST'])
|
||||
def item_edit(id):
|
||||
"""
|
||||
Endpoint zum Bearbeiten von Artikeln (unterstützt Bibliotheks- und Inventar-Modus).
|
||||
"""
|
||||
if 'username' not in session:
|
||||
if request.method == 'POST' and request.is_json:
|
||||
return jsonify({'success': False, 'message': 'Nicht angemeldet.'}), 401
|
||||
@@ -6391,22 +6401,26 @@ def item_edit(id):
|
||||
flash('Ungültige Element-ID.', 'error')
|
||||
return redirect(url_for('home_admin'))
|
||||
|
||||
show_library = cfg.MODULES.is_enabled('library')
|
||||
current_item = it.get_item(obj_id)
|
||||
if not current_item:
|
||||
flash('Element in der Datenbank nicht gefunden.', 'error')
|
||||
return redirect(url_for('home_admin'))
|
||||
|
||||
# --- GET: Bearbeitungsformular laden ---
|
||||
# Bibliothek-Status ermitteln
|
||||
library_module_active = cfg.MODULES.is_enabled('library')
|
||||
is_lib_item = it.is_library_item(current_item)
|
||||
show_library_features = library_module_active and is_lib_item
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# GET METHOD
|
||||
# -------------------------------------------------------------------
|
||||
if request.method == 'GET':
|
||||
item = it.get_item(id)
|
||||
if not item:
|
||||
flash('Element nicht gefunden.', 'error')
|
||||
return redirect(url_for('home_admin'))
|
||||
current_item['_id'] = str(current_item['_id'])
|
||||
|
||||
item['_id'] = str(item['_id'])
|
||||
|
||||
# Gruppen-Codes aufteilen (Basis-Code vs. Einzelcodes für die Textarea)
|
||||
base_code = item.get('Code_4', '')
|
||||
base_code = current_item.get('Code_4', '')
|
||||
individual_codes = []
|
||||
if item.get('SeriesGroupId'):
|
||||
group_ids = it.get_group_item_ids(str(item['_id']))
|
||||
if current_item.get('SeriesGroupId'):
|
||||
group_ids = it.get_group_item_ids(str(current_item['_id']))
|
||||
if group_ids:
|
||||
for gid in group_ids:
|
||||
g_item = it.get_item(gid)
|
||||
@@ -6414,26 +6428,22 @@ def item_edit(id):
|
||||
if c4 and c4 != base_code:
|
||||
individual_codes.append(c4)
|
||||
|
||||
item['IndividualCodes'] = '\n'.join(individual_codes)
|
||||
current_item['IndividualCodes'] = '\n'.join(individual_codes)
|
||||
|
||||
return render_template(
|
||||
'edit_library.html',
|
||||
username=session['username'],
|
||||
item=item,
|
||||
show_library_features=show_library,
|
||||
library_module_enabled=show_library,
|
||||
page_title=f"Bearbeiten: {item.get('Name', '')}"
|
||||
item=current_item,
|
||||
show_library_features=show_library_features,
|
||||
library_module_enabled=library_module_active,
|
||||
page_title=f"Bearbeiten: {current_item.get('Name', '')}"
|
||||
)
|
||||
|
||||
# --- POST: Änderungen speichern ---
|
||||
# -------------------------------------------------------------------
|
||||
# POST METHOD
|
||||
# -------------------------------------------------------------------
|
||||
redirect_target = request.referrer or url_for('home_admin')
|
||||
current_item = it.get_item(obj_id)
|
||||
|
||||
if not current_item:
|
||||
flash('Element in der Datenbank nicht gefunden.', 'error')
|
||||
return redirect(redirect_target)
|
||||
|
||||
# Gemeinsame Felder auslesen & bereinigen
|
||||
name = sanitize_form_value(request.form.get('name'))
|
||||
ort = sanitize_form_value(request.form.get('ort'))
|
||||
beschreibung = sanitize_form_value(request.form.get('beschreibung'))
|
||||
@@ -6441,7 +6451,11 @@ def item_edit(id):
|
||||
anschaffungs_kosten = sanitize_form_value(request.form.get('anschaffungskosten'))
|
||||
reservierbar = 'reservierbar' in request.form
|
||||
|
||||
# Barcode & Gruppen-Codes
|
||||
# Filter 1-3 für alle Objekte
|
||||
filter1 = expand_filter_selection(sanitize_form_value(request.form.getlist('filter')), 1)
|
||||
filter2 = expand_filter_selection(sanitize_form_value(request.form.getlist('filter2')), 2)
|
||||
filter3 = sanitize_form_value(request.form.getlist('filter3'))
|
||||
|
||||
code_4 = sanitize_form_value(request.form.get('code_4'))
|
||||
individual_codes_raw = request.form.get('individual_codes', '')
|
||||
|
||||
@@ -6453,7 +6467,6 @@ def item_edit(id):
|
||||
|
||||
all_codes_to_check = [code_4] + individual_codes
|
||||
|
||||
# Uniqueness-Check für alle übergebenen Barcodes
|
||||
current_group_id = current_item.get('SeriesGroupId')
|
||||
client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT)
|
||||
db_instance = client[cfg.MONGODB_DB]
|
||||
@@ -6476,29 +6489,17 @@ def item_edit(id):
|
||||
if has_code_error:
|
||||
return redirect(redirect_target)
|
||||
|
||||
# --- Modi-spezifische Auswertung ---
|
||||
if show_library:
|
||||
# 1. Bibliotheks-Modus
|
||||
if show_library_features:
|
||||
isbn_raw = sanitize_form_value(request.form.get('isbn', ''))
|
||||
item_isbn = normalize_and_validate_isbn(isbn_raw) if isbn_raw else ''
|
||||
item_type = sanitize_form_value(request.form.get('item_type_input', 'Buch'))
|
||||
item_type = sanitize_form_value(request.form.get('item_type_input', current_item.get('ItemType', 'Buch')))
|
||||
library_category = sanitize_form_value(request.form.get('library_category', ''))
|
||||
|
||||
filter1 = current_item.get('Filter', [])
|
||||
filter2 = current_item.get('Filter2', [])
|
||||
filter3 = current_item.get('Filter3', [])
|
||||
images = current_item.get('Images', [])
|
||||
else:
|
||||
# 2. Inventar-Modus
|
||||
item_isbn = current_item.get('ISBN', '')
|
||||
item_type = current_item.get('ItemType', 'other')
|
||||
library_category = current_item.get('library_category', '')
|
||||
|
||||
filter1 = expand_filter_selection(sanitize_form_value(request.form.getlist('filter')), 1)
|
||||
filter2 = expand_filter_selection(sanitize_form_value(request.form.getlist('filter2')), 2)
|
||||
filter3 = sanitize_form_value(request.form.getlist('filter3'))
|
||||
|
||||
# Bilderverarbeitung für den Inventar-Modus
|
||||
images_to_keep = request.form.getlist('existing_images')
|
||||
original_images = current_item.get('Images', [])
|
||||
images = [img for img in original_images if img in images_to_keep]
|
||||
@@ -6537,16 +6538,13 @@ def item_edit(id):
|
||||
)
|
||||
images.append(new_filename)
|
||||
except Exception as e:
|
||||
app.logger.error(f"Bild-Fehler bei Item {id}: {e}")
|
||||
app.logger.error(f"Image error for item {id}: {e}")
|
||||
|
||||
# Standort bei Bedarf zu vordefinierten Orten hinzufügen
|
||||
if ort and ort not in it.get_predefined_locations():
|
||||
it.add_predefined_location(ort)
|
||||
|
||||
# 1. Gruppen-Codes synchronisieren
|
||||
it.sync_group_codes(str(id), code_4, individual_codes)
|
||||
|
||||
# 2. Datenbank-Eintrag aktualisieren
|
||||
success = it.update_item(
|
||||
id=str(id),
|
||||
name=name,
|
||||
@@ -6572,6 +6570,7 @@ def item_edit(id):
|
||||
flash('Fehler beim Aktualisieren des Artikels.', 'error')
|
||||
|
||||
return redirect(redirect_target)
|
||||
|
||||
@app.route('/update_group', methods=['POST'])
|
||||
def update_group():
|
||||
|
||||
|
||||
@@ -27,6 +27,23 @@ from Web.modules.database.settings import MongoClient
|
||||
import Web.modules.inventarsystem.data_protection as dp
|
||||
|
||||
|
||||
def is_library_item(item):
|
||||
"""
|
||||
Ermittelt zuverlässig, ob ein Objekt zur Bibliothek gehört.
|
||||
Gibt True zurück, wenn ItemType ein Medientyp ist (Buch, Schulbuch, CD, DVD etc.)
|
||||
ODER wenn is_library explizit True ist.
|
||||
"""
|
||||
if not item:
|
||||
return False
|
||||
|
||||
# 1. Prüfe zuerst den Medientyp (ItemType)
|
||||
item_type = str(item.get('ItemType', '') or '').strip().lower()
|
||||
if item_type and item_type not in ['other', 'general', 'none', 'null']:
|
||||
return True
|
||||
|
||||
# 2. Falls ItemType 'other' ist, prüfe das is_library Flag
|
||||
return bool(item.get('is_library', False))
|
||||
|
||||
def safe_decrypt_user(encrypted_user):
|
||||
"""
|
||||
Safely decrypt an encrypted username string.
|
||||
@@ -251,7 +268,10 @@ def get_group_item_ids(id):
|
||||
|
||||
|
||||
def update_item(id, name, ort, beschreibung, images, verfuegbar, filter1, filter2, filter3,
|
||||
ansch_jahr, ansch_kost, code_4, reservierbar, isbn=None, item_type='general'):
|
||||
ansch_jahr, ansch_kost, code_4, reservierbar, isbn="", item_type='other', library_category=""):
|
||||
"""
|
||||
Aktualisiert ein Objekt in MongoDB und setzt is_library korrekt basierend auf dem Medientyp.
|
||||
"""
|
||||
try:
|
||||
client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT)
|
||||
db = client[cfg.MONGODB_DB]
|
||||
@@ -259,29 +279,35 @@ def update_item(id, name, ort, beschreibung, images, verfuegbar, filter1, filter
|
||||
|
||||
old_item = items.find_one({'_id': ObjectId(id)})
|
||||
if not old_item:
|
||||
client.close()
|
||||
return False
|
||||
|
||||
series_group_id = old_item.get('SeriesGroupId')
|
||||
|
||||
# is_library automatisch anhand des neuen item_type bestimmen
|
||||
is_lib = is_library_item({'ItemType': item_type})
|
||||
|
||||
shared_update = {
|
||||
'Name': name,
|
||||
'Ort': ort,
|
||||
'Beschreibung': beschreibung,
|
||||
'Images': images,
|
||||
'Filter': filter1,
|
||||
'Filter2': filter2,
|
||||
'Filter3': filter3,
|
||||
'Images': images if isinstance(images, list) else [],
|
||||
'Filter': filter1 if isinstance(filter1, list) else [],
|
||||
'Filter2': filter2 if isinstance(filter2, list) else [],
|
||||
'Filter3': filter3 if isinstance(filter3, list) else [],
|
||||
'Anschaffungsjahr': ansch_jahr,
|
||||
'Anschaffungskosten': ansch_kost,
|
||||
'Reservierbar': reservierbar,
|
||||
'ISBN': isbn,
|
||||
'Reservierbar': bool(reservierbar),
|
||||
'ISBN': str(isbn) if isbn else '',
|
||||
'ItemType': item_type,
|
||||
'Verfuegbar': verfuegbar,
|
||||
'is_library': is_lib,
|
||||
'library_category': library_category,
|
||||
'Verfuegbar': bool(verfuegbar),
|
||||
'LastUpdated': datetime.datetime.now()
|
||||
}
|
||||
|
||||
specific_update = shared_update.copy()
|
||||
specific_update['Code_4'] = code_4
|
||||
specific_update['Code_4'] = str(code_4) if code_4 else ''
|
||||
|
||||
items.update_one({'_id': ObjectId(id)}, {'$set': specific_update})
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
background-color: #0056b3;
|
||||
}
|
||||
|
||||
/* Scanner Video Styles */
|
||||
/* Scanner Elements */
|
||||
#code4-scanner video, #code4-scanner canvas,
|
||||
#isbn-scanner video, #isbn-scanner canvas {
|
||||
width: 100%;
|
||||
@@ -124,7 +124,7 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Image management grid */
|
||||
/* Image Management */
|
||||
.existing-images-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -197,7 +197,7 @@
|
||||
<input type="hidden" name="item_id" value="{{ item._id }}">
|
||||
|
||||
{% if show_library_features %}
|
||||
<!-- BIBLIOTHEKS-MODUS: ISBN / Barcode -->
|
||||
<!-- ================= LIBRARY SPECIFIC FIELDS ================= -->
|
||||
<div class="form-group">
|
||||
<label for="isbn">ISBN / Barcode:</label>
|
||||
<div class="isbn-input-group">
|
||||
@@ -209,15 +209,31 @@
|
||||
<small id="isbn-scan-status" style="display:block; color:#666; margin-top:6px;"></small>
|
||||
<div id="book-info-container"></div>
|
||||
</div>
|
||||
|
||||
<div class="filter-inputs" style="margin-bottom: 20px;">
|
||||
<h3>Medientyp</h3>
|
||||
<div class="form-group">
|
||||
<select name="item_type_input" id="item_type_input">
|
||||
<option value="Buch" {% if item.ItemType == 'Buch' %}selected{% endif %}>Buch</option>
|
||||
<option value="Schulbuch" {% if item.ItemType == 'Schulbuch' %}selected{% endif %}>Schulbuch</option>
|
||||
<option value="CD" {% if item.ItemType == 'CD' %}selected{% endif %}>CD</option>
|
||||
<option value="DVD" {% if item.ItemType == 'DVD' %}selected{% endif %}>DVD</option>
|
||||
<option value="Sonstiges" {% if item.ItemType == 'Sonstiges' %}selected{% endif %}>Sonstiges</option>
|
||||
</select>
|
||||
</div>
|
||||
<h3>Bibliotheks-Kategorie:</h3>
|
||||
<div class="form-group">
|
||||
<input type="text" name="library_category" id="library_category" value="{{ item.library_category|default('') }}" placeholder="z.B. Belletristik, Sachbücher, etc.">
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- Allgemein: Name -->
|
||||
<!-- ================= COMMON CORE FIELDS ================= -->
|
||||
<div class="form-group">
|
||||
<label for="name">Name / Titel:</label>
|
||||
<input type="text" id="name" name="name" value="{{ item.Name|default('') }}" required>
|
||||
</div>
|
||||
|
||||
<!-- Allgemein: Ort -->
|
||||
<div class="form-group">
|
||||
<label for="ort">Ort / Standort:</label>
|
||||
<select id="ort" name="ort" data-selected="{{ item.Ort|default('') }}" required>
|
||||
@@ -234,13 +250,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Allgemein: Beschreibung -->
|
||||
<div class="form-group">
|
||||
<label for="beschreibung">Beschreibung:</label>
|
||||
<textarea id="beschreibung" name="beschreibung" required>{{ item.Beschreibung|default('') }}</textarea>
|
||||
</div>
|
||||
|
||||
<!-- Barcode / Basis-Code -->
|
||||
<div class="form-group" id="primary_code_group">
|
||||
<label for="code_4">Basis-Code (Haupt-Barcode)</label>
|
||||
<div style="display: flex; gap: 10px;">
|
||||
@@ -251,33 +265,13 @@
|
||||
<small id="code4-scan-status" class="form-text text-muted"></small>
|
||||
</div>
|
||||
|
||||
<!-- Weitere Einzelcodes der Gruppe -->
|
||||
<div class="form-group" id="individual_codes_group">
|
||||
<label for="individual_codes">Weitere Einzelcodes der Gruppe (je Zeile ein Code)</label>
|
||||
<textarea id="individual_codes" name="individual_codes" rows="4" class="form-control" placeholder="z.B. ABC-001 ABC-002">{{ item.IndividualCodes|default('') }}</textarea>
|
||||
<small style="display:block; color:#666; margin-top: 5px;">Der Basis-Code steht oben. Alle weiteren Gruppenmitglieder werden hier untereinander aufgeführt.</small>
|
||||
</div>
|
||||
|
||||
{% if show_library_features %}
|
||||
<!-- BIBLIOTHEKS-MODUS: Spezifische Filter -->
|
||||
<div class="filter-inputs">
|
||||
<h3>Medientyp</h3>
|
||||
<div class="form-group">
|
||||
<select name="item_type_input" id="item_type_input">
|
||||
<option value="Buch" {% if item.ItemType == 'Buch' %}selected{% endif %}>Buch</option>
|
||||
<option value="Schulbuch" {% if item.ItemType == 'Schulbuch' %}selected{% endif %}>Schulbuch</option>
|
||||
<option value="CD" {% if item.ItemType == 'CD' %}selected{% endif %}>CD</option>
|
||||
<option value="DVD" {% if item.ItemType == 'DVD' %}selected{% endif %}>DVD</option>
|
||||
<option value="Sonstiges" {% if item.ItemType == 'Sonstiges' or not item.ItemType %}selected{% endif %}>Sonstiges</option>
|
||||
</select>
|
||||
</div>
|
||||
<h3>Kategorie / Fach:</h3>
|
||||
<div class="form-group">
|
||||
<input type="text" name="library_category" id="library_category" value="{{ item.library_category|default('') }}" placeholder="z.B. Belletristik, Sachbücher, etc.">
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<!-- INVENTAR-MODUS: Standard 3-Stufen-Filter -->
|
||||
<!-- ================= SYSTEM FILTERS 1-3 (ALWAYS RENDERED) ================= -->
|
||||
<div class="filter-inputs">
|
||||
<h3>Unterrichtsfach (Filter 1):</h3>
|
||||
<div class="multi-filter">
|
||||
@@ -313,9 +307,8 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- Finanzen & Datum -->
|
||||
<!-- ================= DATES & FINANCIALS ================= -->
|
||||
<div class="form-group">
|
||||
<label for="anschaffungsjahr">Anschaffungsjahr:</label>
|
||||
<input type="date" id="anschaffungsjahr" name="anschaffungsjahr" value="{{ item.Anschaffungsjahr|default('') }}">
|
||||
@@ -326,7 +319,7 @@
|
||||
</div>
|
||||
|
||||
{% if not show_library_features %}
|
||||
<!-- INVENTAR-MODUS: Bilder & Medien verwalten -->
|
||||
<!-- ================= INVENTORY IMAGE MANAGEMENT ================= -->
|
||||
<div class="form-group">
|
||||
<label>Bestehende Bilder behalten:</label>
|
||||
{% if item.Images and item.Images|length > 0 %}
|
||||
@@ -350,7 +343,6 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- Reservierbar -->
|
||||
<div class="form-group">
|
||||
<label for="reservierbar" style="display:inline-block; width:auto; margin-right:10px;">Reservierbar:</label>
|
||||
<input type="checkbox" id="reservierbar" name="reservierbar" style="width:auto;" {% if item.Reservierbar %}checked{% endif %}>
|
||||
@@ -363,13 +355,11 @@
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/@ericblade/quagga2/dist/quagga.js"></script>
|
||||
<script>
|
||||
const libraryModuleEnabled = {{ 'true' if show_library_features else 'false' }};
|
||||
let scannerRunning = false;
|
||||
let activeScannerCallback = null;
|
||||
let code4LastScanned = '';
|
||||
let code4LastScannedAt = 0;
|
||||
|
||||
// Filter-Optionen vom Server laden & bestehende Werte vorauswählen
|
||||
function loadAndSelectFilterValues(filterNumber) {
|
||||
fetch(`/get_predefined_filter_values/${filterNumber}`)
|
||||
.then(res => res.json())
|
||||
@@ -380,7 +370,6 @@
|
||||
|
||||
const selectedValue = select.getAttribute('data-selected') || '';
|
||||
|
||||
// Optionen befüllen
|
||||
data.values.forEach(val => {
|
||||
if (!val || String(val).trim() === '') return;
|
||||
const opt = document.createElement('option');
|
||||
@@ -389,7 +378,6 @@
|
||||
select.appendChild(opt);
|
||||
});
|
||||
|
||||
// Falls der gewählte Wert nicht in den Vorgaben war, als Option ergänzen
|
||||
if (selectedValue && !Array.from(select.options).some(o => o.value === selectedValue)) {
|
||||
const customOpt = document.createElement('option');
|
||||
customOpt.value = selectedValue;
|
||||
@@ -400,10 +388,9 @@
|
||||
select.value = selectedValue;
|
||||
}
|
||||
})
|
||||
.catch(err => console.error(`Fehler beim Laden von Filter ${filterNumber}:`, err));
|
||||
.catch(err => console.error(`Error loading Filter ${filterNumber}:`, err));
|
||||
}
|
||||
|
||||
// Orte vom Server laden
|
||||
function loadLocationOptions() {
|
||||
fetch('/get_predefined_locations')
|
||||
.then(res => res.json())
|
||||
@@ -423,10 +410,9 @@
|
||||
|
||||
select.value = currentVal;
|
||||
})
|
||||
.catch(err => console.error('Fehler beim Laden der Orte:', err));
|
||||
.catch(err => console.error('Error loading locations:', err));
|
||||
}
|
||||
|
||||
// Ort hinzufügen UI
|
||||
function addNewLocation() {
|
||||
const input = document.getElementById('new-location-input');
|
||||
const val = input.value.trim();
|
||||
@@ -446,7 +432,6 @@
|
||||
document.getElementById('new-location-input').value = '';
|
||||
}
|
||||
|
||||
// Quagga Barcode Scanner Initialisierung
|
||||
function runEngineInitialization(targetSelector, activeCallback, completionMsg, errorStatusSetter) {
|
||||
if (scannerRunning) { Quagga.stop(); scannerRunning = false; }
|
||||
activeScannerCallback = activeCallback;
|
||||
@@ -470,7 +455,6 @@
|
||||
if (typeof activeScannerCallback === "function") activeScannerCallback(String(data.codeResult.code).trim());
|
||||
});
|
||||
|
||||
// Barcode Scanner für Basis-Code
|
||||
function startCode4Scanner() {
|
||||
const scannerBox = document.getElementById('code4-scanner');
|
||||
const scanBtn = document.getElementById('scan-code4-btn');
|
||||
@@ -504,10 +488,9 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
loadLocationOptions();
|
||||
|
||||
if (!libraryModuleEnabled) {
|
||||
loadAndSelectFilterValues(1);
|
||||
loadAndSelectFilterValues(2);
|
||||
}
|
||||
// Always load Filter 1 and Filter 2 options for all items
|
||||
loadAndSelectFilterValues(1);
|
||||
loadAndSelectFilterValues(2);
|
||||
|
||||
const scanCodeBtn = document.getElementById('scan-code4-btn');
|
||||
if (scanCodeBtn) scanCodeBtn.addEventListener('click', startCode4Scanner);
|
||||
|
||||
Reference in New Issue
Block a user