Skip to content

Commit

Permalink
adding dates to contracts export in annex4 fixes #375
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgirard committed Mar 9, 2017
1 parent 83c85d2 commit 33f9869
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion server/export/annex4.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const TEMPLATES = {
{{~#if instrument}}, {{instrument}}{{/if~}}
{{~#if manager}}, {{manager.firstName}} {{manager.name}}{{/if~}}
{{~#if role}}, {{role}}{{/if~}}
{{~#if startDate}}, {{formatRange .}}{{/if~}}
</li>
{{/each}}
</ul>
Expand Down Expand Up @@ -513,7 +514,9 @@ const TABS = [
name:'',
organization:'',
program:'',
instrument:''
instrument:'',
startDate:'',
endDate:''
};

if (activity.acronym)
Expand All @@ -537,6 +540,12 @@ const TABS = [
info.instrument = index[grant.grantInstrument] || grant.grantInstrument;
}

if (activity.startDate)
info.startDate = activity.startDate;

if (activity.endDate)
info.endDate = activity.endDate;

const manager = activity.people.find(person => {
return (
person.role === 'responsableScientifique' ||
Expand Down

0 comments on commit 33f9869

Please sign in to comment.