     deferred.promise
 
   _filterPrices: (retailerVariant, variantInMaster, retailerCustomerGroup, masterCustomerGroup, retailerChannel) ->
-    console.error "f retailerVariant %j", retailerVariant
-    console.error "f variantInMaster %j", variantInMaster
-    console.error "f retailerCustomerGroup %j", retailerCustomerGroup
-    console.error "f masterCustomerGroup %j", masterCustomerGroup
-    console.error "f retailerChannel %j", retailerChannel
-
     retailerPrices = _.select retailerVariant.prices, (price) ->
       not _.has(price, 'customerGroup') or price.customerGroup.id is retailerCustomerGroup.id
 
     masterPricesWithRetailerChannel = _.select variantInMaster.prices, (price) ->
       _.has(price, 'channel') and price.channel.id is retailerChannel.id
-    
+
     masterPrices = _.select masterPricesWithRetailerChannel, (price) ->
       not _.has(price, 'customerGroup') or price.customerGroup.id is masterCustomerGroup.id
 

  syncVariantPrices: (variantDataInMaster, retailerVariant, retailerCustomerGroup, masterCustomerGroup, retailerChannelInMaster) ->
    prices = @_filterPrices(retailerVariant, variantDataInMaster.variant, retailerCustomerGroup, masterCustomerGroup, retailerChannelInMaster)
    actions = @_updatePrices(prices.retailerPrices, prices.masterPrices, retailerChannelInMaster.id, variantDataInMaster.variant, retailerCustomerGroup.id, masterCustomerGroup.id)
      
    if _.isEmpty(actions)
      Q({ updates: 0 })


      actions.push liveAction

    action = syncAmountOrCreate(@_salesPrice(retailerPrices, retailerCustomerGroupId), @_salesPrice(masterPrices, masterCustomerGroupId), CUSTOMER_GROUP_SALE)

    if action
      #actions.push action
      liveAction = _.clone action
      liveAction.staged = false
      actions.push liveAction

    actions

  _normalPrice: (prices) ->
