Add 2 month close date to license request opps

This commit is contained in:
Matt Lott 2016-06-26 19:53:35 -07:00
parent 08886460c2
commit 85c1c16818

View file

@ -127,9 +127,12 @@ module.exports =
return done(errorMessage)
# Create opportunity
dateWon = new Date()
dateWon.setUTCMonth(dateWon.getUTCMonth() + 2)
postData =
note: "#{licensesRequested} licenses requested"
confidence: 5
date_won: dateWon.toISOString().substring(0, 10)
lead_id: leadID
status: 'Active'
value: parseInt(licensesRequested) * amount