added amazon importer and logging smtp
This commit is contained in:
@@ -8,6 +8,13 @@
|
||||
Mehrseitige PDF hochladen. Trennseiten mit QR-Code werden automatisch erkannt und die einzelnen Dokumente gesendet.
|
||||
</p>
|
||||
|
||||
<!-- Belegart -->
|
||||
<div style="margin-bottom:1rem;display:flex;gap:1rem;align-items:center;">
|
||||
<label style="margin:0;font-weight:600;">Belegart:</label>
|
||||
<label style="margin:0;cursor:pointer;"><input type="radio" name="beleg_type" value="eingang" checked> Eingangsbeleg (Einkauf)</label>
|
||||
<label style="margin:0;cursor:pointer;"><input type="radio" name="beleg_type" value="ausgang"> Ausgangsbeleg (Verkauf/Gutschrift)</label>
|
||||
</div>
|
||||
|
||||
<!-- Upload Zone -->
|
||||
<div id="uploadZone" class="upload-zone" onclick="document.getElementById('fileInput').click()">
|
||||
<div class="upload-icon">📄</div>
|
||||
@@ -175,7 +182,7 @@ async function startProcessing(uploadId) {
|
||||
const resp = await fetch('/api/scan-process', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ upload_id: uploadId }),
|
||||
body: JSON.stringify({ upload_id: uploadId, beleg_type: document.querySelector('input[name="beleg_type"]:checked').value }),
|
||||
});
|
||||
|
||||
if (!resp.ok) {
|
||||
|
||||
Reference in New Issue
Block a user