     hide: -> this.display = false
 
   $scope.addForecastPopup.createTransaction = (trx) ->
+    console.log('trx: ', trx)
     BoltResources.create(
       w.metadata.bolt_path,
       this.resourcesType,

      { metadata: _.pick(w.metadata, 'organization_ids') }
    ).then((response) -> $scope.firstCompanyId = response.data.data[0].id)

  # Executed after the widget and its settings are initialised and ready
  w.format = ->
    _highChartOptions =

        transaction_date: moment().format('YYYY-MM-DD'),
        due_date: moment(trx.datePicker.date).format('YYYY-MM-DD'),
        status: 'FORECAST',
        currency: w.metadata.currency,
        recurring: trx.recurring,
        recurring_pattern: trx.recurring_pattern,
        recurring_end_date: if trx.recurring_end_date then moment(trx.recurring_end_date).format('YYYY-MM-DD') else null
      },
      {
        company: { data: { type: 'companies', id: $scope.firstCompanyId } },
        contact: { data: { type: 'contacts', id: $scope.firstContactId } }
      }
    ).then(-> ImpacWidgetsSvc.show(w))

  # == Chart Events Callbacks =====================================================================
