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

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

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

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

    # Fetch contacts from Bolt and save first id
    # TODO:Remove it, its only workaround to test feature for IMPAC-771
    BoltResources.index(
      w.metadata.bolt_path,
      'contacts',
      { metadata: _.pick(w.metadata, 'organization_ids') }
    ).then((response) ->
      if (response.data.data[0])
        $scope.firstContactId = response.data.data[0].id
    )

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