Skip to content

Visa bilagor i osparade verifikationsutkast - #117

Merged
perNyfelt merged 2 commits into
mainfrom
agent/draft-attachments
Aug 1, 2026
Merged

Visa bilagor i osparade verifikationsutkast#117
perNyfelt merged 2 commits into
mainfrom
agent/draft-attachments

Conversation

@perNyfelt

Copy link
Copy Markdown
Member

Summary

  • Show staged attachments in the Attachments tab while a voucher is still an unsaved draft.
  • Allow the GUI Add attachment action in draft mode and show MCP-provided attachment_path files immediately.
  • Open draft attachments from their source path, mark them as not saved, and register them with the voucher when Save is pressed.
  • Update MCP tool descriptions, localized feedback, and attachment/draft tests.

Why

AI-assisted voucher creation can now be reviewed with its receipt visible before the user saves the voucher. Discarding the draft does not create attachment records or copy files into the attachment archive.

Validation

  • ./gradlew test --tests se.alipsa.accounting.service.AttachmentServiceTest --tests se.alipsa.accounting.ui.VoucherPanelNavigationTest
  • ./gradlew codenarcMain
  • ./gradlew build

No database schema changes.

@perNyfelt
perNyfelt merged commit 155ba8a into main Aug 1, 2026
3 checks passed
@perNyfelt
perNyfelt deleted the agent/draft-attachments branch August 1, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant