|
|
|
@ -71,8 +71,12 @@ class Vendor_money_model extends CI_Model {
|
|
|
|
|
)
|
|
|
|
|
and CGI_Checked=1
|
|
|
|
|
and GRI_OrderType=227002
|
|
|
|
|
|
|
|
|
|
and COLI_sourcetype=$sourcetype
|
|
|
|
|
and exists (
|
|
|
|
|
select 1 from BIZ_ConfirmLineDetail where COLD_COLI_SN=coli.COLI_SN
|
|
|
|
|
and DeleteFlag=0
|
|
|
|
|
and COLD_PlanVEI_SN=$vendor
|
|
|
|
|
)
|
|
|
|
|
-- and COLI_sourcetype=$sourcetype
|
|
|
|
|
) as cgi_group
|
|
|
|
|
) as sum_opi
|
|
|
|
|
group by sum_opi.COLI_OPI_ID
|
|
|
|
|