 
       $('.reconcile-state').removeClass('hidden')
 
-
     displayAcceptedState: (event) ->
       $('#purchase_invoice_accepted_state').val('accepted')
       $('#purchase_invoice_reconciliate_state').val('to_reconcile')

         $('#purchase_invoice_responsible_id').first().selector('value', responsibleId)

        E.reconciliation._fillNewLineForm(itemCheckbox, isPurchaseOrderModal)


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

        firstVatValue = $(lastLineForm).find('.form-field .vat-total option:first').val()
        $(invoiceVatField).val(firstVatValue).change()

      setTimeout (->
        $('.form-field .invoice-total').trigger('change')), 1000

    _fillPurchaseOrderItem: (lastLineForm, checkboxLine, itemId, itemQuantity, itemConditionning, itemConditionningQuantity) ->
      variantId = $(checkboxLine).find('.variant').attr('data-id')
      variantType = $(checkboxLine).attr('data-variant-type')

      $(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)

      if variantType == "service" || variantType == "cost"
