Comparaison structurée

Les constats sont alignés sans responsabilité ni montant.

@for (section of comparisonSections(); track section.title) {

{{ section.title }}

@for (line of section.lines; track line.reference) { }
Référence Entrée Sortie Changement Motif d’absence
{{ line.reference }} {{ line.entry }} {{ line.exit }} {{ line.changed ? 'Oui' : 'Non' }} {{ line.absence }}
} @if (comparison(); as compared) { @if (technicalPhotoComparisons().length) {

Photos des compteurs et accès

} @for (line of technicalPhotoComparisons(); track line.kind + line.subjectId) {

{{ line.label }}

Entrée
@if (line.entry) { Photo d’entrée de {{ line.label }} } @else {

Aucune photo d’entrée.

}
Sortie
@if (line.exit) { Photo de sortie de {{ line.label }} } @else {

Aucune photo de sortie.

}
} @if (areaPhotoComparisons().length) {

Autres photos

} @for (line of areaPhotoComparisons(); track line.reference) {

Entrée

@if (line.entry) { Photo d’entrée } @else {

Aucune photo d’entrée.

}

Sortie

@if (line.exit) { Photo de sortie } @else {

Aucune photo de sortie.

}
@if (line.absence) {

Motif d’absence : {{ line.absence.reason }}

}
} }