 
   constructor: (excludeEmptyStocks) ->
     @excludeEmptyStocks = excludeEmptyStocks
-    @i = 0
 
   mapStocks: (stocks) ->
     mappings =

      quantity: "quantityOnStock"
      channel: "supplyChannel"

    rows = _.map stocks.body.results, (stock) =>
      @_mapStocks(stock)

    console.log "Export #{@i} stock entries."
    header = _.map mappings, (value, key) =>
      key


    if @excludeEmptyStocks && values[1] == 0
      return null
    else
      return values

  _getValue: (stock, mapping) ->
