Skip to content

[FIX] pms_fastapi: keep the invoice note when creating from folios - #169

Merged
DarioLodeiros merged 1 commit into
16.0from
16.0-fix-pms_fastapi-keep-invoice-narration
Oct 13, 2026
Merged

DarioLodeiros merged 1 commit into
16.0from
16.0-fix-pms_fastapi-keep-invoice-narration

Conversation

@DarioLodeiros

Copy link
Copy Markdown
Member

POST /folios/invoices overwrote the narration that _create_invoices copies from the folio note or the company invoice terms with the payload value, whose schema default is an empty string. Creating an invoice from the front without typing a note therefore erased that text (for some properties, a legal or GDPR clause).

An empty narration now means "not provided" and keeps the default note; a non-empty one still replaces it.

POST /folios/invoices overwrote the narration that _create_invoices
copies from the folio note or the company invoice terms with the
payload value, whose schema default is an empty string. Creating an
invoice from the front without typing a note therefore erased that
text (for some properties, a legal or GDPR clause).

An empty narration now means "not provided" and keeps the default
note; a non-empty one still replaces it.
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

Diff Coverage

Diff: origin/16.0...HEAD, staged and unstaged changes

  • pms_fastapi/routers/pms_folio.py (100%)

Summary

  • Total: 2 lines
  • Missing: 0 lines
  • Coverage: 100%

@DarioLodeiros
DarioLodeiros merged commit 02252a6 into 16.0 Oct 13, 2026
1 check passed
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