diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-04-06 10:27:33 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-04-06 10:27:33 +0530 |
commit | 64fec78076a44ca63274a134fcbfc641e414bae9 (patch) | |
tree | b18ece18cd1e2192b5402922088502037ff852cb | |
parent | e616df98557fe57fc942c360f03f7fafbdb965bd (diff) |
added FirmName to userv0.6.1
-rw-r--r-- | invoice/invoice.go | 13 | ||||
-rw-r--r-- | main.go | 2 | ||||
-rw-r--r-- | user/user.go | 1 |
3 files changed, 10 insertions, 6 deletions
diff --git a/invoice/invoice.go b/invoice/invoice.go index 6fcd3c5..86fed17 100644 --- a/invoice/invoice.go +++ b/invoice/invoice.go @@ -64,11 +64,14 @@ type Invoice struct { IsDraft bool Items []InvoiceItem - // the customer fields are hard coded for: - // 1. simplicity and - // 2. don't wanna update details for all the - // invoices if one customer's details are updated - // NOTE: These fields aren't getting validated (as of now, at least) + // issuer and customer details are stored here + // because they are NOT intended to ever change + IssuerFirmName string + IssuerFirmAddress string + IssuerFirmGstin string + IssuerFirmPhone string + IssuerFirmEmail string + IssuerFirmWebsite string CustomerName string CustomerGstin string CustomerContactName string @@ -38,7 +38,7 @@ import ( "log" ) -const OPENBILLS_VERSION = "v0.6.0" +const OPENBILLS_VERSION = "v0.6.1" func init() { if !viper.GetBool("debug_mode") { diff --git a/user/user.go b/user/user.go index 401ebe7..1682388 100644 --- a/user/user.go +++ b/user/user.go @@ -41,6 +41,7 @@ type User struct { gorm.Model u.Address FullName string + FirmName string Gstin string Phone string Email string |