print: a reprint of an issued document cannot say it is a copy - no first-print / copy flag in the print data (BG ОРИГИНАЛ / КОПИЕ)
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 tracing the live Print endpoint, POST /services/print/<Entity>, and the Snapshot function mentioned in the report; compare their print data flow to determine where render state or a request flag could be exposed to templates. The issue offers two possible approaches but leaves the behavior and design to choose. Done means a template can distinguish an original from a copy for the relevant print flows.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
A BG paper invoice must carry ОРИГИНАЛ on its first print and КОПИЕ on every print after that (ППЗДДС чл. 78 ал. 1 т. 2; copies are not numbered; the e-mailed PDF is always an original). A .print template can only print what the data gives it, and on v14.88.0 (and v14.90.0) neither the document page's Print (POST /services/print/<Entity>?lang=..&template=.. with the feeder's payload) nor the snapshot mint passes anything that says whether this render is the first one. The print-template catalogue (#7755 / PR #7763) versions templates, not renders, and the <Doc>Copy snapshot rows (function: Snapshot) record the issue-time mint but are not consulted by the live Print.
So the module can print ОРИГИНАЛ always (BusinessIntents base-sales-invoices#74 does) but never КОПИЕ (base-sales-invoices#80).
Ask
One of:
- A render flag in the print data:
{{print.copy}}(boolean) -falsefor the snapshot mint and for the first live Print of a record,trueonce the record has been printed/minted before - so a template writes<if source="print.copy"><text>КОПИЕ</text></if>and the reverse for ОРИГИНАЛ. The record's snapshot child (function: Snapshot) is a natural "has it been rendered" source. - Or: a Print -> Original / Copy choice on the document page, passing a
copy=truerequest flag the template can read (the reviewer accepted "two explicit print buttons" as most BG systems do).
Filed from BusinessIntents base-sales-invoices#80 (pre-train wave 2026-10-17); the module keeps #80 open on this.
- Lingua principale
- Java
- Stelle
- 278
- Fork
- 97
- Merge medio
- 17h 19m
- PR unite (30g)
- 261
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
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
adorsys/keycloak-config-cli#1709 ·
I maintainer di solito rispondono entro 1 giorno
-
! and-bugs
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
osmandapp/OsmAnd#26769 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NationalSecurityAgency/ghidra#9997 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug] DefaultSerializationExceptionWrapper does not implement Cleanable, so cleanup() is never invoked by codecsForse già presa @binbin0325 l’ha presa oggi. Apertacomponent/need-triage type/need-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
fix: tagged PDF fails with ClassCastException when a Form and its Image share an XObject nameForse già presa @hnc-jglee l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
opendataloader-project/opendataloader-pdf#830 ·
I maintainer di solito rispondono entro 1 giorno