Загрузка данных


<div class="form-group row mb-3 align-items-center">
    <label for="filter.contract_activity_type_p" class="col-sm-2 col-form-label">Вид деятельности</label>
    <div class="col-sm-3">
        <select id="filter.contract_activity_type_p" name="filter.contract_activity_type_p" class="form-control">
            <option value=""></option>
            <option value="НПО">НПО</option>
            <option value="PDS">ПДС</option>
        </select>
    </div>
</div>

<div class="form-group row mb-3 align-items-center">
    <div class="col-sm-5">
        <input type="checkbox" id="check1">
        <label for="check1">Исключать заявления с предоставленной справкой</label>
    </div>
</div>






$("#filter\\.contract_activity_type").select2();
$("#filter\\.contract_activity_type_p").select2(); // ← ДОБАВИТЬ





$('#tax_deduction_cert_modal').on('hidden.bs.modal', function () {
    $('#searchOrdersFilter_fl')[0].reset();
    $('#filter\\.start_period').val('');
    $('#filter\\.end_period').val('');
    $('#check1').prop('checked', false);
    flSNV.reload();

    $('#agent_name').select2('val', null);
    $('#agent_name_fl').select2('val', null);
    $('#contract_n').select2('val', null);
    $('#filter\\.contract_activity_type_p').val('').trigger('change'); // ← ДОБАВИТЬ
    agent_id = null;
    contract_id = null;
    checkParams();
    checkParamsPeriod();
});