   # Checks the parent checkbox if all children are checked. Uncheck it if not.
   # If all checked, set 'close command to true, else to false'
   # Also hide/display the close command radio
-  syncState = (commandContainer, $form) =>
+  syncState = (commandContainer, $form) => 
     itemCheckboxes = Array.from(commandContainer.querySelectorAll('.item-checkbox'))
     allItemsCheckboxesChecked = itemCheckboxes.map((cb) => cb.checked).reduce(((acc, e) => acc && e), true)
     commandContainer.querySelector('.model-checkbox').checked = allItemsCheckboxesChecked

      $(lastLineForm).find('.purchase-item-attribute').val(itemId)

      $selectorInput = $(lastLineForm).find('.item-block-role .parcel-item-variant').first()
      $selectorInput.val(variantId)
      disable_selector_input($selectorInput)

      $(lastLineForm).find('.form-field .invoice-quantity').trigger('change')
      $(lastLineForm).find('.hidden.purchase-item-attribute').val(itemId)
      $(lastLineForm).find('.annotation-logo .annotation-field').trigger('click')
      $(lastLineForm).find('.annotation-section .annotation').val(itemAnnotation)

      else
        E.reconciliation._fillReceptionItem(lastLineForm, checkboxLine, itemId, itemQuantity, itemAnnotation)

      $(lastLineForm).find('input[data-remember="equipment"]').first().selector('value', equipmentId)
      $(lastLineForm).find('input[data-remember="team"]').first().selector('value', teamId)
      $(lastLineForm).find('input[data-remember="project_budget"]').first().selector('value', projectBudgetId)
      $(lastLineForm).find('input[data-remember="activity_budget"]').first().selector('value', activityBudgetId)
      $(lastLineForm).find('.no-reconciliate-item-state').addClass('hidden')
      $(lastLineForm).find('.reconciliate-item-state').removeClass('hidden')
      $line = $(lastLineForm).parent('.nested-fields')
