aboutsummaryrefslogtreecommitdiff
path: root/server/database
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-26 03:18:55 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-26 03:18:55 +0530
commitce832a0bddc02a21d9c382f46b81dd6c114f35f9 (patch)
tree96d22a4307573b9f4f82abae5486c8baa8678332 /server/database
parente59c4dee0ab213c2e1f93b494a09fcd3810d7f10 (diff)
Storing HSN as string now
Diffstat (limited to 'server/database')
-rw-r--r--server/database/database.go2
-rw-r--r--server/database/items.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/server/database/database.go b/server/database/database.go
index f8d9092..2339d29 100644
--- a/server/database/database.go
+++ b/server/database/database.go
@@ -23,7 +23,7 @@ func InitDB() {
Model TEXT NOT NULL,
Desc TEXT,
UnitPrice REAL,
- HSN BLOB,
+ HSN TEXT,
TotalGST REAL,
Category TEXT,
Brand TEXT)`,
diff --git a/server/database/items.go b/server/database/items.go
index 059f5e6..5a637cd 100644
--- a/server/database/items.go
+++ b/server/database/items.go
@@ -17,7 +17,7 @@ type Item struct {
Model string
Description string
UnitPrice float64
- HSN int
+ HSN string
TotalGST float64
Category string
Brand string
@@ -32,7 +32,7 @@ func GetAllItems() []Item {
var (
model, desc, cat, brand string
unitPrice, GST float64
- HSN int
+ HSN string
)
for rows.Next() {