aboutsummaryrefslogtreecommitdiff
path: root/server/router
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-24 20:00:10 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-24 20:00:10 +0530
commit5d2222d9fa782b94ba6787e5c6b23aab1e468308 (patch)
tree6bfd4a98ae121c3ce109510021ead96e1b2fa0cd /server/router
parent5329b1fd16d0b8940f9526b523676dfb1cdbf317 (diff)
Multiple minor bug fixes and convert more compnents to TS
Diffstat (limited to 'server/router')
-rw-r--r--server/router/items.go14
1 files changed, 7 insertions, 7 deletions
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)