Browse Source

开票列表新增查询条件2

master
wanghongjun 11 months ago
parent
commit
9e1931f949
  1. 2
      app/controller/admin/InvoiceIssuance.php

2
app/controller/admin/InvoiceIssuance.php

@ -52,7 +52,7 @@ class InvoiceIssuance extends Base
$where[] = ['create_time', '<=', strtotime($param['end_time'] . ' 23:59:59')];
}
if (isset($param['head_type']) && !empty($param['head_type'])) {
if (isset($param['head_type']) && in_array($param['status'], [0, 1])) {
$invoice_head_id = (new InvoiceHead())->where(['type' => $param['head_type']])->column('id');
$where[] = ['invoice_head_id', 'in', $invoice_head_id];
}

Loading…
Cancel
Save