|
|
|
@ -218,11 +218,13 @@ class Vendor_money_model extends CI_Model {
|
|
|
|
|
AND GRI_OrderType=227002
|
|
|
|
|
AND COLI_OPI_ID <> 435
|
|
|
|
|
AND exists (
|
|
|
|
|
select 1 from BIZ_ConfirmLineDetail where COLD_COLI_SN=COLI_SN
|
|
|
|
|
select 1 from BIZ_ConfirmLineDetail d1 where COLD_COLI_SN=COLI_SN
|
|
|
|
|
and d1.DeleteFlag=0
|
|
|
|
|
and COLD_PlanVEI_SN in ($all_vendor) --in ($all_vendor)
|
|
|
|
|
)
|
|
|
|
|
AND exists (
|
|
|
|
|
select 1 from BIZ_ConfirmLineDetail where COLD_COLI_SN=COLI_SN
|
|
|
|
|
select 1 from BIZ_ConfirmLineDetail d2 where COLD_COLI_SN=COLI_SN
|
|
|
|
|
and d2.DeleteFlag=0
|
|
|
|
|
and COLD_PlanVEI_SN not in ($all_vendor)
|
|
|
|
|
)
|
|
|
|
|
ORDER BY COLI_sourcetype ";
|
|
|
|
|