Skip to content

Commit

Permalink
Merge pull request #295 from RedFroggy/fix143ECSMultiBatiment
Browse files Browse the repository at this point in the history
fix(fix-143): Conso ECS for 'installation collective multi-bâtiment'
  • Loading branch information
jgavignet authored Dec 23, 2024
2 parents bf7f458 + c5a1b9e commit 8fee1db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/14_generateur_ecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ export default function calc_gen_ecs(dpe, gen_ecs, ecs_di, ecs_de, GV, ca_id, zc

let isCombustionGenerator = combustion_ids.includes(type_generateur_id);
let isPacGenerator = pac_ids.includes(type_generateur_id);
let isReseauChaleur = type_energie === 'réseau de chauffage urbain';
/**
* enum_type_installation_id = 3 => 'installation collective multi-bâtiment : modélisée comme un réseau de chaleur'
*/
let isReseauChaleur =
type_energie === 'réseau de chauffage urbain' || ecs_de.enum_type_installation_id === '3';
let isElectric = type_energie === 'électricité';

/**
Expand Down

0 comments on commit 8fee1db

Please sign in to comment.