Better incorporate fixture data into reporting

Before this commit, if a portfolio wasn't present in the spending fixture
data, the reporting screen would be empty -- even if the portfolio had
applications and environments associated with it on the database. Now,
0s appear if an application and / or environment isn't present in the
fixture data.
This commit is contained in:
graham-dds
2019-12-27 11:11:00 -05:00
parent 2cb2b48bba
commit 490d778743
3 changed files with 51 additions and 26 deletions

View File

@@ -49,7 +49,7 @@
<span v-html='formatDollars(application.last_month || 0)'></span>
</td>
<td class="table-cell--align-right">
<span v-html='formatDollars(application.total)'></span>
<span v-html='formatDollars(application.total || 0)'></span>
</td>
</tr>
<tr
@@ -67,7 +67,7 @@
<span v-html='formatDollars(environment.last_month || 0)'></span>
</td>
<td class="table-cell--align-right">
<span v-html='formatDollars(environment.total)'></span>
<span v-html='formatDollars(environment.total || 0)'></span>
</td>
</tr>
</template>