wugg 2 years ago
parent
commit
9bb41ab872
1 changed files with 10 additions and 1 deletions
  1. 10 1
      app/admin/controller/Payment.php

+ 10 - 1
app/admin/controller/Payment.php

@@ -25,6 +25,15 @@ class Payment extends BaseController
         "electronic"=>"增值税电子普通发票",
         "toll"=>"增值税电子普通发票(通行费)",
         ];
+
+    public $invName= [
+              "01"=>"special",//"增值税专用发票",
+             '04'=>"normal",//"增值税普通发票",
+             '11'=>"roll",//"增值税普通发票(卷式)",
+             '08'=>"special_electronic",// "增值税电子专用发票",
+             '10'=>"electronic",//"增值税电子普通发票",
+             '14'=>"toll"//"增值税电子普通发票(通行费)"
+        ];
 //
 //    发票状态,取值范围:
 //
@@ -1004,7 +1013,7 @@ class Payment extends BaseController
                 "inv_fee"=> 0,//核算金额
                 "inv_subtotal_amount"=> $item['subtotal_amount']??0, //票面金额
                 "invType"=> $item['invType'],
-                "invoiceType"=>$item['invoiceType']??'',
+                "invoiceType"=>key_exists($item['invoiceType'],$this->invName)?$this->invName[$item['invoiceType']]:'',
                 "inv_img"=>$item['inv_img']??'',
                 "invName"=>$item['invName']??'',
                 "invoiceNumber"=>$item['invNumber']??'',