         $(lastLineForm).find('.nested-fields.storing-fields:first .conditionning-quantity').val(itemConditionningQuantity)
         $(lastLineForm).find('.nested-fields.storing-fields:first .conditionning').val(itemConditionning)
 
-      # purchaseOrderToCloseUpdate(checkboxLine, lastLineForm)
-  
   # Given checkbox and formContainer, this method sets the purchase-order-to-close-id property to the purchase order id on the given reception item's form fields
   #    if the purchase order of the selected element is marked for closure when saving the reception
   # 

  ##############################
  # Open modal on button click
  $(document).on 'click', '#showReconciliationModal', (event) =>
    open_reconciliation_modal($(event.target))

  # Validate modal
  handle_modal_validation = (modal) =>

      # Attacher un ecouteur evenement sur les checkbox des items
      E.delegateListener root, 'click', ".item-checkbox", (e) =>
        commandContainer = e.target.closest('.model')
        syncState(commandContainer, $form)
        return

      # Handle automated selection of multiple checkbox
      E.delegateListener root, 'click', '.model-checkbox', (e) =>
        checked = e.target.checked
        commandContainer = e.target.closest('.model')
        setAllChildrenTo(commandContainer, checked, $form) 
        return

      displayedItemIds = Array.from(document.querySelectorAll('.nested-fields .nested-item-form[data-item-id]'))
      displayedItemIds = displayedItemIds.map((item) => item.dataset.itemId)

      displayedItemIds.forEach (id) => 
        checkbox = content.querySelector(".item input[type='checkbox'][data-id='#{id}']")
        commandContainer = checkbox.closest('.model')
        if checkbox
          checkbox.checked = true
          syncState(commandContainer, $form)
      return

    prom.then (modal) =>
