Open items and ageing
BodyLists every invoice not yet fully settled with the amount still open on it, then ages the open balance into not yet due, 1-30, 31-60, 61-90 and over 90 days overdue. Age is counted from the due date, not the invoice date, and each bucket includes its top edge, so 30 days is 1-30 and an invoice due today is not yet due; one with no due date ages from its date plus the default terms, and the strip says so. A payment or credit note not set against an invoice is unallocated credit on a line of its own, never netted into a bucket, so no bucket goes negative and an old debt never disappears. A disputed invoice is listed, marked and aged in its own column, so it cannot drive the over-90 figure. The shares are largest-remainder rounded to sum to exactly 100, an over-allocated invoice fails the document, and when nothing is overdue the strip is one line. All of it is one deriver.
npx dxcl add open-items-ageing Voorbeelddata
de JSON waarmee dit voorbeeld is gebouwd{
"account": {
"currency": "GBP",
"statementDate": "2026-11-30",
"defaultTermsDays": 30,
"invoices": [
{
"number": "INV-2026-0004211",
"date": "2026-06-12",
"dueDate": "2026-07-12",
"amount": 248750,
"disputed": true
},
{
"number": "INV-2026-0004290",
"date": "2026-07-01",
"dueDate": "2026-07-31",
"amount": 54000
},
{
"number": "INV-2026-0004388",
"date": "2026-07-20",
"dueDate": "2026-08-19",
"amount": 1186420.5
},
{
"number": "INV-2026-0004502",
"date": "2026-08-28",
"dueDate": "2026-09-27",
"amount": 312980.75
},
{
"number": "INV-2026-0004617",
"date": "2026-09-30",
"amount": 97640
},
{
"number": "INV-2026-0004733",
"date": "2026-10-15",
"dueDate": "2026-11-14",
"amount": 1048215.4
},
{
"number": "INV-2026-0004851",
"date": "2026-11-02",
"dueDate": "2026-12-02",
"amount": 655300
}
],
"credits": [
{
"type": "credit-note",
"date": "2026-10-08",
"number": "CN-2026-000412",
"amount": 54000,
"allocations": [
{
"invoice": "INV-2026-0004290",
"amount": 54000
}
]
},
{
"type": "payment",
"date": "2026-11-03",
"number": "BACS-REMIT-20261103-000918",
"amount": 400000,
"allocations": [
{
"invoice": "INV-2026-0004388",
"amount": 400000
}
]
},
{
"type": "credit-note",
"date": "2026-11-18",
"number": "CN-2026-000431",
"amount": 18500,
"allocations": [
{
"invoice": "INV-2026-0004502",
"amount": 6250
}
]
},
{
"type": "payment",
"date": "2026-11-26",
"number": "BACS-REMIT-20261126-001147",
"amount": 125000
}
]
}
} Gerenderd voorbeeld
elke opstelling op zichzelf gerenderdarrangement="across" standaard arrangement="down" Opgeloste nodes
wat een renderer krijgt — 1 nodesopen-items-ageing section De bestanden
wat installeren schrijft; het gekozen bestand is de componentnodes/open-items-ageing.node.tsx import { arrange, Cell, Paragraph, Row, Section, type Section as SectionComponent, Table, useDeriver, useState } from "docxcelerate/template";
import type { OpenItemsAgeingLines } from "../arrangements/open-items-ageing/lines.ts";
import { across } from "../arrangements/open-items-ageing/across.arrangement.tsx";
import { down } from "../arrangements/open-items-ageing/down.arrangement.tsx";
import openItemsAgeing from "../derivers/open-items-ageing.deriver.ts";
/**
* An open-item statement: every invoice not yet fully settled, with the amount
* still open on each, and that open balance aged into buckets. The decisions
* it makes for the reader are the ones a collections call turns on.
*
* Age is counted from the due date, not the invoice date, so an invoice on
* 30-day terms is not "1–30" the day it is raised. Each bucket includes its top
* edge: 30 days overdue is 1–30, 31 is 31–60, and an invoice due today is not
* yet due, which is why the last bucket is "Over 90", not "90+". An invoice
* with no due date is aged from its date plus `defaultTermsDays`, and the
* basis sentence says so; with no terms either, the deriver throws rather than
* guess on a document that tells someone they are overdue.
*
* Unallocated credit gets its own line. A payment or credit note not set
* against an invoice is shown beneath the buckets and never netted into the
* oldest one, so no bucket goes negative and an old debt does not quietly
* disappear.
*
* Disputed invoices are listed and marked, and aged in their own bucket, so
* they do not inflate the Over 90 figure that drives escalation.
*
* Bad data throws. An over-allocated invoice or credit fails the document
* rather than printing a negative open amount. The six buckets always sum to
* the open balance, in integer minor units, and their shares (largest
* remainder) to exactly 100%.
*
* Nothing overdue collapses the strip: when nothing undisputed is overdue it
* becomes one sentence.
*
* Arrangement: only the ageing strip is placed by the `arrangement` prop. The
* rows, the totals and every sentence are fixed here.
*
* Every figure is computed in one deriver, because all of it is arithmetic,
* sorting and date maths on request data. The rows are a `.map()` over the
* deriver's result, which publishes as a loop over `derived`. The node
* branches only on the deriver's booleans and strings, about nine published
* branches against the default `branchLimit` of 32.
*
* Installed by `dxcl add open-items-ageing`, which also installs its deriver.
*/
/** What this component reads. Add these fields to your document data type. */
export interface OpenItemsAgeingData {
account: {
/**
* ISO 4217 code every amount is in: `"GBP"`, `"EUR"`, `"JPY"`. It also sets
* the minor unit each amount is rounded to on the way in (pence for GBP,
* none for JPY). Required: the deriver throws when it is missing or not a
* code `Intl` knows.
*/
currency: string;
/**
* The day the statement is drawn up, ISO 8601: `2026-11-30`. Every age is
* counted to this day. Anything after the tenth character (a time) is
* ignored. Required: throws when missing or not YYYY-MM-DD.
*/
statementDate: string;
/**
* Days after its invoice date that an invoice with no `dueDate` falls due.
* A whole number, 0 or more. Missing is fine while every open invoice has
* a `dueDate`; the deriver throws, naming the invoice, when an open
* invoice has no `dueDate` and this is missing, rather than guess terms on
* a document that tells someone they are overdue. Throws when present but
* not a non-negative integer.
*/
defaultTermsDays?: number;
/**
* Every invoice on the account, including any that a credit's allocations
* name, settled ones too: those are left out of the listing but have to be
* here for an allocation to find. Missing or empty means none.
*/
invoices?: Array<{
/** The invoice number, printed as given. Required, non-blank, unique: a duplicate throws, because an allocation could not say which one it meant. */
number: string;
/** Invoice date, ISO 8601. Required: throws when missing or not a date. */
date: string;
/** Due date, ISO 8601. Missing means `date` plus `account.defaultTermsDays`. Throws when present but not a date. */
dueDate?: string;
/**
* Gross amount in major units: `1186420.5`. Rounded once to the
* currency's minor unit. Zero means settled and is left out. Negative
* throws: a credit note belongs in `credits`. Not a finite number throws.
*/
amount: number;
/** The customer disputes it. Listed, marked "In dispute", and aged in the In dispute bucket whatever its age. Missing means false. */
disputed?: boolean;
}>;
/** Payments and credit notes received. Missing or empty means none. */
credits?: Array<{
/** What it is, printed in the unallocated-credit sentence. Anything else throws. */
type: "payment" | "credit-note";
/** When it was received or issued, ISO 8601. Printed with the unallocated part. Required. */
date: string;
/** Its reference, printed as given. Required, non-blank. */
number: string;
/** Its amount in major units, rounded to the minor unit. Must be above zero, or it throws. */
amount: number;
/**
* Which invoices it settles, and how much of each. Missing or empty means
* none, and the whole credit is unallocated. Each `invoice` must name a
* number in `invoices` and each `amount` must be above zero, or it
* throws. Allocations above the credit's own amount throw.
*/
allocations?: Array<{ invoice: string; amount: number }>;
}>;
};
}
/**
* Where the ageing strip sits.
*
* - `across`: the buckets side by side in three rows (name, amount, share), the way a statement usually prints them. The default.
* - `down`: one row per bucket with its amount and share beside it, for a narrow column or seven-figure amounts.
*/
export type OpenItemsAgeingArrangement = "across" | "down";
/** Props for {@linkcode OpenItemsAgeing}. */
export interface OpenItemsAgeingProps {
/** Where the ageing strip sits. Defaults to `"across"`. */
arrangement?: OpenItemsAgeingArrangement;
}
export const OpenItemsAgeing: SectionComponent<OpenItemsAgeingProps> = async ({ arrangement }) => {
const [account] = useState((data: OpenItemsAgeingData) => data.account);
const a = await useDeriver(openItemsAgeing, [account]);
const lines: OpenItemsAgeingLines = { overdue: a.overdue, buckets: a.buckets };
return (
<Section id="open-items-ageing" title="Open items">
{a.empty && <Paragraph id="open-items-ageing-empty">{a.emptyLine}</Paragraph>}
{!a.empty && <Paragraph id="open-items-ageing-basis">{a.basis}</Paragraph>}
{a.hasItems && (
<Table
id="open-items-ageing-items"
columns={[
{ width: "auto" },
{ width: 24 },
{ width: 24 },
{ width: 24 },
{ width: 30, align: "right" },
{ width: 30, align: "right" },
]}
>
<Row id="open-items-ageing-items-header">
<Cell>Invoice</Cell>
<Cell>Dated</Cell>
<Cell>Due</Cell>
<Cell>Overdue</Cell>
<Cell>Amount</Cell>
<Cell>Open</Cell>
</Row>
{a.items.map((item) => (
<Row id="open-items-ageing-item">
<Cell>{item.number}</Cell>
<Cell>{item.date}</Cell>
<Cell>{item.due}</Cell>
<Cell>{item.age}</Cell>
<Cell>{item.amount}</Cell>
<Cell>{item.open}</Cell>
</Row>
))}
</Table>
)}
{arrange(arrangement, {
across: () => across(lines),
down: () => down(lines),
})}
{a.nothingOverdue && <Paragraph id="open-items-ageing-nothing-overdue">{a.nothingOverdue}</Paragraph>}
{!a.empty && (
<Table id="open-items-ageing-totals" columns={[{ width: "auto" }, { width: 40, align: "right" }]}>
<Row id="open-items-ageing-total-open">
<Cell>Open invoices</Cell>
<Cell>{a.totalOpen}</Cell>
</Row>
{a.overdue && (
<Row id="open-items-ageing-total-overdue">
<Cell>Of which overdue</Cell>
<Cell>{a.overdueTotal}</Cell>
</Row>
)}
{a.hasUnallocated && (
<Row id="open-items-ageing-total-unallocated">
<Cell>Unallocated credit</Cell>
<Cell>{a.unallocated}</Cell>
</Row>
)}
<Row id="open-items-ageing-total-balance">
<Cell>{a.balanceLabel}</Cell>
<Cell>{a.balance}</Cell>
</Row>
</Table>
)}
{a.hasUnallocated && <Paragraph id="open-items-ageing-unallocated-detail">{a.unallocatedDetail}</Paragraph>}
</Section>
);
}; derivers/open-items-ageing.deriver.ts // deno-lint-ignore-file no-explicit-any
import { deriver } from "docxcelerate/template";
/**
* Every figure of an open-item statement: which invoices are still open, how
* old each is, the six ageing buckets, the shares, and the sentences around
* them. Installed by `dxcl add open-items-ageing`.
*
* It is self-contained on purpose: it travels to the engine as source text, so
* a module-level constant or helper would be a ReferenceError there. Every
* helper is declared inside `run`.
*/
export default deriver({
name: "openItemsAgeing",
run: (accountInput: unknown) => {
const account = accountInput as any;
// Currency first: its exponent decides how every amount is read and printed.
const currency = account?.currency;
let formatter: Intl.NumberFormat;
try {
formatter = new Intl.NumberFormat("en-GB", { style: "currency", currency });
} catch {
throw new Error("account.currency must be an ISO 4217 code");
}
const exponent = formatter.resolvedOptions().maximumFractionDigits as number;
// Rounded once on the way in; everything after is integer minor units, so
// the buckets sum exactly.
const toMinor = (x: unknown, field: string): number => {
if (typeof x !== "number" || !Number.isFinite(x)) throw new Error(field + " must be a finite number");
return Math.round(x * 10 ** exponent);
};
const money = (minor: number) => formatter.format(minor / 10 ** exponent);
// UTC day indexes, so a date does not shift with the engine's time zone.
const isoDay = (value: unknown, field: string): string => {
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}/.test(value)) {
throw new Error(field + " must be an ISO 8601 date");
}
return value.slice(0, 10);
};
const dayIndex = (iso: string) => {
const [y, m, d] = iso.split("-").map(Number);
return Date.UTC(y, m - 1, d) / 86_400_000;
};
const shortDates = new Intl.DateTimeFormat("en-GB", { dateStyle: "medium", timeZone: "UTC" });
const longDates = new Intl.DateTimeFormat("en-GB", { dateStyle: "long", timeZone: "UTC" });
const short = (day: number) => shortDates.format(new Date(day * 86_400_000));
const long = (iso: string) => longDates.format(new Date(iso + "T00:00:00Z"));
const statementIso = isoDay(account?.statementDate, "account.statementDate");
const statementDay = dayIndex(statementIso);
const terms = account.defaultTermsDays;
if (terms !== undefined && (typeof terms !== "number" || !Number.isInteger(terms) || terms < 0)) {
throw new Error("account.defaultTermsDays must be a whole number of 0 or more");
}
const invoices: any[] = Array.isArray(account.invoices) ? account.invoices : [];
const credits: any[] = Array.isArray(account.credits) ? account.credits : [];
const byNumber = new Map<string, { i: number; amountMinor: number; paidMinor: number }>();
const parsed = invoices.map((inv: any, i: number) => {
const f = "account.invoices[" + i + "]";
if (typeof inv?.number !== "string" || inv.number.trim() === "") throw new Error(f + ".number is required");
if (byNumber.has(inv.number)) throw new Error("account.invoices has invoice " + inv.number + " twice");
const amountMinor = toMinor(inv.amount, f + ".amount");
if (amountMinor < 0) throw new Error(f + ".amount must not be negative; a credit note belongs in account.credits");
const date = isoDay(inv.date, f + ".date");
const dueDate = inv.dueDate === undefined || inv.dueDate === null ? undefined : isoDay(inv.dueDate, f + ".dueDate");
const entry = { i, amountMinor, paidMinor: 0 };
byNumber.set(inv.number, entry);
return { i, number: inv.number as string, date, dueDate, entry, disputed: inv.disputed === true };
});
const parsedCredits = credits.map((c: any, i: number) => {
const f = "account.credits[" + i + "]";
if (c?.type !== "payment" && c?.type !== "credit-note") throw new Error(f + ".type must be payment or credit-note");
const date = isoDay(c.date, f + ".date");
if (typeof c.number !== "string" || c.number.trim() === "") throw new Error(f + ".number is required");
const amountMinor = toMinor(c.amount, f + ".amount");
if (amountMinor <= 0) throw new Error(f + ".amount must be above zero");
const allocations: any[] = Array.isArray(c.allocations) ? c.allocations : [];
let allocatedMinor = 0;
allocations.forEach((a: any, j: number) => {
const g = f + ".allocations[" + j + "]";
const target = byNumber.get(a?.invoice);
if (!target) throw new Error(g + " names invoice " + a?.invoice + ", which is not in account.invoices");
const minor = toMinor(a.amount, g + ".amount");
if (minor <= 0) throw new Error(g + ".amount must be above zero");
allocatedMinor += minor;
target.paidMinor += minor;
});
if (allocatedMinor > amountMinor) throw new Error("credit " + c.number + " allocates more than its amount");
return { i, type: c.type as string, date, number: c.number as string, unallocatedMinor: amountMinor - allocatedMinor };
});
const open = parsed.flatMap((p) => {
const openMinor = p.entry.amountMinor - p.entry.paidMinor;
if (openMinor < 0) {
throw new Error(
"invoice " + p.number + " is over-allocated: " + money(p.entry.paidMinor) + " allocated against " +
money(p.entry.amountMinor),
);
}
return openMinor === 0 ? [] : [{ ...p, openMinor }];
});
let usedDefault = false;
const aged = open.map((p) => {
let dueDay: number;
if (p.dueDate !== undefined) dueDay = dayIndex(p.dueDate);
else {
if (terms === undefined) {
throw new Error("invoice " + p.number + " has no dueDate and account.defaultTermsDays is missing");
}
usedDefault = true;
dueDay = dayIndex(p.date) + terms;
}
const age = statementDay - dueDay;
// First match wins; each bucket includes its top edge.
const bucket = p.disputed ? 5 : age <= 0 ? 0 : age <= 30 ? 1 : age <= 60 ? 2 : age <= 90 ? 3 : 4;
const ageLabel = p.disputed ? "In dispute" : age <= 0 ? "Not yet due" : age === 1 ? "1 day" : age + " days";
return { ...p, dueDay, age, bucket, ageLabel };
});
// Oldest debt first; the index tiebreak makes the order explicit.
aged.sort((a, b) => a.dueDay - b.dueDay || dayIndex(a.date) - dayIndex(b.date) || a.i - b.i);
const labels = ["Not yet due", "1–30 days", "31–60 days", "61–90 days", "Over 90 days", "In dispute"];
const sums = [0, 0, 0, 0, 0, 0];
for (const p of aged) sums[p.bucket] += p.openMinor;
const totalOpen = sums.reduce((a, b) => a + b, 0);
const overdueMinor = sums[1] + sums[2] + sums[3] + sums[4];
const unallocatedList = parsedCredits.filter((c) => c.unallocatedMinor > 0)
.sort((a, b) => dayIndex(a.date) - dayIndex(b.date) || a.i - b.i);
const unallocatedMinor = unallocatedList.reduce((a, c) => a + c.unallocatedMinor, 0);
const balanceMinor = totalOpen - unallocatedMinor;
// Largest remainder, in integers, so the shares sum to exactly 100.
const percents = sums.map((b) => (totalOpen > 0 ? Math.floor(b * 100 / totalOpen) : 0));
if (totalOpen > 0) {
const left = 100 - percents.reduce((a, b) => a + b, 0);
sums.map((b, index) => ({ index, rem: (b * 100) % totalOpen, b }))
.filter((x) => x.b > 0)
.sort((a, b) => b.rem - a.rem || a.index - b.index)
.slice(0, left)
.forEach((x) => percents[x.index]++);
}
const overdue = overdueMinor > 0;
const empty = aged.length === 0 && unallocatedMinor === 0;
// An empty account prints its one line and nothing else.
const nothingOverdue = overdue || empty
? ""
: sums[5] > 0
? "Nothing on this account is overdue, leaving aside " + money(sums[5]) + " in dispute."
: "Nothing on this account is overdue.";
const basis = "Aged by days past each invoice's due date, at " + long(statementIso) + "." +
(usedDefault
? " An invoice with no due date is counted as due " + terms + " " + (terms === 1 ? "day" : "days") +
" after its invoice date."
: "");
const hasUnallocated = unallocatedMinor > 0;
const detail = new Intl.ListFormat("en-GB", { type: "conjunction" }).format(
unallocatedList.map((c) =>
(c.type === "payment" ? "payment" : "credit note") + " " + c.number + " of " + long(c.date) + " (" +
money(c.unallocatedMinor) + ")"
),
);
return {
empty,
emptyLine: empty ? "There are no open items on this account at " + long(statementIso) + "." : "",
basis,
hasItems: aged.length > 0,
items: aged.map((p) => ({
number: p.number,
date: short(dayIndex(p.date)),
due: short(p.dueDay),
age: p.ageLabel,
amount: money(p.entry.amountMinor),
open: money(p.openMinor),
disputed: p.disputed,
ageDays: p.age,
openMinor: p.openMinor,
})),
overdue,
nothingOverdue,
buckets: sums.map((amountMinor, i) => ({
label: labels[i],
amount: money(amountMinor),
share: percents[i] + "%",
amountMinor,
percent: percents[i],
})),
totalOpen: money(totalOpen),
overdueTotal: money(overdueMinor),
hasUnallocated,
unallocated: money(-unallocatedMinor),
unallocatedDetail: hasUnallocated ? "Not yet set against an invoice: " + detail + "." : "",
balanceLabel: balanceMinor > 0 ? "Balance due" : balanceMinor < 0 ? "In credit" : "Balance",
balance: money(Math.abs(balanceMinor)),
totalOpenMinor: totalOpen,
overdueMinor,
unallocatedMinor,
balanceMinor,
};
},
}); arrangements/open-items-ageing/lines.ts /**
* What open items and ageing hands each of its arrangements: the ageing strip,
* already decided. An arrangement places these and decides nothing, so both
* print the same figures under the same condition.
*
* Installed by `dxcl add open-items-ageing`, with the arrangements.
*/
export interface OpenItemsAgeingLines {
/** Whether anything undisputed is overdue. When false the strip is not printed at all. */
overdue: boolean;
/** Always six buckets, in printed order: not yet due, 1–30, 31–60, 61–90, over 90, in dispute. */
buckets: Array<{ label: string; amount: string; share: string }>;
} arrangements/open-items-ageing/across.arrangement.tsx import { Cell, Row, Table, type Yield } from "docxcelerate/template";
import type { OpenItemsAgeingLines } from "./lines.ts";
/**
* The buckets side by side in three rows (name, amount, share), the way a
* statement usually prints them. Six columns of seven-figure amounts only just
* fit a text column; `down` exists for when they do not.
*/
export const across = (lines: OpenItemsAgeingLines): Yield => (
<>
{lines.overdue && (
<Table
id="open-items-ageing-strip"
columns={[
{ width: "auto", align: "right" },
{ width: "auto", align: "right" },
{ width: "auto", align: "right" },
{ width: "auto", align: "right" },
{ width: "auto", align: "right" },
{ width: "auto", align: "right" },
]}
>
<Row id="open-items-ageing-strip-labels">
<Cell>{lines.buckets[0].label}</Cell>
<Cell>{lines.buckets[1].label}</Cell>
<Cell>{lines.buckets[2].label}</Cell>
<Cell>{lines.buckets[3].label}</Cell>
<Cell>{lines.buckets[4].label}</Cell>
<Cell>{lines.buckets[5].label}</Cell>
</Row>
<Row id="open-items-ageing-strip-amounts">
<Cell>{lines.buckets[0].amount}</Cell>
<Cell>{lines.buckets[1].amount}</Cell>
<Cell>{lines.buckets[2].amount}</Cell>
<Cell>{lines.buckets[3].amount}</Cell>
<Cell>{lines.buckets[4].amount}</Cell>
<Cell>{lines.buckets[5].amount}</Cell>
</Row>
<Row id="open-items-ageing-strip-shares">
<Cell>{lines.buckets[0].share}</Cell>
<Cell>{lines.buckets[1].share}</Cell>
<Cell>{lines.buckets[2].share}</Cell>
<Cell>{lines.buckets[3].share}</Cell>
<Cell>{lines.buckets[4].share}</Cell>
<Cell>{lines.buckets[5].share}</Cell>
</Row>
</Table>
)}
</>
); arrangements/open-items-ageing/down.arrangement.tsx import { Cell, Row, Table, type Yield } from "docxcelerate/template";
import type { OpenItemsAgeingLines } from "./lines.ts";
/**
* One row per bucket with its amount and share beside it, for a narrow column
* or seven-figure amounts.
*/
export const down = (lines: OpenItemsAgeingLines): Yield => (
<>
{lines.overdue && (
<Table
id="open-items-ageing-strip"
columns={[{ width: "auto" }, { width: 35, align: "right" }, { width: 18, align: "right" }]}
>
<Row id="open-items-ageing-strip-header">
<Cell>Days overdue</Cell>
<Cell>Amount</Cell>
<Cell>Share</Cell>
</Row>
<Row id="open-items-ageing-strip-not-due">
<Cell>{lines.buckets[0].label}</Cell>
<Cell>{lines.buckets[0].amount}</Cell>
<Cell>{lines.buckets[0].share}</Cell>
</Row>
<Row id="open-items-ageing-strip-1-30">
<Cell>{lines.buckets[1].label}</Cell>
<Cell>{lines.buckets[1].amount}</Cell>
<Cell>{lines.buckets[1].share}</Cell>
</Row>
<Row id="open-items-ageing-strip-31-60">
<Cell>{lines.buckets[2].label}</Cell>
<Cell>{lines.buckets[2].amount}</Cell>
<Cell>{lines.buckets[2].share}</Cell>
</Row>
<Row id="open-items-ageing-strip-61-90">
<Cell>{lines.buckets[3].label}</Cell>
<Cell>{lines.buckets[3].amount}</Cell>
<Cell>{lines.buckets[3].share}</Cell>
</Row>
<Row id="open-items-ageing-strip-over-90">
<Cell>{lines.buckets[4].label}</Cell>
<Cell>{lines.buckets[4].amount}</Cell>
<Cell>{lines.buckets[4].share}</Cell>
</Row>
<Row id="open-items-ageing-strip-disputed">
<Cell>{lines.buckets[5].label}</Cell>
<Cell>{lines.buckets[5].amount}</Cell>
<Cell>{lines.buckets[5].share}</Cell>
</Row>
</Table>
)}
</>
);