소스 검색

后:发票地址

MAC 5 년 전
부모
커밋
0915a0300c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/dashoo.cn/backend/api/controllers/oilsupplier/paymentinfo.go

+ 2 - 1
src/dashoo.cn/backend/api/controllers/oilsupplier/paymentinfo.go

@@ -269,6 +269,7 @@ func (this *PaymentInfoController) GetBillInfo() {
 	var supplierEntity supplier.OilSupplier
 	supplierSvc.GetEntity(&supplierEntity, "CommercialNo='"+commercialNo+"'")
 	billInfoSure := new(BillInfoSure)
+	supplierEntity.AllAddress = strings.Replace(supplierEntity.AllAddress, "/", "", -1)
 	billInfoSure.SupplierEntity = supplierEntity
 
 	page := this.GetPageInfoForm()
@@ -708,7 +709,7 @@ func (this *PaymentInfoController) ReceiveMoneyBillList() {
 	invoiceInfo.SupplierId = supplierId
 	invoiceInfo.SupplierName = suppentity.SupplierName
 	invoiceInfo.CommercialNo = suppentity.CommercialNo
-	invoiceInfo.Address = suppentity.AllAddress + " " + suppentity.Address
+	invoiceInfo.Address = strings.Replace(suppentity.AllAddress, "/", "", -1) + suppentity.Address
 	invoiceInfo.BankAccount = suppentity.BankAccount
 	invoiceInfo.DepositBank = suppentity.DepositBank
 	invoiceInfo.Email = suppentity.EMail