Browse Source

wip:手机号必填修改

WH01243 3 years ago
parent
commit
d4bbe3c195
1 changed files with 1 additions and 1 deletions
  1. 1 1
      invoice/src/service/InvoiceService.go

+ 1 - 1
invoice/src/service/InvoiceService.go

@@ -34,7 +34,7 @@ func (u *InvoiceService) InvoiceAdd(solgan *entity.Invoice, resType string, isLo
 	if isLoop == 0 {
 	if isLoop == 0 {
 		solgan.Swno = strings.Replace(fmt.Sprintln(solgan.Swno+fmt.Sprintf("%06v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(1000000))), "\n", "", -1)
 		solgan.Swno = strings.Replace(fmt.Sprintln(solgan.Swno+fmt.Sprintf("%06v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(1000000))), "\n", "", -1)
 	}
 	}
-	solgan.Phone = solgan.CustTelephone
+	solgan.CustTelephone = solgan.Phone
 	solgan.SaleTax = entity.SaleTax
 	solgan.SaleTax = entity.SaleTax
 	solgan.InvType = entity.InvType
 	solgan.InvType = entity.InvType
 	solgan.BillType = entity.BillType
 	solgan.BillType = entity.BillType