diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-10 16:59:07 +0530 | 
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-10 16:59:07 +0530 | 
| commit | a0815a7c175513228af8adcef173dda8873262ab (patch) | |
| tree | 336c51fb3df4dce0dcb2219f42839a3f92192549 /customer | |
| parent | 323ec9657e305cfde2d08d582071646cc0354b62 (diff) | |
Fixed customer/validators.go trying to read customer.Name not customer.FirmName
Diffstat (limited to 'customer')
| -rw-r--r-- | customer/validators.go | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/customer/validators.go b/customer/validators.go index b5d1d96..17ca2ae 100644 --- a/customer/validators.go +++ b/customer/validators.go @@ -59,9 +59,9 @@ func checkDuplicate(field, value string, userId uint) error {  func (c *Customer) validate() error {  	// trim whitespaces -	c.Name = strings.TrimSpace(c.Name) +	c.FirmName = strings.TrimSpace(c.FirmName)  	c.Gstin = strings.TrimSpace(c.Gstin) -	c.ContactName = strings.TrimSpace(c.Name) +	c.ContactName = strings.TrimSpace(c.ContactName)  	c.Phone = strings.TrimSpace(c.Phone)  	c.Email = strings.TrimSpace(c.Email)  	c.Website = strings.TrimSpace(c.Website)  |