public void controllItem() {
    if (getEntity() == null) return;

    try {
      if (getEntity().getId() != null) {
        if (getEntity().getDetails() != null && getEntity().getDetails().size() != 0) {
          for (PromissoryFromContactPayrollDetail items : getEntity().getDetails()) {

            if (items.getId() == null) {
              return;
            }

            PromissoryNote promissoryNote = items.getPromissory();

            if (promissoryNote.getLastStatus() != ChequeStatus.Portfoy) {

              isEditable = false;
              break;
            }
          }
        }
      } else {
        isEditable = true;
      }

    } catch (Exception e) {
      log.error("Hata :", e);
    }
  }