Browse Source

后:发票地址

MAC 5 years ago
parent
commit
0915a0300c
1 changed files with 2 additions and 1 deletions
  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