|
|
|
@ -448,7 +448,7 @@ class Vendor_money_model extends CI_Model {
|
|
|
|
|
gri.GRI_Name,
|
|
|
|
|
ro.money total_income,
|
|
|
|
|
(select SUM(COLD_TotalPrice) from BIZ_ConfirmLineDetail d
|
|
|
|
|
inner join BIZ_PackageOrderInfo p on p.POI_COLD_SN=d.COLD_SN
|
|
|
|
|
LEFT join BIZ_PackageOrderInfo p on p.POI_COLD_SN=d.COLD_SN
|
|
|
|
|
where d.DeleteFlag=0
|
|
|
|
|
and COLD_COLI_SN=coli.COLI_SN
|
|
|
|
|
and ( d.COLD_PlanVEI_SN not in ($all_vendor) or
|
|
|
|
@ -478,7 +478,7 @@ class Vendor_money_model extends CI_Model {
|
|
|
|
|
(select isnull(SUM(tourcost),0) from report_tour
|
|
|
|
|
inner join BIZ_ConfirmLineDetail on COLD_SN=RPT_COLD_SN and COLD_PlanVEI_SN in ($all_vendor)
|
|
|
|
|
where ordernumber=COLI_ID ) AS cost
|
|
|
|
|
,coli.COLI_OPI_ID,COLI_Memo, COLI_SN
|
|
|
|
|
,coli.COLI_OPI_ID,COLI_Memo, COLI_SN,COLI_Currency
|
|
|
|
|
,gri.GRI_SN
|
|
|
|
|
--,*
|
|
|
|
|
from
|
|
|
|
|