diff --git a/public/index.html b/public/index.html
index 0a0a666..602ad29 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1038,7 +1038,7 @@
-
+
@@ -1061,17 +1061,6 @@
0,00 €
-
-
-
-
- account_balance_wallet
- Gesamt-Provision
-
-
- 0,00 €
-
-
diff --git a/public/script.js b/public/script.js
index 76e5afc..ad06287 100644
--- a/public/script.js
+++ b/public/script.js
@@ -2296,7 +2296,6 @@ function updateProvisionenTable(schaltungen, totalShopProvision, totalMitarbeite
const tbody = document.querySelector('#provisionenTable tbody');
const totalShopSpan = document.getElementById('totalShopProvision');
const totalMitarbeiterSpan = document.getElementById('totalMitarbeiterProvision');
- const totalGesamtSpan = document.getElementById('totalGesamtProvision');
if (!tbody) return;
@@ -2308,7 +2307,6 @@ function updateProvisionenTable(schaltungen, totalShopProvision, totalMitarbeite
tbody.appendChild(tr);
if (totalShopSpan) totalShopSpan.textContent = formatEuro(0);
if (totalMitarbeiterSpan) totalMitarbeiterSpan.textContent = formatEuro(0);
- if (totalGesamtSpan) totalGesamtSpan.textContent = formatEuro(0);
return;
}
@@ -2338,11 +2336,8 @@ function updateProvisionenTable(schaltungen, totalShopProvision, totalMitarbeite
tbody.appendChild(tr);
});
- // Gesamt-Provision = what the shop keeps after paying out the employee share.
- const totalGesamt = (totalShopProvision || 0) - (totalMitarbeiterProvision || 0);
if (totalShopSpan) totalShopSpan.textContent = formatEuro(totalShopProvision);
if (totalMitarbeiterSpan) totalMitarbeiterSpan.textContent = formatEuro(totalMitarbeiterProvision);
- if (totalGesamtSpan) totalGesamtSpan.textContent = formatEuro(totalGesamt);
}
// Clear filters functions
diff --git a/routes/provisionen.js b/routes/provisionen.js
index efe93c0..64f5867 100644
--- a/routes/provisionen.js
+++ b/routes/provisionen.js
@@ -138,7 +138,7 @@ router.get('/provisionen', asyncHandler(async (req, res) => {
total_provision: totalShop.toFixed(2),
total_shop_provision: totalShop.toFixed(2),
total_mitarbeiter_provision: totalMitarbeiter.toFixed(2),
- total_gesamt_provision: (totalShop - totalMitarbeiter).toFixed(2),
+ total_gesamt_provision: (totalShop + totalMitarbeiter).toFixed(2),
});
}));