feat: Add flatrate billing model for editorial accounts
This commit is contained in:
1 parent
699580a6a0
commit
0b1ffdfdfc
39 files changed
+4900
-57
No files matched your search
@@ -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" },
|
||||
|
||||
Reference in new issue
Block a user