Option Sales Presets
Predefined option configurations per type, with conditional rules
Option Sales Presets
Presets define named option configurations for a housing type, for example the fixed "optiewoningen" used on sales drawings (verkooptekeningen), so a developer can review the option drawings the same way they are shared internally. They are managed on the Presets tab of the type editor.
A preset only stores the choices it wants to pin. When option sales variants are generated (from the project editor block table, via queue option sales), each preset is layered over the house's own configuration:
- Plan options of the house (lowest)
- Base configuration of the house
- Preset choices (highest)
Options the preset does not mention fall through to the layers below; anything still unspecified gets the option's default (its first code). The resulting configuration is what the drawing is rendered from.
Preset rules
Static presets can't express combination-dependent behavior, e.g. "if ELE-01 is applied, option 01-04-03 must be off on this optiewoning". Preset rules handle this. Rules are managed per preset, in the Rules section at the bottom of each preset card. Each rule has:
- Condition codes: the rule fires when every listed code is applied in the variant's configuration (AND). Codes contributed by defaults count as applied. Use multiple rules to express OR.
- Action:
- Turn on (add choice): pins an option to a specific code on the preset layer, even if the preset (or the base list) doesn't mention it.
- Turn off (back to default): drops the preset's choice for the option, so it falls back to the house configuration or the option default. Rules created on a preset card apply to that preset only. Rules created before this scoping existed apply to every preset of the type; they show up on each card with an applies to all presets badge, and editing or deleting one there affects all presets.
Rules are evaluated in a single ordered pass against the configuration before any rule is applied: a rule's outcome never triggers or suppresses another rule. When multiple rules target the same option, the last rule in the list wins; reorder rules with the arrows.
Rules only affect how option sales variants are generated (and reset to preset). They are presentation logic for drawings; use restrictions to define what combinations are actually allowed.
Example
Whoon-style rules on the Optiewoning 1 preset:
| If applied | Action | Option code |
|---|---|---|
| ELE-01 | turn off | 01-04-03 |
| ELE-01 | turn on | 01-02-45 |
| ELE-02 & ELE-20 | turn on | 01-04-04 |