     _.filter orders, (order) ->
       _.size(order.syncInfo) is 0 or _.find order.syncInfo, (syncInfo) -> syncInfo.channel.id isnt channel.id
 
-  _ordersToXML: (orders, mappings) ->
+  _ordersToXML: (orders) ->
     root = builder.create('Orders', { 'version': '1.0', 'encoding': 'UTF-8'})
     root.att('count', orders.length)
     _.each orders, (order, index, list) =>
       orderXML = root.ele("Order", {num: index + 1})
-      @_orderToXML(order, orderXML, mappings)
+      @_orderToXML(order, orderXML)
     root
 
-  _orderToXML: (order, orderXML, mappings) =>
+  _orderToXML: (order, orderXML) =>
     @logger.info "[OrderExport] Processing order with orderNumber: '#{order.orderNumber}', id: '#{order.id}'"
     orderXML.e('OrderId').t(order.orderNumber)
     orderXML.e('OrderDate').t(order.createdAt)

  # 3) Update SPHERE orders with sync information
  ###
  execute: (mappings, targetPath) ->
    @startTime = new Date().getTime()
    orderQuery = @_buildOrderQuery @_options.numberOfDays


    lineItemsXML = orderXML.ele("OrderLines", {'count': order.lineItems.length})
    _.each order.lineItems, (lineItem, index, list) =>
      lineItemXML = lineItemsXML.ele("OrderLine", {num: index + 1})
      @_lineItemToXML(lineItem, lineItemXML)

  _lineItemToXML: (lineItem, lineItemXML) =>
    lineItemXML.e('OrderLineId').t(lineItem.id)
    productId = utils.getVariantAttValue(@mappings.productImport.mapping, 'ProductId', lineItem.variant)
    variationId = utils.getVariantAttValue(@mappings.productImport.mapping, 'VariationId', lineItem.variant)
    lineItemXML.e('ProductId').t(productId)
    name = _.values(lineItem.name)[0]
    lineItemXML.e('ProductName').t(name)
