         closePurchaseOrderBlock.classList.add('hidden')
 
   # Sets the value of the radiobutton to `value`
-  setCloseCommand = (commandContainer, value) => 
+  setCloseCommand = (commandContainer, value) =>
     closePurchaseOrderBlock = commandContainer.querySelector('.close-purchase-order')
     closePurchaseOrderBlock.querySelector("input[type='radio'][value=#{value}").checked = true
 

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

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

      $selectorInput.selector('value', 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)

    $closePurchaseOrderBlock = $purchaseOrderLine.find('.close-purchase-order')
    if $closePurchaseOrderBlock.find('input[type="radio"][value="true"]').is(':checked')
      $formContainer.find('.purchase-order-to-close-id').val(modelId)

  E.onElementDetected 'new_reception', (form) =>
    urlParams = new URLSearchParams(window.location.search)
    if urlParams.has('purchase_order_ids')
      open_reconciliation_modal $(form)

  E.onElementDetected 'new_purchase_invoice', (form) =>
    urlParams = new URLSearchParams(window.location.search)
    if urlParams.has('reception_ids')
      open_reconciliation_modal $(form)
