diff --git a/datatypes/epc/domain/mapper.py b/datatypes/epc/domain/mapper.py index a1ec7d68..e738f381 100644 --- a/datatypes/epc/domain/mapper.py +++ b/datatypes/epc/domain/mapper.py @@ -776,9 +776,15 @@ class EpcPropertyDataMapper: heated_rooms_count=schema.heated_room_count, wet_rooms_count=0, extensions_count=schema.extensions_count, - open_chimneys_count=0, + open_chimneys_count=schema.open_fireplaces_count, insulated_door_count=schema.insulated_door_count, draughtproofed_door_count=None, + percent_draughtproofed=schema.percent_draughtproofed, + # ADR-0028: sheltered_sides must come from built_form, else the + # calculator assumes mid-terrace (2) for every dwelling. + sap_ventilation=SapVentilation( + sheltered_sides=_api_sheltered_sides(schema.built_form), + ), # ADR-0028: 18.0 gives total + low-energy OUTLET counts, not an # LED/CFL/incandescent split. Low-energy -> the calculator's LEL # path; the remainder is incandescent (1 outlet ~= 1 bulb).