|
@@ -273,7 +273,7 @@ end
|
|
|
!! - A number as str -> '1', '2' - this should be the id of the property
|
|
|
!! NOTE: only added in case someone really want to use the old ids
|
|
|
if $ARGS[0] = 'is_property_of_status':
|
|
|
- $propstatcode = iif($ARGS[2] = '', $loc, $ARGS[2])
|
|
|
+ $propstatcode = iif($ARGS[2] = '', $home_name[$loc], $home_name[$ARGS[2]])
|
|
|
|
|
|
if $ARGS[1] = 'rented':
|
|
|
result = accessible_property[$propstatcode] = 1
|
|
@@ -985,25 +985,25 @@ end
|
|
|
!! Call: `func('homes_properties', 'get_property_construction_status', $ARGS[1])`
|
|
|
!! $ARGS[1] - the property code or location, if empty it will use $loc
|
|
|
if $ARGS[0] = 'get_property_construction_status':
|
|
|
- result = iif($ARGS[1] = '', accessible_property['<<$loc>>-construction-status'], accessible_property['<<$ARGS[1]>>-construction-status'])
|
|
|
+ $constrstatcheckpropcode = iif($ARGS[1] = '', $home_name[$loc], $home_name[$ARGS[1]])
|
|
|
+ result = accessible_property['<<$constrstatcheckpropcode>>-construction-status']
|
|
|
+ killvar 'constrstatcheckpropcode'
|
|
|
end
|
|
|
|
|
|
!! Call: `func('homes_properties', 'progress_construction_status', $ARGS[1])`
|
|
|
!! $ARGS[1] - the property code or location, if empty it will use $loc
|
|
|
if $ARGS[0] = 'progress_construction_status':
|
|
|
- '$ARGS[1]: <<$ARGS[1]>>'
|
|
|
- $constrstatpropcode = iif($ARGS[1] = '', $loc, $ARGS[1])
|
|
|
- '$constrstatpropcode: <<$constrstatpropcode>>'
|
|
|
- 'accessible_property[''<<$constrstatpropcode>>-construction-status'']: <<accessible_property[''<<$constrstatpropcode>>-construction-status'']>>'
|
|
|
+ $constrstatpropcode = iif($ARGS[1] = '', $home_name[$loc], $home_name[$ARGS[1]])
|
|
|
if accessible_property['<<$constrstatpropcode>>-construction-status'] < 2: accessible_property['<<$constrstatpropcode>>-construction-status'] += 1
|
|
|
- 'accessible_property[''<<$constrstatpropcode>>-construction-status'']: <<accessible_property[''<<$constrstatpropcode>>-construction-status'']>>'
|
|
|
killvar 'constrstatpropcode'
|
|
|
end
|
|
|
|
|
|
!! Call: `func('homes_properties', 'is_property_renovated', $ARGS[1])`
|
|
|
!! $ARGS[1] - the property code or location, if empty it will use $loc
|
|
|
if $ARGS[0] = 'is_property_renovated':
|
|
|
- result = iif($ARGS[1] = '', accessible_property['<<$loc>>-renovated'], accessible_property['<<$ARGS[1]>>-renovated'])
|
|
|
+ $checkrenpropcode = iif($ARGS[1] = '', $home_name[$loc], $home_name[$ARGS[1]])
|
|
|
+ result = accessible_property['<<$checkrenpropcode>>-renovated']
|
|
|
+ killvar 'checkrenpropcode'
|
|
|
end
|
|
|
|
|
|
!! Call: `gs 'homes_properties', 'renovate_property', $ARGS[1], ARGS[2], $ARGS[3]
|
|
@@ -1012,7 +1012,7 @@ end
|
|
|
!! ARGS[2] - the value of the renovation
|
|
|
!! $ARGS[3] - the part of the property that was renovated - 'bedroom', 'living room', etc. Optional
|
|
|
if $ARGS[0] = 'renovate_property':
|
|
|
- $renovatepropcode = iif($ARGS[1] = '', $loc, $ARGS[1])
|
|
|
+ $renovatepropcode = iif($ARGS[1] = '', $home_name[$loc], $home_name[$ARGS[1]])
|
|
|
accessible_property['<<$renovatepropcode>>-renovated'] = 1
|
|
|
accessible_property['<<$renovatepropcode>>-renovation-value'] += ARGS[2]
|
|
|
if $ARGS[3] ! '' : $accessible_property['<<$renovatepropcode>>-renovations'] += ';<<$ARGS[3]>>'
|