From 5d2222d9fa782b94ba6787e5c6b23aab1e468308 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Thu, 24 Jun 2021 20:00:10 +0530 Subject: Multiple minor bug fixes and convert more compnents to TS --- server/router/items.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server/router/items.go') diff --git a/server/router/items.go b/server/router/items.go index c71fac6..684d1d8 100644 --- a/server/router/items.go +++ b/server/router/items.go @@ -31,13 +31,13 @@ func registerItem(ctx *gin.Context) { brand := "brand coming soon" item := db.Item { - Model: ctx.Query("model"), - Desc: ctx.Query("desc"), - Price: price, - HSN: hsn, - GST: gst, - Cat: cat, - Brand: brand, + Model: ctx.Query("model"), + Description: ctx.Query("desc"), + UnitPrice: price, + HSN: hsn, + TotalGST: gst, + Category: cat, + Brand: brand, } db.RegisterItem(item) -- cgit v1.2.3