wugg 2 éve
szülő
commit
c8fece7397
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      app/admin/controller/OrderInv.php

+ 3 - 3
app/admin/controller/OrderInv.php

@@ -488,7 +488,7 @@ class OrderInv extends BaseController{
 		Db::startTrans();
 		try{
 		$invoice=Config::get("invoice");
-    	$tax =new \TaxInvoice($invoice['appKey'],$invoice['appSecret'],$company['company_license']);
+    	$tax =new \TaxInvoice($invoice['appKey'],$invoice['appSecret'],$invoice['entCode']);
 		 $result=$tax->DeprecateInvoices($company['company_license'],invoiceType($invinfo['inv_type']),$invoice['inv_code'],$invoice['inv_number'],1);
 		 if(isset($result['ZTDM']) && $result['ZTDM']=='050000'){
 			 $up =Db::name("invoice_pool")->where($invinfo)->update(["status"=>6,"updatetime"=>date("Y-m-d H:i:s")]);
@@ -972,7 +972,7 @@ class OrderInv extends BaseController{
 		$company =Db::name("company_info")->where(["companyNo"=>$invfo['inv_out']])->findOrEmpty();
 		if(empty($company)) return error_show(1004,"业务企业信息未找到");
 		$invoice=Config::get("invoice");
-		$Tax =new \TaxInvoice($invoice['appKey'],$invoice['appSecret'],$company['company_license']);
+		$Tax =new \TaxInvoice($invoice['appKey'],$invoice['appSecret'],$invoice['entCode']);
 
 		$redticketList=[];
 		$redticketArry=[
@@ -1091,7 +1091,7 @@ class OrderInv extends BaseController{
 		 return error_show(1004,"未找到开票信息");
 		}
 		$invoice=Config::get("invoice");
-		$Tax =new \TaxInvoice($invoice['appKey'],$invoice['appSecret'],$company['company_license']);
+		$Tax =new \TaxInvoice($invoice['appKey'],$invoice['appSecret'],$invoice['entCode']);
 		Db::startTrans();
 		try{
 			$redticketArry=[