aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/customer/customer.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-12 23:30:08 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-12 23:30:08 +0530
commit327a32f563394f92313e4a751515d69d90f4e7f5 (patch)
tree9b49fd41ac852fa459b623f7fbe7c79aaac24418 /customer/customer.go
parent029fe2c7a3532bc3bf435f257cdade240c8f3568 (diff)
formatted code
Diffstat (limited to 'customer/customer.go')
-rw-r--r--customer/customer.go25
1 files changed, 13 insertions, 12 deletions
diff --git a/customer/customer.go b/customer/customer.go
index 0d107d7..cf5c3f1 100644
--- a/customer/customer.go
+++ b/customer/customer.go
@@ -23,6 +23,7 @@ import (
)
var db *gorm.DB
+
func init() {
db = d.DB
@@ -31,18 +32,18 @@ func init() {
type Customer struct {
gorm.Model
- FirmName string
- Gstin string
- ContactName string
- Phone string
- Email string
- Website string
-
- BillingAddressText string
- BillingAddressCity string
- BillingAddressState string
- BillingAddressPostalCode string
- BillingAddressCountry string
+ FirmName string
+ Gstin string
+ ContactName string
+ Phone string
+ Email string
+ Website string
+
+ BillingAddressText string
+ BillingAddressCity string
+ BillingAddressState string
+ BillingAddressPostalCode string
+ BillingAddressCountry string
ShippingAddressText string
ShippingAddressCity string