Commit da9801c3 authored by niminmin's avatar niminmin

电子发票限额

parent e87381f8
......@@ -96,7 +96,8 @@
t2.ccr_document_type,
(select t.description
FROM hls_document_type t
where t.document_type = t2.ccr_document_type) ccr_document_type_desc
where t.document_type = t2.ccr_document_type) ccr_document_type_desc,
t2.je_transaction_code
from con_contract cc, hls_bp_master hbm, CUS_ACR_INVOICE_V t2
where cc.contract_id = t2.contract_id
and hbm.bp_wfl_status = 'APPROVED'
......@@ -111,8 +112,8 @@
(cc.contract_status = 'INCEPT' and t2.document_type = 'LEASE_CHAG' and
trunc(t2.due_date) < trunc(cc.CCR_LEASE_DATE))
--合同状态为解约回购中、解约回购完成的合同
or (cc.contract_status in ('REPUR', 'REPURING') and
trunc(t2.due_date) < trunc(cc.REPURCHASE_DATE))
or (cc.contract_status in ('REPUR', 'REPURING') and(
trunc(t2.due_date) < trunc(cc.REPURCHASE_DATE) or t2.je_transaction_code='CON_REPURCHASE' ) )
--合同状态为起租→开票对象:非深圳美鹏HCS小规模纳税人(自然人)→暂不开票→按季度展示未开票现金流
or
(cc.contract_status = 'INCEPT' and
......@@ -168,10 +169,6 @@
hbm.bp_class = 'NP' and
t2.inv_billing_object_code = 'D00010001')))
ORDER BY cc.contract_id, t2.due_date
) vv
#WHERE_CLAUSE#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment