Changes between Version 16 and Version 17 of AdvancedReports
- Timestamp:
- 07/10/23 18:30:30 (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v16 v17 60 60 * Извештај за станови во системот кои не се моментално издадени и нивните газди соодветно, и доколку биле издадени порано да се покаже кој седел во нив 61 61 {{{ 62 select distinct apart.apartmentid,apart.adresa as adresa, apart.ime, apart.prezime, apart.phone_number, au.ime,au.prezime,aa2.date _signed,aa2.date_expires from student s62 select distinct apart.apartmentid,apart.adresa as adresa, apart.ime, apart.prezime, apart.phone_number, au.ime,au.prezime,aa2.datesigned,aa2.dateexpires from student s 63 63 join student_signs ss on ss.studentid = s.studentid 64 64 join appuser au on au.userid = s.studentid 65 join apartment_agreement aa2 on aa2.a partment_agreementid = ss.agreementid65 join apartment_agreement aa2 on aa2.agreementid = ss.agreementid 66 66 right join 67 67 ( 68 select distinct apt.apartmentid,concat( b.cityname,', ',b.building_adress,' ',apt.apartment_adress) as adresa, a.ime, a.prezime, a.phone_number from apartment as apt68 select distinct apt.apartmentid,concat(c.cityname,', ',b.buildingaddress,' ',apt.apartmentfloorandroomnumber) as adresa, a.ime, a.prezime, a.phone_number from apartment as apt 69 69 left join apartment_agreement aa on aa.apartmentid = apt.apartmentid 70 70 join apartment_owner ao on ao.ownerid = apt.ownerid 71 71 join appuser as a on ao.ownerid = a.userid 72 72 join building b on apt.buildingid = b.buildingid 73 join city c on c.cityid = b.cityid 73 74 ) apart on apart.apartmentid=aa2.apartmentid 74 where now()>aa2.date _expires or aa2.date_expires isnull75 where now()>aa2.dateexpires or aa2.dateexpires isnull 75 76 }}} 76 77