       if expectedQuantity
         d = @createInventoryEntry(sku, expectedQuantity, xmlHelpers.xmlVal(row, 'deliverydate'), channelId)
         stocks.push d
+    console.log 'mapStock: %j', stocks
     stocks
 
 module.exports = StockXmlImport
          @returnResult false, msg, callback

  mapStock: (xmljs, channelId) ->
    stocks = []
    for k,row of xmljs.row
      sku = xmlHelpers.xmlVal row, 'code'

    super(options)

  elasticio: (msg, cfg, cb, snapshot) ->
    console.log 'elasticio'
    if msg.attachments
      console.log 'elasticio - attachments'
      for attachment of msg.attachments
        continue if not attachment.match /xml$/i
        content = msg.attachments[attachment].content
