query update

This commit is contained in:
KhatamNugraha
2024-03-19 13:43:41 +07:00
parent 35729dd584
commit 6d293f42c8
5 changed files with 86 additions and 101 deletions

View File

@ -1,32 +0,0 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('fasilitas', function (Blueprint $table) {
$table->string('nomor_cif');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('fasilitas', function (Blueprint $table) {
});
}
};

View File

@ -47,15 +47,16 @@ class Account extends Model
if($arrAccount == null){ if($arrAccount == null){
$data = DB::connection("db2")->table("STG_DB.ACCOUNT AS AC") $data = DB::connection("db2")->table("STG_DB.ACCOUNT AS AC")
->selectRaw('AC.CUSTOMER_NO, MAX(INACTIV_MARKER) as INACTIV_MARKER,AC.ACCOUNT_NUMBER,MAX(AC.BATCH_DATE) AS BATCH_DATE,MAX(AC.CURRENCY)AS CURRENCY, AC.SHORT_TITLE,MAX(AC.OPENING_DATE) AS OPENING_DATE, MAX(AC.WORKING_BALANCE) AS WORKING_BALANCE, MAX(AC.CATEGORY) AS CATEGORY,CT.SHORT_NAME,CP.COMPANY_NAME') ->selectRaw('AC.CUSTOMER_NO , AC.ACCOUNT_NUMBER ,AC.INACTIV_MARKER, AC.CATEGORY ,AC.BATCH_DATE,AC.CURRENCY,AC.SHORT_TITLE,AC.OPENING_DATE,CT.SHORT_NAME,CP.COMPANY_NAME,AC.WORKING_BALANCE')
->join('STG_DB.CATEGORY AS CT', 'AC.CATEGORY', '=', 'CT.ID') ->join('STG_DB.CATEGORY AS CT', 'AC.CATEGORY', '=', 'CT.ID')
->join('STG_DB.COMPANY AS CP', 'AC.CO_CODE', '=', 'CP.ID') ->join('STG_DB.COMPANY AS CP', 'AC.CO_CODE', '=', 'CP.ID')
->where('CUSTOMER_NO',$cif) ->where('CUSTOMER_NO',$cif)
->where('COMPANY_NAME', 'like', "%" .$uppercaseKodeCabang."%") ->where('COMPANY_NAME', 'like', "%" .$uppercaseKodeCabang."%")
->where('INACTIV_MARKER', NULL) //->where('INACTIV_MARKER', NULL)
->where('AC.BATCH_DATE',$startDate) ->where('AC.BATCH_DATE',$startDate)
->whereIn(DB::raw("LEFT(CATEGORY, 3)"),['100','600','660','101']) ->whereIn(DB::raw("LEFT(CATEGORY, 3)"),['100','600','660','101'])
->groupBy('CUSTOMER_NO','ACCOUNT_NUMBER','SHORT_TITLE','SHORT_NAME','COMPANY_NAME') ->distinct()
// ->groupBy('CUSTOMER_NO','ACCOUNT_NUMBER','SHORT_TITLE','SHORT_NAME','COMPANY_NAME')
->limit(100); ->limit(100);
}else{ }else{
$data = DB::connection("db2")->table("STG_DB.ACCOUNT") $data = DB::connection("db2")->table("STG_DB.ACCOUNT")
@ -73,16 +74,17 @@ class Account extends Model
// $uppercaseKodeCabang = Str::upper($kodecabang); // $uppercaseKodeCabang = Str::upper($kodecabang);
$data = DB::connection("db2")->table("STG_DB.ACCOUNT AS AC") $data = DB::connection("db2")->table("STG_DB.ACCOUNT AS AC")
->selectRaw('AC.CUSTOMER_NO, MAX(INACTIV_MARKER) as INACTIV_MARKER,AC.ACCOUNT_NUMBER,MAX(AC.BATCH_DATE) AS BATCH_DATE,MAX(AC.CURRENCY)AS CURRENCY, AC.SHORT_TITLE,MAX(AC.OPENING_DATE) AS OPENING_DATE, MAX(AC.WORKING_BALANCE) AS WORKING_BALANCE, MAX(AC.CATEGORY) AS CATEGORY,CT.SHORT_NAME,CP.COMPANY_NAME') ->selectRaw('AC.CUSTOMER_NO , AC.ACCOUNT_NUMBER ,AC.INACTIV_MARKER, AC.CATEGORY ,AC.BATCH_DATE,AC.CURRENCY,AC.SHORT_TITLE,AC.OPENING_DATE,CT.SHORT_NAME,CP.COMPANY_NAME,AC.WORKING_BALANCE')
->join('STG_DB.CATEGORY AS CT', 'AC.CATEGORY', '=', 'CT.ID') ->join('STG_DB.CATEGORY AS CT', 'AC.CATEGORY', '=', 'CT.ID')
->join('STG_DB.COMPANY AS CP', 'AC.CO_CODE', '=', 'CP.ID') ->join('STG_DB.COMPANY AS CP', 'AC.CO_CODE', '=', 'CP.ID')
->where('CUSTOMER_NO',$cif) ->where('CUSTOMER_NO',$cif)
// ->where('COMPANY_NAME', 'like', "%" .$uppercaseKodeCabang."%") // ->where('COMPANY_NAME', 'like', "%" .$uppercaseKodeCabang."%")
->where('INACTIV_MARKER', NULL) //->where('INACTIV_MARKER', NULL)
->where('AC.BATCH_DATE',$startDate) ->where('AC.BATCH_DATE',$startDate)
->whereIn('AC.ACCOUNT_NUMBER', $arrAccount) ->whereIn('AC.ACCOUNT_NUMBER', $arrAccount)
->whereIn(DB::raw("LEFT(CATEGORY, 3)"),['100','600','660','101']) ->distinct()
->groupBy('CUSTOMER_NO','ACCOUNT_NUMBER','SHORT_TITLE','SHORT_NAME','COMPANY_NAME') //->whereIn(DB::raw("LEFT(CATEGORY, 3)"),['100','600','660','101'])
//->groupBy('CUSTOMER_NO','ACCOUNT_NUMBER','SHORT_TITLE','SHORT_NAME','COMPANY_NAME')
->limit(100); ->limit(100);
return $data; return $data;
} }
@ -104,20 +106,16 @@ class Account extends Model
} }
public function getPinjaman($cus_no, $dateCore){ public function getPinjaman($cus_no, $dateCore){
//dd($cus_no, $accNo, $dateCore);
$data = []; $data = [];
$data = DB::connection("db2")->table("STG_DB.AA_ARRANGEMENT") $data = DB::connection("db2")->table("STG_DB.AA_ARRANGEMENT as AA")
->select('ARRANGEMENT_ID','PRODUCT_LINE','CO_CODE','START_DATE','CURRENCY','PRODUCT','LINKED_APPL_ID') ->select('AA.ARRANGEMENT_ID','AA.PRODUCT_LINE','AA.CO_CODE','AA.START_DATE','AA.CURRENCY','AA.PRODUCT','AA.LINKED_APPL_ID','AD.MATURITY_DATE')
// ->join('STG_DB.ACCOUNT AS AC', 'AA.LINKED_APPL_ID', '=', 'AC.ACCOUNT_NUMBER') ->join('STG_DB.AA_ACCOUNT_DETAILS AS AD', 'AA.ARRANGEMENT_ID', '=', 'AD.ID')
->where('CUSTOMER',$cus_no) // ->join('STG_DB.AA_ARR_INTEREST AS AI', 'AA.ARRANGEMENT_ID', '=', DB::raw("LEFT(AI.ID, 12)"))
// ->whereIn(DB::raw("LINKED_APPL_ID"),$arr) ->where('AA.CUSTOMER',$cus_no)
->where('ARR_STATUS' , 'CURRENT') ->where('AA.BATCH_DATE', $dateCore)
// ->orderBy('TERM','DESC'); ->where('AA.ARR_STATUS', '<>','CLOSE')
->where('BATCH_DATE', $dateCore) ->limit(100);
//->where('LINKED_APPL_ID', $accNo)
// ->groupBy('ARRANGEMENT_ID','ACCOUNT_NUMBER','SHORT_TITLE','SHORT_NAME','COMPANY_NAME')
->limit(100);;
return $data; return $data;
@ -134,21 +132,23 @@ class Account extends Model
return $data; return $data;
} }
public function getMaturityDate($arrangementId){ public function getMaturityDate($arrangementId,$startDate){
$data = []; $data = [];
$data = DB::connection("db2")->table("STG_DB.AA_ACCOUNT_DETAILS") $data = DB::connection("db2")->table("STG_DB.AA_ACCOUNT_DETAILS")
->select('MATURITY_DATE') ->select('MATURITY_DATE')
->where('ID' ,$arrangementId) ->where('ID' ,$arrangementId)
->where('BATCH_DATE', $startDate)
->limit(100); ->limit(100);
// ->orderBy('TERM','DESC'); // ->orderBy('TERM','DESC');
return $data; return $data;
} }
public function getTermAmount($arrangementId){ public function getTermAmount($arrangementId, $startDate){
$data = []; $data = [];
$data = DB::connection("db2")->table("STG_DB.AA_ARR_TERM_AMOUNT") $data = DB::connection("db2")->table("STG_DB.AA_ARR_TERM_AMOUNT")
->select('TERM') ->select('TERM')
->where('BATCH_DATE', $startDate)
->where(DB::raw("LEFT(ID, 12)"),$arrangementId); ->where(DB::raw("LEFT(ID, 12)"),$arrangementId);
// ->orderBy('TERM','DESC'); // ->orderBy('TERM','DESC');

View File

@ -59,13 +59,12 @@
$today = Carbon::now(); $today = Carbon::now();
// Menambahkan 1 tahun ke tanggal saat ini // Menambahkan 1 tahun ke tanggal saat ini
$currentYear = $today->format("Y"); $currentYear = $today->format("d-m-Y");
//get month in roman //get month in roman
// Menambahkan 5 tahun ke tanggal saat ini
$pastYear = $today->subYear(3)->format('d-m-Y');
$dateRoman = $this->numberToRoman($today->format('n')); $dateRoman = $this->numberToRoman($today->format('n'));
// Menambahkan 5 tahun ke tanggal saat ini
$pastYear = $today->subYear(3)->format('Y');
$signer = Signer::where('status',1)->get(); $signer = Signer::where('status',1)->get();
$company = Company::all(); $company = Company::all();
$infoSurat = Letters::orderBy('created_at','desc')->first(); $infoSurat = Letters::orderBy('created_at','desc')->first();
@ -96,13 +95,21 @@
{ {
$data = []; $data = [];
$Account = new Account; $Account = new Account;
$arrAccount = []; $arrAccount = [];
$startDate = Carbon::parse($request->startDate); $startDate = Carbon::parse($request->startDate);
$dateCore = $startDate->subDays(2)->format('m/d/Y'); $dateCore = $startDate->subDays(2)->format('m/d/Y');
$Accounts = $Account->getSearchAccount($request->cif,$arrAccount,$request->kodecabang, $dateCore)->get(); $Accounts = $Account->getSearchAccount($request->cif,$arrAccount,$request->kodecabang, $dateCore)->get();
return json_encode($Accounts );
foreach ($Accounts as $key => $value) {
$data[$key]['ACCOUNT_NUMBER'] = $value->ACCOUNT_NUMBER;
$data[$key]['COMPANY_NAME'] = $value->COMPANY_NAME;
$data[$key]['SHORT_NAME'] = $value->SHORT_NAME;
$data[$key]['CURRENCY'] = $value->CURRENCY;
$data[$key]['WORKING_BALANCE'] = number_format($value->WORKING_BALANCE, 2, ',', '.') ;
}
return json_encode($data );
} }
@ -348,6 +355,7 @@
$arrAccount = explode("," , $request['accNo']); $arrAccount = explode("," , $request['accNo']);
$startDate = Carbon::parse($request['startDate2']); $startDate = Carbon::parse($request['startDate2']);
$dateCore = $startDate->subDays(2); $dateCore = $startDate->subDays(2);
$Account = new Account; $Account = new Account;
$data = []; $data = [];
$DataAccounts = []; $DataAccounts = [];
@ -355,7 +363,8 @@
// dd($listAccount); // dd($listAccount);
$GetCustomer = $Account->getCustomer($request['cusNo'])->first(); $GetCustomer = $Account->getCustomer($request['cusNo'])->first();
$listAccount = $Account->getAccount($request['cusNo'], $arrAccount, $dateCore )->get(); $listAccount = $Account->getAccount($request['cusNo'], $arrAccount, $dateCore )->get();
$Arrangement = $Account->getPinjaman($request['cusNo'], $startDate)->get(); $Arrangement = $Account->getPinjaman($request['cusNo'], $dateCore)->get();
foreach ($listAccount as $key1 => $account) { foreach ($listAccount as $key1 => $account) {
$DataAccounts[$key1]['ACCOUNT_NUMBER'] = $account->ACCOUNT_NUMBER; $DataAccounts[$key1]['ACCOUNT_NUMBER'] = $account->ACCOUNT_NUMBER;
$DataAccounts[$key1]['OPENING_DATE'] = $account->OPENING_DATE; $DataAccounts[$key1]['OPENING_DATE'] = $account->OPENING_DATE;
@ -374,7 +383,7 @@
} }
foreach ($Arrangement as $key2 => $pinjaman) { foreach ($Arrangement as $key2 => $pinjaman) {
$MaturityDate = $Account->getMaturityDate($pinjaman->ARRANGEMENT_ID, $startDate )->first(); // $MaturityDate = $Account->getMaturityDate($pinjaman->ARRANGEMENT_ID, $startDate )->first();
$TermAmount = $Account->getTermAmount($pinjaman->ARRANGEMENT_ID,$startDate)->first(); $TermAmount = $Account->getTermAmount($pinjaman->ARRANGEMENT_ID,$startDate)->first();
$FixedRate = $Account->getFixedRate($pinjaman->ARRANGEMENT_ID,$startDate)->first(); $FixedRate = $Account->getFixedRate($pinjaman->ARRANGEMENT_ID,$startDate)->first();
$balance = $Account->getSingleAccount($pinjaman->LINKED_APPL_ID,$startDate)->first(); $balance = $Account->getSingleAccount($pinjaman->LINKED_APPL_ID,$startDate)->first();
@ -384,14 +393,13 @@
$DataPinjaman[$key2]['START_DATE'] = $pinjaman->START_DATE; $DataPinjaman[$key2]['START_DATE'] = $pinjaman->START_DATE;
$DataPinjaman[$key2]['CURRENCY'] = $pinjaman->CURRENCY; $DataPinjaman[$key2]['CURRENCY'] = $pinjaman->CURRENCY;
$DataPinjaman[$key2]['PRODUCT'] = $pinjaman->PRODUCT_LINE; $DataPinjaman[$key2]['PRODUCT'] = $pinjaman->PRODUCT_LINE;
$DataPinjaman[$key2]['WORKING_BALANCE'] = $balance->WORKING_BALANCE != null ? number_format( $balance->WORKING_BALANCE, 2, ',', '.') : 'NIHIL'; $DataPinjaman[$key2]['WORKING_BALANCE'] = $balance != null ? number_format( $balance->WORKING_BALANCE, 2, ',', '.') : 'NIHIL';
$DataPinjaman[$key2]['TERM'] = $TermAmount ? $TermAmount->TERM : '' ; $DataPinjaman[$key2]['TERM'] = $TermAmount ? $TermAmount->TERM : '' ;
$DataPinjaman[$key2]['FIXED_RATE'] = $FixedRate ? $FixedRate->FIXED_RATE : ''; $DataPinjaman[$key2]['FIXED_RATE'] = $FixedRate ? $FixedRate->FIXED_RATE : '';
$DataPinjaman[$key2]['MATURITY_DATE'] = $MaturityDate ? $MaturityDate->MATURITY_DATE : '' ; $DataPinjaman[$key2]['MATURITY_DATE'] = $pinjaman->MATURITY_DATE;
$DataPinjaman[$key2]['ACCOUNT_NUMBER'] = $pinjaman->LINKED_APPL_ID; $DataPinjaman[$key2]['ACCOUNT_NUMBER'] = $pinjaman->LINKED_APPL_ID;
} }
// dd( $DataPinjaman);
$ListLimits = $Account->getLimit($request['cusNo'],$request['startDate2'])->get(); $ListLimits = $Account->getLimit($request['cusNo'],$request['startDate2'])->get();

View File

@ -3,17 +3,11 @@
$route = explode('.', Route::currentRouteName()); $route = explode('.', Route::currentRouteName());
@endphp @endphp
<!--begin::Card--> <!--begin::Card-->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- CDN untuk jQuery Validation -->
{{-- <script src="{{ asset('assets/js/jquery.validate.min.js') }}"></script>
<script src="{{ asset('assets/js/mammoth.browser.min.js') }}"></script>
<script src="{{ asset('assets/js/mammoth.browser.js') }}"></script> --}}
<!-- Bootstrap CSS -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="csrf-token" content="{{ csrf_token() }}" /> <meta name="csrf-token" content="{{ csrf_token() }}" />
<style> <style>
.bd-example-modal-lg .modal-dialog{ .bd-example-modal-lg .modal-dialog{
display: table; display: table;
@ -38,6 +32,10 @@
-moz-appearance: textfield; -moz-appearance: textfield;
} }
</style> </style>
@push('styles')
<!-- Bootstrap CSS -->
@endpush
<div class="card card-xxl-stretch mb-5 mb-xl-8"> <div class="card card-xxl-stretch mb-5 mb-xl-8">
<!--begin::Card body--> <!--begin::Card body-->
<div class="card-body pt-6"> <div class="card-body pt-6">
@ -67,7 +65,9 @@
<div class="row mb-3"> <div class="row mb-3">
<label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm">Tanggal <span style="color:red">*</span></label> <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm">Tanggal <span style="color:red">*</span></label>
<div class="col-sm-10"> <div class="col-sm-10">
<input type="text" class="form-control form-control-sm datepicker" min="{{$data['pastYear']}}" max="{{$data['currentYear']}}" name="startDate" clear id="startDate" placeholder="DD/MM/YYYY" onfocus="this.type='date'" onblur="this.type='text'"> <input type="hidden" id="pastYear" value="{{$data['pastYear']}}">
<input type="hidden" id="currentYear" value="{{$data['currentYear']}}">
<input type="text" class="form-control form-control-sm datepicker" name="startDate" clear id="startDate" placeholder="DD/MM/YYYY">
</div> </div>
{{-- <div class="col-sm-1"> {{-- <div class="col-sm-1">
<label for="colFormLabelSm" class="col-form-label col-form-label-sm">S/D</label> <label for="colFormLabelSm" class="col-form-label col-form-label-sm">S/D</label>
@ -318,11 +318,22 @@
@push('customscript') @push('customscript')
<!-- jQuery -->
<script> <script>
$(function() { $(function() {
$('.mycheck').hide(); $('.mycheck').hide();
$('#cif_null').hide(); $('#cif_null').hide();
var pasYear = $('#pastYear').val();
var currentYear = $('#currentYear').val();
$('.datepicker').flatpickr({
enableTime: !0,
dateFormat: "d-m-Y",
minDate: pasYear,
maxDate: currentYear
})
$("#myForm").submit(function (event) { $("#myForm").submit(function (event) {
event.preventDefault(); // Prevent the form from submitting normally event.preventDefault(); // Prevent the form from submitting normally
@ -369,15 +380,12 @@
$('.loading1').hide(); $('.loading1').hide();
let dateString =''; let dateString ='';
$.each(items, function(i, index) { $.each(items, function(i, index) {
var reverse = items[i]['WORKING_BALANCE'].toString().split('').reverse().join(''),
rp = reverse.match(/\d{1,3}/g);
rp = rp.join('.').split('').reverse().join('');
$('#dataBody').append('<tr class="secondrow"><td>' + ( $('#dataBody').append('<tr class="secondrow"><td>' + (
no++) + no++) +
'</td><td>' + items[i]['ACCOUNT_NUMBER'] + '</td><td>' + items[i]['ACCOUNT_NUMBER'] +
'</td><td>' + items[i]['COMPANY_NAME'] + '</td><td>' + items[i]['COMPANY_NAME'] +
'</td><td>' + items[i]['SHORT_NAME'] + '</td><td>' + items[i]['SHORT_NAME'] +
'</td><td>' + rp + '</td><td>' + items[i]['WORKING_BALANCE'] +
// '</td><td>' + items[i]['PRODUCT'] + // '</td><td>' + items[i]['PRODUCT'] +
'</td><td>' + items[i]['CURRENCY'] + '</td>'+ '</td><td>' + items[i]['CURRENCY'] + '</td>'+
'<td class="tes">'+ '<td class="tes">'+
@ -412,6 +420,16 @@
}); });
function currency(params) {
params.maskMoney({
prefix: 'Rp ',
thousands: '.',
decimal: ',',
precision: 0, // ubah ke 2 jika ingin menampilkan desimal
allowNegative: false // ubah ke true jika ingin mengizinkan angka negatif
});
}
var selectedValues = []; var selectedValues = [];
$('#table4 tbody').on('change', 'tr td.tes input[type=checkbox]', function() { $('#table4 tbody').on('change', 'tr td.tes input[type=checkbox]', function() {
@ -535,7 +553,7 @@
$('#signerId').val(signer); $('#signerId').val(signer);
// location.reload(); // location.reload();
$('.exportButton').show(); $('.exportButton').show();
$('#signerModal')[0].reset(); //$('#signerModal')[0].reset();
toastr.success(data.message); toastr.success(data.message);
}, },
error: function(data, textStatus, errorThrown) { error: function(data, textStatus, errorThrown) {

View File

@ -138,14 +138,14 @@
<div class="form-group row"> <div class="form-group row">
<label for="inputName" class="col-sm-3 col-form-label">Start Date</label> <label for="inputName" class="col-sm-3 col-form-label">Start Date</label>
<div class="col-sm-9"> <div class="col-sm-9">
<input type="date" class="form-control form-control-sm " name="start_date" <input type="text" class="form-control form-control-sm datepicker" name="start_date"
placeholder="Start Date"> placeholder="Start Date">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label for="inputName" class="col-sm-3 col-form-label">End Date</label> <label for="inputName" class="col-sm-3 col-form-label">End Date</label>
<div class="col-sm-9"> <div class="col-sm-9">
<input type="date" class="form-control form-control-sm " name="due_date" <input type="text" class="form-control form-control-sm datepicker " name="due_date"
placeholder="Due Date"> placeholder="Due Date">
</div> </div>
</div> </div>
@ -274,14 +274,14 @@
<div class="form-group row"> <div class="form-group row">
<label for="inputName" class="col-sm-3 col-form-label">Start Date</label> <label for="inputName" class="col-sm-3 col-form-label">Start Date</label>
<div class="col-sm-9"> <div class="col-sm-9">
<input type="date" class="form-control form-control-sm" id="startDate" name="start_date_edit" <input type="text" class="form-control form-control-sm datepicker" id="startDate" name="start_date_edit"
placeholder="DD/MM/YYYY" onfocus="this.type='date'" onblur="this.type='text'">> placeholder="DD/MM/YYYY">>
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label for="inputName" class="col-sm-3 col-form-label">End Date</label> <label for="inputName" class="col-sm-3 col-form-label">End Date</label>
<div class="col-sm-9"> <div class="col-sm-9">
<input type="date" class="form-control form-control-sm " id="dueDatae" name="due_date_edit" <input type="text" class="form-control form-control-sm datepicker" id="dueDatae" name="due_date_edit"
placeholder="DD/MM/YYYY" onfocus="this.type='date'" onblur="this.type='text'">> placeholder="DD/MM/YYYY" onfocus="this.type='date'" onblur="this.type='text'">>
</div> </div>
</div> </div>
@ -318,19 +318,10 @@
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$('.datepicker').flatpickr({
// $(".optionSelectCompany").on("change", function() { enableTime: !0,
// $(".optionSelectCompany").val($(".optionSelectCompany option:first").val()); dateFormat: "d-m-Y"
// }); })
// $(".optionSelectLimit").on("change", function() {
// $(".optionSelectLimit").val($(".optionSelectLimit option:first").val());
// });
// $(".optionSelectRek").on("change", function() {
// $(".optionSelectRek").val($(".optionSelectRek option:first").val());
// });
// Open the modal when the "Open Modal" button is clicked // Open the modal when the "Open Modal" button is clicked
$("#openModalBtn").click(function() { $("#openModalBtn").click(function() {
$("#myModal").modal('show'); $("#myModal").modal('show');