Commit d2aab0ed authored by TIANZHI.HU's avatar TIANZHI.HU

对账单打印bug修复 add by 39135 HuTianzhi

parent bd27d75b
......@@ -104,10 +104,11 @@
From csh_write_off tn,csh_transaction ct
Where tn.cashflow_id = cwo.cashflow_id
and tn.csh_transaction_id=ct.transaction_id
and (ct.transaction_date<t.transaction_date
or (ct.transaction_date=t.transaction_date
and tn.write_off_date<=cwo.write_off_date
and tn.write_off_id<=cwo.write_off_id))),
and (ct.transaction_date < t.transaction_date or
(ct.transaction_date = t.transaction_date and
(tn.write_off_date < cwo.write_off_date or
(tn.write_off_date = cwo.write_off_date and
tn.write_off_id <= cwo.write_off_id))))),
0)) As unreceived_amount
From con_contract_cashflow ccc,
con_contract c,
......@@ -349,10 +350,11 @@
From csh_write_off tn,csh_transaction ct
Where tn.cashflow_id = cwo.cashflow_id
and tn.csh_transaction_id=ct.transaction_id
and (ct.transaction_date<t.transaction_date
or (ct.transaction_date=t.transaction_date
and tn.write_off_date<=cwo.write_off_date
and tn.write_off_id<=cwo.write_off_id))),
and (ct.transaction_date < t.transaction_date or
(ct.transaction_date = t.transaction_date and
(tn.write_off_date < cwo.write_off_date or
(tn.write_off_date = cwo.write_off_date and
tn.write_off_id <= cwo.write_off_id))))),
0)) As unreceived_amount
From con_contract_cashflow ccc,
con_contract c,
......@@ -627,10 +629,11 @@
From csh_write_off tn,csh_transaction ct
Where tn.cashflow_id = cwo.cashflow_id
and tn.csh_transaction_id=ct.transaction_id
and (ct.transaction_date<t.transaction_date
or (ct.transaction_date=t.transaction_date
and tn.write_off_date<=cwo.write_off_date
and tn.write_off_id<=cwo.write_off_id))),
and (ct.transaction_date < t.transaction_date or
(ct.transaction_date = t.transaction_date and
(tn.write_off_date < cwo.write_off_date or
(tn.write_off_date = cwo.write_off_date and
tn.write_off_id <= cwo.write_off_id))))),
0)) As unreceived_amount
From con_contract_cashflow ccc,
con_contract c,
......@@ -885,10 +888,11 @@
From csh_write_off tn,csh_transaction ct
Where tn.cashflow_id = cwo.cashflow_id
and tn.csh_transaction_id=ct.transaction_id
and (ct.transaction_date<t.transaction_date
or (ct.transaction_date=t.transaction_date
and tn.write_off_date<=cwo.write_off_date
and tn.write_off_id<=cwo.write_off_id))),
and (ct.transaction_date < t.transaction_date or
(ct.transaction_date = t.transaction_date and
(tn.write_off_date < cwo.write_off_date or
(tn.write_off_date = cwo.write_off_date and
tn.write_off_id <= cwo.write_off_id))))),
0)) As unreceived_amount
From con_contract_cashflow ccc,
con_contract c,
......
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