From ae489cfdcb18d66561ec66c42babdf8f970ffb49 Mon Sep 17 00:00:00 2001
From: Mattsson <111893710+mattssonn@users.noreply.github.com>
Date: Wed, 8 Jul 2026 18:09:34 +0200
Subject: [PATCH] fix(client): update AWS credential handling to prefer
BEDROCK_AWS_* environment variables (#937)
---
components/bookkeeping/JournalEntryForm.tsx | 24 ++++++++++++-------
.../lib/extract-invoice-fields.ts | 19 +++++++++++----
lib/agent/composer/client.ts | 16 ++++++++++---
3 files changed, 43 insertions(+), 16 deletions(-)
diff --git a/components/bookkeeping/JournalEntryForm.tsx b/components/bookkeeping/JournalEntryForm.tsx
index aacadc6b..e786f57a 100644
--- a/components/bookkeeping/JournalEntryForm.tsx
+++ b/components/bookkeeping/JournalEntryForm.tsx
@@ -1729,15 +1729,21 @@ export default function JournalEntryForm({
{t('clear_all')}
)}
-
+ {/* Draft-saving rides on ?as_draft=true, which only the standard
+ journal-entries endpoint honors. A custom submitUrl (e.g. the
+ bank-transaction /book route) ignores the flag and commits a
+ numbered voucher, so the draft button must not render there. */}
+ {!submitUrl && (
+
+ )}