aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/customer/customer.go
diff options
context:
space:
mode:
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