feat: Add flatrate billing model for editorial accounts

This commit is contained in:
Leon Tonhäuser committed 2026-08-11 03:27:10 +02:00
1 parent 699580a6a0
commit 0b1ffdfdfc
39 files changed
+4900 -57

No files matched your search

+11
View File
@@ -65,6 +65,17 @@ function paidPositionsTable(snapshot: BillingReportSnapshot) {
const body = [headerRow];
if (snapshot.flatrateCentsSnapshot !== null && snapshot.flatrateCentsSnapshot !== undefined) {
body.push([
{ text: "Flatrate", style: "tableCell" },
{ text: "-", style: "tableCell" },
{ text: "Monatlicher Pauschalpreis", style: "tableCell" },
{ text: "-", style: "tableCell" },
{ text: "-", style: "tableCell", alignment: "right" as const },
{ text: formatCents(snapshot.flatrateCentsSnapshot), style: "tableCell", alignment: "right" as const },
]);
}
for (const pos of snapshot.selectedPositions) {
body.push([
{ text: pos.filename, style: "tableCell" },