- {`Showing invoices and delivery notes from ${recentInvoiceRange.from} to ${recentInvoiceRange.to}, plus any unprinted — stock bookings are windowed to the last 3 days only`}
+ {`Showing invoices and delivery notes from ${recentInvoiceRange.from} to ${recentInvoiceRange.to}, plus any unprinted — stock bookings are windowed to the last 5 days only`}
{/* Invoices sub-section — only the "real" invoiced items go here. */}
diff --git a/src/app/(app)/invoicing/view-model.test.ts b/src/app/(app)/invoicing/view-model.test.ts
index 6d5028e..0721661 100644
--- a/src/app/(app)/invoicing/view-model.test.ts
+++ b/src/app/(app)/invoicing/view-model.test.ts
@@ -381,11 +381,11 @@ describe("buildTodayUnprintedInvoiceGroups", () => {
});
describe("buildRecentInvoiceRange", () => {
- it("defaults recent invoice filters to the last 3 days", () => {
+ it("defaults recent invoice filters to the last 5 days", () => {
const today = new Date("2026-07-08T12:00:00.000Z");
const range = buildRecentInvoiceRange(today);
- expect(range.from).toBe("2026-07-05");
+ expect(range.from).toBe("2026-07-03");
expect(range.to).toBe("2026-07-08");
});
});
diff --git a/src/app/(app)/invoicing/view-model.ts b/src/app/(app)/invoicing/view-model.ts
index be4016e..2bd4824 100644
--- a/src/app/(app)/invoicing/view-model.ts
+++ b/src/app/(app)/invoicing/view-model.ts
@@ -312,7 +312,7 @@ export function buildBulkInvoiceRows(
export function buildRecentInvoiceRange(today = new Date()): { from: string; to: string } {
const end = new Date(today);
const start = new Date(today);
- start.setDate(start.getDate() - 3);
+ start.setDate(start.getDate() - 5);
return {
from: start.toISOString().slice(0, 10),