commiting the changes did yesterday about the qr data insertion

This commit is contained in:
2025-09-09 12:09:36 +01:00
parent 2216801e89
commit fa1f74e2ff
30 changed files with 291 additions and 46 deletions
+2
View File
@@ -28,6 +28,7 @@ func processFormPayments(c *gin.Context) ([]mod.Payment, error) {
func expenseFromForm(c *gin.Context) (*mod.Expense, error) {
newDescription := c.PostForm("expense-desc")
newDate := c.PostForm("expense-date")
newQR := c.PostForm("expense-qr")
formattedDate, err := time.ParseInLocation("02-Jan-2006", newDate, time.UTC)
if err != nil {
@@ -88,6 +89,7 @@ func expenseFromForm(c *gin.Context) (*mod.Expense, error) {
CreationDate: time.Now(),
Shares: shares,
Payments: payments,
QRString: newQR,
}
return &newExp, nil
}