From c711ef4b92d4032ff9f77a6862b70731e44052ce Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 9 Oct 2020 16:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B1=87=E6=80=BBbug=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/AggregateRelationController.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Application/Admin/Controller/AggregateRelationController.class.php b/Application/Admin/Controller/AggregateRelationController.class.php index e222df899..0e5fc784f 100644 --- a/Application/Admin/Controller/AggregateRelationController.class.php +++ b/Application/Admin/Controller/AggregateRelationController.class.php @@ -696,6 +696,11 @@ class AggregateRelationController extends AdminController if($type == 0){ //己方公司 $companyInfo = M("CompanyInfo","tab_")->field("id,partner company_name,partner,link_man,link_phone,address,company_tax_no,payee_name,bank_account,opening_bank,invoice_item,invoice_type,register_phone,register_address")->where("status='1' AND id='{$id}'")->find(); + if (strstr($companyInfo['invoice_type'],'专')) { + $companyInfo['invoice_type'] = "专票"; + } else if (strstr($companyInfo['invoice_type'],'普')) { + $companyInfo['invoice_type'] = "普票"; + } } if($type == 1){ //上游