diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-09 21:07:20 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-09 21:07:20 +0530 |
commit | 1924bfca2439829253df3598481034e5c586e3e2 (patch) | |
tree | 6b82a091ae97e1980fe0ff3f3fb3eaa726a6d6ad /item/item.go | |
parent | b643f7852f93f73843aa5f52f9b4545321713e10 (diff) |
added route to add items to invoicev0.0.12
Diffstat (limited to 'item/item.go')
-rw-r--r-- | item/item.go | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/item/item.go b/item/item.go index 02e568e..3f911fa 100644 --- a/item/item.go +++ b/item/item.go @@ -38,20 +38,19 @@ type Brand struct { } type Item struct { - UserID uint `json:"-"` - User user.User `json:"-"` - BrandID uint - Brand Brand - UnitOfMeasure string // TODO: probably has to be a custom type - HasDecimalQuantity bool - Name string - Description string - HSN string - UnitPrice string // float - GSTPercentage string // float + Name string + Description string + HSN string + UnitOfMeasure string // TODO: probably has to be a custom type + UnitPrice string // float + GSTPercentage string // float } type SavedItem struct { gorm.Model Item + BrandID uint + Brand Brand + UserID uint `json:"-"` + User user.User `json:"-"` } |