|
|
@ -1628,9 +1628,9 @@ |
|
|
|
</foreach> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
and invoice_status != 0 |
|
|
|
and invoice_status != 0 |
|
|
|
and t.invoice_type in ('01','03','08','14','31') |
|
|
|
and invoice_type in ('01','03','08','14','31') |
|
|
|
and t.company = #{company} |
|
|
|
and company = #{company} |
|
|
|
and t.invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
and invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<!-- and DATE_FORMAT( status_update_date, '%Y-%m' ) = DATE_FORMAT( now( ), '%Y-%m' )--> |
|
|
|
<!-- and DATE_FORMAT( status_update_date, '%Y-%m' ) = DATE_FORMAT( now( ), '%Y-%m' )--> |
|
|
|
<!-- 普票跨年度发票 --> |
|
|
|
<!-- 普票跨年度发票 --> |
|
|
@ -1673,9 +1673,9 @@ |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
and invoice_status != '0' |
|
|
|
and invoice_status != '0' |
|
|
|
and auth_status = '4' |
|
|
|
and auth_status = '4' |
|
|
|
and t.invoice_type in ('01','03','08','14','31') |
|
|
|
and invoice_type in ('01','03','08','14','31') |
|
|
|
and t.company = #{company} |
|
|
|
and company = #{company} |
|
|
|
and t.invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
and invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<!-- and date_format(rzh_date,'%Y-%m') = date_format(now(),'%Y-%m')--> |
|
|
|
<!-- and date_format(rzh_date,'%Y-%m') = date_format(now(),'%Y-%m')--> |
|
|
|
<!-- 签收异常发票 --> |
|
|
|
<!-- 签收异常发票 --> |
|
|
@ -1697,8 +1697,10 @@ |
|
|
|
and invoice_status != '0' |
|
|
|
and invoice_status != '0' |
|
|
|
and qs_status = '1' |
|
|
|
and qs_status = '1' |
|
|
|
and t.invoice_type in ('01','03','08','14','31') |
|
|
|
and t.invoice_type in ('01','03','08','14','31') |
|
|
|
and t.company = #{company} |
|
|
|
<if test="company != null and company !='' and company != 'null'"> |
|
|
|
and t.invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
and company = #{company} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
and invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<!---- and date_format(qs_date,'%Y-%m') = date_format(now(),'%Y-%m')--> |
|
|
|
<!---- and date_format(qs_date,'%Y-%m') = date_format(now(),'%Y-%m')--> |
|
|
|
|
|
|
|
|
|
|
|