|
|
|
@ -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]; |
|
|
|
} |
|
|
|
|