Remove Gesamt-Provision card from the Provisionen view

User doesn't need the third KPI tile. Drop it from the markup, drop
the matching #totalGesamtProvision write in updateProvisionenTable
and let the grid breathe with two columns instead of three. Revert
the backend total_gesamt_provision field to its original meaning
(shop + employee) since no consumer in the UI depends on it now.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
kerimatilganandClaude Opus 4.7 committed 2026-05-15 18:25:25 +02:00
1 parent 65395c0cae
commit 9850a5b097
3 files changed
+2 -18

No files matched your search

-5
View File
@@ -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