Files
immich-redaktions-plugin/tests/fixtures/billing-report.ts
T

50 lines
1.4 KiB
TypeScript

import type { BillingReportSnapshot } from "@/modules/billing/types";
/**
* Minimal, deterministic snapshot used by the render test. The net total is
* 6000 cents so the PDF displays "60,00 EUR" (the value the test asserts on).
*/
export const reportFixture: BillingReportSnapshot = {
address: {
companyName: "Redaktion Beispiel GmbH",
contactName: "Anna Schmidt",
addressLine1: "Musterstraße 12",
addressLine2: null,
postalCode: "10115",
city: "Berlin",
countryCode: "DE",
},
selectedPositions: [
{
id: "pos-1",
assetId: "asset-1",
filename: "jubel-eroeffnung.jpg",
albumName: "Jubel",
purpose: "Print Nutzung",
reference: "REF-001",
priceCents: 6_000,
collab: false,
createdAt: new Date("2026-03-15T10:00:00.000Z"),
},
],
repeatDownloads: [
{
id: "rdl-1",
assetId: "asset-1",
usageId: "usage-1",
authorizedAt: new Date("2026-03-20T14:00:00.000Z"),
repeatDownloadNote: "Zweitverwendung im Web",
},
],
netTotalCents: 6_000,
reportNumber: 1,
invoiceNumber: "NN-2026-03-001",
period: {
fromUtc: new Date("2026-03-01T00:00:00.000Z"),
toUtcExclusive: new Date("2026-04-01T00:00:00.000Z"),
},
documentId: "doc-00000000-0000-0000-0000-000000000001",
createdAt: new Date("2026-04-02T08:00:00.000Z"),
legalSeparationNotice:
"Dieser Nutzungsnachweis ist keine Rechnung im Sinne des Umsatzsteuerrechts.",
};