Automatic Price Calculation #33

Merged
kalipso merged 17 commits from priceCalculation into master 2025-07-02 11:26:53 +02:00
Showing only changes of commit 16c68cd0f8 - Show all commits

View File

@@ -180,6 +180,12 @@ func (rc *printController) PrintHandler(c *gin.Context) {
executeJobs := func() {
for _, printJob := range printJobs {
err := printJob.Execute()
if err == nil {
return
}
printJob.ShopItem.WasPrinted = true
_, err = repositories.ShopItems.Update(printJob.ShopItem)
@@ -187,12 +193,6 @@ func (rc *printController) PrintHandler(c *gin.Context) {
fmt.Printf("Error: %s\n", err)
}
err := printJob.Execute()
if err == nil {
return
}
}
}