Feat[BE-261,265]: add category request body on create on

This commit is contained in:
aguhh18
2025-11-20 08:27:02 +07:00
parent 105b20c333
commit 4c7e5b0731
4 changed files with 206 additions and 28 deletions
@@ -82,6 +82,7 @@ func (u *ExpenseController) CreateOne(c *fiber.Ctx) error {
req := new(validation.Create)
req.TransactionDate = c.FormValue("transaction_date")
req.Category = c.FormValue("category")
supplierID, err := strconv.ParseUint(c.FormValue("supplier_id"), 10, 64)
if err != nil {