|
@@ -1745,8 +1745,9 @@ class OrderInv extends BaseController{
|
|
|
$result=$Tax->AllocateRedInvoiceApplication($redticketArry,$redticketList);
|
|
|
$data['status']=5;
|
|
|
$data['remark']='红冲申请提交失败';
|
|
|
- $resultChild=$result['HZSQDSCJG'][0];
|
|
|
+
|
|
|
if(isset($result['ZTDM']) && $result['ZTDM']=='060000'){
|
|
|
+ $resultChild=$result['HZSQDSCJG'][0];
|
|
|
if($resultChild['ZTDM']=='060000'){
|
|
|
$data['status']=2;
|
|
|
$data['XXBBH']=$resultChild['XXBBH'];
|
|
@@ -1759,11 +1760,11 @@ class OrderInv extends BaseController{
|
|
|
}
|
|
|
}
|
|
|
if($data['status']==5){
|
|
|
- throw new \Exception($resultChild['ZTXX'], 10006);
|
|
|
+ throw new \Exception($result['ZTXX'], 10006);
|
|
|
}
|
|
|
$up =Db::name("invoice_red")->insert($data);
|
|
|
if($up) return app_show(0,"红冲发票申请新建成功",["invRed"=>$invRed]);
|
|
|
- else throw new \Exception($resultChild['ZTXX'], 1006);
|
|
|
+ else throw new \Exception($result['ZTXX'], 1006);
|
|
|
}
|
|
|
/**
|
|
|
* @param array $ticket
|