|
|
|
@ -14,7 +14,7 @@ |
|
|
|
|
ifnull(sum(dk_tax_amount), 0) totalTax |
|
|
|
|
FROM t_dx_record_invoice |
|
|
|
|
WHERE valid='1' |
|
|
|
|
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and t.lq_tdyslxDm='08')) |
|
|
|
|
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and lq_tdyslxDm='08')) |
|
|
|
|
AND invoice_status='0' |
|
|
|
|
AND rzh_yesorno='1' |
|
|
|
|
<if test="skssq !=null and skssq != ''"> |
|
|
|
@ -57,7 +57,7 @@ |
|
|
|
|
<select id="getTotalOutTax" resultType="Double" databaseId="mysql"> |
|
|
|
|
SELECT ifnull(sum(out_tax_amount), 0) FROM t_dx_record_invoice |
|
|
|
|
WHERE valid='1' |
|
|
|
|
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and t.lq_tdyslxDm='08')) |
|
|
|
|
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and lq_tdyslxDm='08')) |
|
|
|
|
AND invoice_status='0' |
|
|
|
|
AND rzh_yesorno='1' |
|
|
|
|
AND out_status in ('1','2') |
|
|
|
@ -74,7 +74,7 @@ |
|
|
|
|
ifnull(sum(out_tax_amount), 0) tax |
|
|
|
|
FROM t_dx_record_invoice |
|
|
|
|
WHERE valid='1' |
|
|
|
|
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and t.lq_tdyslxDm='08')) |
|
|
|
|
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and lq_tdyslxDm='08')) |
|
|
|
|
AND invoice_status='0' |
|
|
|
|
AND rzh_yesorno='1' |
|
|
|
|
AND out_status in ('1','2') |
|
|
|
|