atst/js/components/totals_box.js
montana 23b7df2153 Keep track of children CLINS to update amount
- emit CLIN amount and type when amount changes
- totals are added correctly based on CLIN type
2019-06-17 11:26:18 -04:00

21 lines
378 B
JavaScript

import { formatDollars } from '../lib/dollars'
export default {
name: 'totalsbox',
props: {
name: String,
obligated: Number,
contractAmount: Number,
},
computed: {
formattedObligated: function() {
return formatDollars(this.obligated)
},
formattedContractAmount: function() {
return formatDollars(this.contractAmount)
},
},
}