- emit CLIN amount and type when amount changes - totals are added correctly based on CLIN type
21 lines
378 B
JavaScript
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)
|
|
},
|
|
},
|
|
}
|