2 DEF VAR property-code
AS INT NO-UNDO INIT 0.
5 FIND Property
WHERE Property.PropertyCode
= property-code.
9 IF PropertyCode
= 534 THEN NEXT.
10 IF PropertyCode
= 601 THEN NEXT.
11 IF PropertyCode
= 745 THEN NEXT.
12 IF PropertyCode
= 746 THEN NEXT.
13 IF PropertyCode
= 765 THEN NEXT.
14 IF PropertyCode
= 767 THEN NEXT.
15 IF PropertyCode
= 768 THEN NEXT.
16 IF PropertyCode
= 780 THEN NEXT.
17 IF PropertyCode
= 802 THEN NEXT.
18 IF PropertyCode
= 804 THEN NEXT.
19 IF PropertyCode
= 805 THEN NEXT.
20 IF PropertyCode
= 809 THEN NEXT.
21 IF PropertyCode
= 922 THEN NEXT.
22 IF PropertyCode
= 1000 THEN NEXT.
23 IF PropertyCode
= 9999 THEN NEXT.
24 IF PropertyCode
= 99999 THEN NEXT.
28 FOR EACH BuildingEvent
OF Property
:
31 FOR EACH BuildingSystem
OF Property
:
32 DELETE BuildingSystem.
34 FOR EACH BuildingTask
OF Property
:
37 FOR EACH Contract
OF Property
:
40 FOR EACH GroundLease
OF Property
:
43 FOR EACH Image
OF Property
:
46 FOR EACH LeaseImage
OF Property
:
49 FOR EACH PropertyTitle
OF Property
:
52 FOR EACH StreetFrontage
OF Property
:
53 DELETE StreetFrontage.
55 FOR EACH Valuation
OF Property
:
58 FOR EACH PropertyOutgoing
OF Property
:
59 DELETE PropertyOutgoing.
61 FOR EACH SupplyMeter
OF Property
:
64 FOR EACH RentSpaceHistory
OF Property
:
65 DELETE RentSpaceHistory.
67 FOR EACH ConstructionDetails
OF Property
:
68 DELETE ConstructionDetails.
70 FOR EACH LeaseHistory
OF Property
:
73 FOR EACH PropForecast
OF Property
:
76 FOR EACH PropForecastParam
OF Property
:
77 DELETE PropForecastParam.
79 FOR EACH SupplyMeterReading
OF Property
:
80 DELETE SupplyMeterReading.
82 FOR EACH TenantCall
OF Property
:
85 FOR EACH PropertyView
OF Property
:
88 FOR EACH BuildingEvent
OF Property
:
91 FOR EACH BuildingEvent
OF Property
:
94 FOR EACH Note
OF Property
:
98 FOR EACH Tenant
WHERE Tenant.EntityType
= 'P'
AND Tenant.EntityCode
= Property.PropertyCode
:
101 FOR EACH RentalSpace
OF Property
:
104 FOR EACH TenancyLease
OF Property
:
107 /* DO TRANSACTION: */