From f1be8fde1b0432901af1a1c11e3c425c8a9dfb49 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 May 2026 16:47:40 +0000 Subject: [PATCH] Default new expense line date to period start so picker opens to correct month https://claude.ai/code/session_01MbwfxnjLA9KdFTrfzB55HM --- app/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.html b/app/index.html index 90fa9b5..f238411 100644 --- a/app/index.html +++ b/app/index.html @@ -171,7 +171,7 @@ const state = { staff: '', periodFrom: '', periodTo: '', baseCurrency: '', fxRat function newItem() { return { id: uid(), name: '', lines: [newLine()], _subtotal: 0 }; } function newLine() { return { - id: uid(), date: '', description: '', currency: state.baseCurrency, + id: uid(), date: state.periodFrom || '', description: '', currency: state.baseCurrency, fxRate: '1.00000', vendor: '', hasReceipt: true, receipts: [], noReceiptExplanation: '', amount: '', account: '', programs: [{ program: '', percent: '', programOther: '' }]