From ce832a0bddc02a21d9c382f46b81dd6c114f35f9 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sat, 26 Jun 2021 03:18:55 +0530 Subject: Storing HSN as string now --- server/database/items.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/database/items.go') 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() { -- cgit v1.2.3