Changes between Version 11 and Version 12 of AdvancedReports
- Timestamp:
- 02/14/23 19:35:21 (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v11 v12 82 82 left join ( 83 83 select articleid, locationid, coalesce(sum(quantity), 0) as incoming from orderedarticles o 84 where o.articlestatus=' In progress' or o.articlestatus='Delivered'84 where o.articlestatus='ORDERED' or o.articlestatus='DELIVERED' 85 85 group by o.articleid, o.locationid 86 86 ) q2 on q2.articleid=a.articleid and q2.locationid=l.locationid … … 144 144 select s.supplierinfo, u.firstname, u.lastname, u.username, coalesce(sum(o2.quantity), 0) as koldostavena, coalesce(sum(o2.quantity*o2.price)) as zarabotkasupp from suppliers s 145 145 left join users u on u.userid=s.userid 146 left join orders o on o.supplieruserid=s.userid and (o.status='D elivered' or o.status='Processed')147 left join orderedarticles o2 on o2.orderid=o.orderid and (o2.articlestatus='D elivered' or o2.articlestatus='Processed')146 left join orders o on o.supplieruserid=s.userid and (o.status='DELIVERED' or o.status='PROCESSED') 147 left join orderedarticles o2 on o2.orderid=o.orderid and (o2.articlestatus='DELIVERED' or o2.articlestatus='PROCESSED') 148 148 group by s.userid, u.userid 149 149 order by zarabotkasupp desc