Keep track of children CLINS to update amount

- emit CLIN amount and type when amount changes
- totals are added correctly based on CLIN type
This commit is contained in:
montana
2019-06-14 13:54:18 -04:00
parent c775c7322c
commit 23b7df2153
4 changed files with 48 additions and 17 deletions

View File

@@ -60,6 +60,7 @@
v-bind:initial-clin-index='{{ index }}'
v-bind:initial-loa-count="{{ fields.loas.data | length }}"
v-bind:initial-clin-type="'{{ fields.jedi_clin_type.data }}'"
v-bind:initial-amount='{{ fields.obligated_amount.data }}'
inline-template>
<div>
<div class="form-row">
@@ -159,7 +160,10 @@
<div v-for="clin in clins">
<hr v-if="clinIndex !== 0">
<clin-fields v-bind:initial-clin-index='clinIndex' inline-template>
<clin-fields
v-bind:initial-clin-index='clinIndex'
v-bind:initial-clin-type="'JEDICLINType.JEDI_CLIN_1'"
inline-template>
<div>
<div class="form-row">
<div class="form-col form-col--two-thirds">
@@ -214,6 +218,7 @@
</template>
</div>
</textinput>
</div>
</div>
@@ -398,14 +403,14 @@
v-bind:contract-amount='total'
>
<div class="col totals-box">
<div class="h4">Total obligated funds</div>
<div class="h3" v-html="formattedObligated"></div>
<div>This is the funding allocated to cloud services. It may be 100% or a portion of the total task order budget.</div>
<div class="h4">Total obligated funds</div>
<div class="h3" v-html="formattedObligated"></div>
<div>This is the funding allocated to cloud services. It may be 100% or a portion of the total task order budget.</div>
<hr>
<hr>
<div class="h4">Total contract amount</div>
<div class="h3" v-html="formattedContractAmount"></div>
<div class="h4">Total contract amount</div>
<div class="h3" v-html="formattedContractAmount"></div>
<div>This is the value of all funds obligated for this contract, including -- but not limited to -- funds obligated for the cloud.</div>
</div>
</totals-box>