Commit 6a5e9848 by 朱继来

Merge branch 'zjl_inquiry_order_20210311' into development

parents e47f6dea 6db8641c
......@@ -609,7 +609,11 @@ class ApiController extends Controller
$com_name = DB::connection('order')->table('lie_invoice_company')->where('id', $com_id)->value('com_name');
if (!$com_name) $this->Export(-1, '当前公司不存在');
$invoice = DB::connection('order')->table('lie_taxinfo')->where(['tax_title'=>$com_name, 'inv_type'=>$invoice_type])->first();
$map = [];
$map['tax_title'] = $com_name;
$map['user_id'] = $user_id;
$map['inv_type'] = $invoice_type;
$invoice = DB::connection('order')->table('lie_taxinfo')->where($map)->first();
$tax_info['tax_id'] = isset($invoice) ? $invoice->tax_id : 0;
$tax_info['tax_title'] = isset($invoice) ? $invoice->tax_title : '';
......
......@@ -37,7 +37,7 @@
<div class="section-3">
@if ($type == 1)
<a class="btn btn-success" href="/change/{{ $order_info->order_id }}">审核订单</a>
@if ($is_quiry)
@if (!$is_quiry)
<a class="btn btn-default" href="/add_order">继续新增</a>
@endif
@elseif ($type == 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment