Pārlūkot izejas kodu

后:发票地址

MAC 5 gadi atpakaļ
vecāks
revīzija
0915a0300c

+ 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