|
@@ -15,6 +15,5 @@ from tinvoiceapply t1
|
|
|
left join tinvoiceapplyorder t2 on t1.siteid = t2.siteid and t1.tinvoiceapplyid = t2.tinvoiceapplyid
|
|
left join tinvoiceapplyorder t2 on t1.siteid = t2.siteid and t1.tinvoiceapplyid = t2.tinvoiceapplyid
|
|
|
left join tagents t3 on t1.siteid=t3.siteid and t1.fagentnum=t3.fagentnum
|
|
left join tagents t3 on t1.siteid=t3.siteid and t1.fagentnum=t3.fagentnum
|
|
|
where t1.siteid=$siteid$ and t1.tinvoiceapplyid=$tinvoiceapplyid$
|
|
where t1.siteid=$siteid$ and t1.tinvoiceapplyid=$tinvoiceapplyid$
|
|
|
-group by t1.tinvoiceapplyid, t1.fbillnum, t1.createdate, t1.submitdate, t1.checkdate, t1.finvoicetaxnumber,
|
|
|
|
|
- t1.finvoicename,
|
|
|
|
|
- t1.finvoiceaddress, t1.fstatus,t1.fnotes
|
|
|
|
|
|
|
+group by t1.tinvoiceapplyid, t1.fbillnum, t1.fagentnum,t3.fagentname, t1.createdate, t1.submitdate, t1.checkdate, t1.finvoicetaxnumber,
|
|
|
|
|
+ t1.finvoicename,t1.finvoiceaddress, t1.fstatus,t1.fnotes
|