           E.reconciliation.editReconciliationModal(@reconciliationModal)
 
     editReconciliationModal: (modal) ->
-      displayedItemIds = $('.nested-item-form[data-item-id]').map(-> $(this).attr('data-item-id')).toArray()
+      displayedItemIds = $('.nested-fields .nested-item-form[data-item-id]').map(-> $(this).attr('data-item-id')).toArray()
 
       for id in displayedItemIds
         $checkbox = modal.getModalContent().find("input[type='checkbox'][data-id=#{id}]")


    removeLineWithUnselectedItems: (modal, displayedItemIds, event) ->
      for id in displayedItemIds

        $checkbox = $(modal).find("input[type='checkbox'][data-id=#{id}]")
        continue if $checkbox.prop('checked')

        $('.item-form__btn .btn').first().trigger('click')


    _createNewItemLine: (itemCheckbox) ->

  $(document).on 'click', '#purchase_process_reconciliation .valid-modal', (event) ->
    modal = $(event.target).closest('#purchase_process_reconciliation')

    displayedItemIds = $('.nested-fields .nested-item-form[data-item-id]').map(-> $(this).attr('data-item-id')).toArray()

    if $(this).attr('data-item-reconciliation') != undefined
      # Reconciliation on line
