[BUG]: Invoice PDF totals overlap the footer with 10 line items
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
- #329 di @Thushara3005 — chiusa senza merge
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Leggi frontend/src/utils/generateInvoicePDF.js, concentrandoti sul controllo dell’interruzione di pagina per le voci e sui punti in cui vengono disegnati il riquadro dei totali e il separatore del piè di pagina. Riproduci il layout con 10 voci brevi e traccia le posizioni verticali. Il lavoro è completato quando il riquadro dei totali e l’importo restano sopra il separatore del piè di pagina e la sezione dei totali viene spostata su una nuova pagina quando lo spazio è insufficiente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Description
The invoice PDF generator does not check whether sufficient page space remains before rendering the totals section. For invoices with 10 short line items, the calculated totals box can extend below the footer separator, causing the separator to cross the totals area.
The issue is in frontend/src/utils/generateInvoicePDF.js.
Technical Details
- The line-item table starts at approximately
y = 142 mm. - Each item advances the vertical position by
10 mm. - The page-break check runs before drawing each item and only triggers when
yPos > 250. - After 10 items,
yPosreaches approximately252 mm. - The totals section begins around
y = 257 mmand its background box extends toy = 285 mm. - The footer separator is drawn at
y = 280 mm.
Consequently, the footer separator can cross the totals box and the total amount text.
Steps to Reproduce
- Run the Chainvoice frontend locally.
- Prepare an invoice containing 10 short line items.
- Export the invoice as a PDF.
- Open the PDF and inspect the totals section near the bottom of the page.
- Check whether the footer separator crosses the totals box or total amount.
Expected Behavior
The totals section should remain fully visible and separated from the footer. If insufficient space remains, the generator should move the totals section to a new page or reserve sufficient space before rendering the final line items.
Actual Behavior
Based on the current layout calculations, the totals box can extend to approximately 285 mm, while the footer separator is drawn at 280 mm. This can cause the footer line to overlap the totals area.
Impact
Medium: the exported invoice can look unprofessional, and the footer line can interfere with the readability of the total amount.
Affected File
frontend/src/utils/generateInvoicePDF.js
Suggested Fix
Check the remaining page space before rendering the totals section and add a page break when necessary. Ensure that the totals box and its text remain above the footer separator.
Steps to Reproduce
No response
Logs and Screenshots
No response
Environment Details
No response
Impact
Critical - Application is unusable
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Lingua principale
- JavaScript
- Stelle
- 13
- Fork
- 62
- Merge medio
- 2g 14h
- PR unite (30g)
- 18
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun 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 StabilityNexus/Chainvoice
-
[BUG]: Smart Batch Suggestions ignore active filters and select invoices hidden from the tableForse già presa @anshulchikhale30-p l’ha presa 15 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
StabilityNexus/Chainvoice#331 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: Invoices with the same date are sorted out of order (ids compared as strings)Forse già presa @anshulchikhale30-p l’ha presa 15 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
StabilityNexus/Chainvoice#330 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: Stale token-list requests can overwrite state after switching networksForse già presa @JANAKIRAM218 l’ha presa 10 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
StabilityNexus/Chainvoice#325 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: Batch invoice summary truncates displayed amount precision to four decimal placesForse già presa @JANAKIRAM218 l’ha presa 29 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
StabilityNexus/Chainvoice#294 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: PDF export shows January 1970 for missing invoice datesForse già presa @anshulchikhale30-p l’ha presa 18 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
StabilityNexus/Chainvoice#265 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di StabilityNexus/Chainvoice
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 82/100
Leonxlnx/taste-skill#216 ·
I maintainer di solito rispondono entro 1 giorno
-
Docs: 11 broken linksAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
all-contributors/cli#690 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno