|
|
|
@ -1022,7 +1022,7 @@ |
|
|
|
|
,t.qs_type,t.qs_status,t.dk_tax_amount,t.qs_name |
|
|
|
|
from t_dx_record_invoice t left join t_dx_tax_current c on t.gf_tax_no = c.taxno |
|
|
|
|
left join t_dx_dk_count d on c.taxno = d.taxno and c.current_tax_period = d.skssq |
|
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{kpksrq} and #{kpjsrq} |
|
|
|
|
WHERE t.invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
|
and t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08') |
|
|
|
|
and t.rzh_yesorno = '0' |
|
|
|
|
and t.invoice_status in ('0','7') |
|
|
|
@ -1254,7 +1254,7 @@ |
|
|
|
|
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.dk_tax_amount)hjse |
|
|
|
|
from t_dx_record_invoice t left join t_dx_tax_current c on t.gf_tax_no = c.taxno |
|
|
|
|
left join t_dx_dk_count d on c.taxno = d.taxno and c.current_tax_period = d.skssq |
|
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{kpksrq} and #{kpjsrq} |
|
|
|
|
WHERE t.invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
|
and t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08') |
|
|
|
|
and t.rzh_yesorno = '0' |
|
|
|
|
and t.invoice_status in ('0','7') |
|
|
|
@ -1263,7 +1263,7 @@ |
|
|
|
|
and t.invoice_amount>0 |
|
|
|
|
and t.tax_amount>=0 |
|
|
|
|
and d.tj_status in('0','3') |
|
|
|
|
and date_format(t.invoice_date,'%Y%m%d') between c.select_start_date and c.select_end_date |
|
|
|
|
and t.invoice_date between c.select_start_date and c.select_end_date |
|
|
|
|
and t.company = #{company} |
|
|
|
|
and t.gf_tax_no in |
|
|
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
|