show invoice after print
All checks were successful
Go / build (push) Successful in 12m16s

This commit is contained in:
2025-07-01 23:45:27 +02:00
parent 7025f526c1
commit 6c59d1233f
6 changed files with 113 additions and 115 deletions

View File

@@ -186,5 +186,10 @@ func (rc *printController) PrintHandler(c *gin.Context) {
go executeJobs()
c.HTML(http.StatusOK, "index.html", nil)
fmt.Println(invoice)
data := CreateSessionData(c, gin.H{
"invoice": invoice,
})
c.HTML(http.StatusOK, "printstarted.html", data)
}