intent: a transitions: button cannot ask for input - Void needs a mandatory reason and date stamped with the move
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reading the transition handling for TransitionIntent and compare it with the generates: prompt implementation referenced as issue #6685. Trace how status moves write fields and how immutableWhen and requiredWhen are enforced. Done means a transition can collect and validate its own field values in the same write as the status change, with missing required answers rejected without moving the record.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
transitions: (TransitionIntent: name, forEntity, from, setStatus, when, label, icon, order, notify on v14.88.0 and v14.90.0) is a one-click status move. A move that the law requires to carry data has no way to collect it:
- BG annulment of an issued invoice (ЗДДС чл. 116, reviewer Q56/Q57): Void must record a reason (mandatory) and the date of the annulment, optionally the replacing invoice. The invoice is
immutableWhen-locked from APPROVED, so the clerk cannot type the reason on the record before pressing Void either - the lock (correctly) refuses the edit. generates:hasprompt:(#6685) for exactly this kind of "ask, then act", but a prompt writes the TARGET of a create-from, not the record being moved.
BusinessIntents base-sales-invoices#92 parts 2 (reason + date) and 3 (ReplacedBy) wait on this.
Ask
prompt: on a transition, the same grammar as the generates prompt, writing the record's OWN fields in the same targeted write as the status move (so immutableWhen does not refuse it, and a gated requiredWhen on the target status can enforce the reason):
transitions:
- name: VoidSalesInvoice
forEntity: SalesInvoice
from: [3, 4]
setStatus: 9
prompt:
- { field: voidReason, required: true }
- { field: voidedOn, default: now }
- { field: ReplacedBy } # optional to-one
Fields named by prompt: are written only through the transition (readOnly in the form otherwise). A missing required prompt answer is a 400 with the field named, and the move does not happen.
Filed from BusinessIntents base-sales-invoices#92 (pre-train wave 2026-10-17).
- Lingua principale
- Java
- Stelle
- 278
- Fork
- 97
- Merge medio
- 18h 57m
- PR unite (30g)
- 249
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eclipse-dirigible/dirigible
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
eclipse-dirigible/dirigible#7958 ·
I maintainer di solito rispondono entro 1 giorno
-
intent: a create-from without fromStatus answers 200 on a missing or unknown source id (no 400/404)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eclipse-dirigible/dirigible#7945 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
eclipse-dirigible/dirigible#7891 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
eclipse-dirigible/dirigible#6538 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
eclipse-dirigible/dirigible#4812 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-dirigible/dirigible
Issue simili
-
Optimize consumer version heatmap aggregation to avoid repeated scansForse già presa @praykaria31 l’ha presa oggi. Apertatype/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Apicurio/apicurio-registry#10662 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
a:false-positive
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
status: waiting-for-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
spring-projects/spring-boot#52347 ·
I maintainer di solito rispondono entro 2 giorni
-
bug untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
opensearch-project/opensearch-migrations#3480 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
apache/rocketmq-dashboard#7318 ·
I maintainer di solito rispondono entro 3 giorni