     displayReconciliationModal: (event, datas) ->
       isPurchaseInvoiceForm = $(event.target).closest('.simple_form').is('.new_purchase_invoice, .edit_purchase_invoice')
       isReceptionForm = $(event.target).closest('.simple_form').is('.new_reception, .edit_reception')
-      debugger
 
       url = "/backend/purchase_process/reconciliation/purchase_orders_to_reconciliate"
       if isPurchaseInvoiceForm

  $(document).ready ->
    if $('#purchase_process_reconciliation').length > 0
      $('#main .heading-toolbar').addClass('purchase-process-reconciliation')
    if $('#purchase_invoice_accepted_state').is(':checked')
      E.reconciliation.displayAcceptedState()

  $(document).on 'change', '#purchase_process_reconciliation .model-checkbox', (event) ->
    checked = $(event.target).is(':checked')

        $('.no-reconciliate-title').addClass('hidden')
      else if $('.reconcile-title').length > 0 && $('.reconcile-title').hasClass('hidden')
        $('.no-reconciliate-title').addClass('hidden')
        $('.accepted-title').addClass('hidden')
      else
        $('.accepted-title').addClass('hidden')

