|
|
@@ -336,7 +336,7 @@
|
|
|
tmd.data_value as into_reason_name,
|
|
|
tmp.return_address,
|
|
|
case when tpi.receivable_id is null then false
|
|
|
- when tmai.amt_should = tmai.amt_residue then false
|
|
|
+ when tmai.amt_handle = 0 then false
|
|
|
else true end as "paymentFlag"
|
|
|
FROM dkic_b.t_psi_inbound tpi
|
|
|
<include refid="Join_Table"/>
|
|
|
@@ -380,7 +380,7 @@
|
|
|
,tmw.wh_name as "whName"
|
|
|
,tmd.data_value as into_reason_name
|
|
|
,case when tpi.receivable_id is null then false
|
|
|
- when tmai.amt_should = tmai.amt_residue then false
|
|
|
+ when tmai.amt_handle = 0 then false
|
|
|
else true end as "paymentFlag"
|
|
|
FROM dkic_b.t_psi_inbound tpi
|
|
|
Left join dkic_b.t_mst_org tmo on tmo.org_id = tpi.org_id
|
|
|
@@ -895,7 +895,7 @@
|
|
|
,tmp.contact_name
|
|
|
,tmp.contact_phone
|
|
|
,case when tpi.receivable_id is null then false
|
|
|
- when tmai.amt_should = tmai.amt_residue then false
|
|
|
+ when tmai.amt_handle = 0 then false
|
|
|
else true end as "paymentFlag"
|
|
|
FROM dkic_b.t_psi_inbound tpi
|
|
|
<include refid="Join_Table_Return"/>
|
|
|
@@ -927,7 +927,7 @@
|
|
|
,tmp.contact_name
|
|
|
,tmp.contact_phone
|
|
|
,case when tpi.receivable_id is null then false
|
|
|
- when tmai.amt_should = tmai.amt_residue then false
|
|
|
+ when tmai.amt_handle = 0 then false
|
|
|
else true end as "paymentFlag"
|
|
|
FROM dkic_b.t_psi_inbound tpi
|
|
|
Left join dkic_b.t_mst_org tmo on tmo.org_id = tpi.org_id
|