|
|
@@ -28,13 +28,16 @@ select t1.ftype,
|
|
|
t1.frecagentnum,
|
|
|
t4.fagentname as frecagentname,
|
|
|
t1.fprojectnum,
|
|
|
- t5.fprojectname
|
|
|
+ t5.fprojectname,
|
|
|
+ t7.fwriteofstatus,
|
|
|
+ t7.finvoicestatus
|
|
|
from saorder t1
|
|
|
left join saorder_totalview t2 on t1.saorderid = t2.fparentid
|
|
|
left join tagents t3 on t1.fpayagentnum = t3.fagentnum and t1.siteid = t3.siteid
|
|
|
left join tagents t4 on t1.frecagentnum = t4.fagentnum and t1.siteid = t4.siteid
|
|
|
left join tproject t5 on t1.fprojectnum = t5.fprojectnum and t1.siteid = t5.siteid
|
|
|
left join pp_hr t6 on t1.fsaler=t6.hrid and t1.siteid = t6.siteid
|
|
|
+ left join saorder_view1 t7 on t1.saorderid = t7.saorderid
|
|
|
where t1.siteid =$siteid$
|
|
|
and t1.fstatus not in('н¨','ɾ³ý')
|
|
|
and t1.ftype!='¹¤¾ß½è³öµ¥'
|