query update
This commit is contained in:
@ -3,17 +3,11 @@
|
||||
$route = explode('.', Route::currentRouteName());
|
||||
@endphp
|
||||
<!--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="csrf-token" content="{{ csrf_token() }}" />
|
||||
|
||||
<style>
|
||||
.bd-example-modal-lg .modal-dialog{
|
||||
display: table;
|
||||
@ -38,6 +32,10 @@
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
</style>
|
||||
@push('styles')
|
||||
<!-- Bootstrap CSS -->
|
||||
|
||||
@endpush
|
||||
<div class="card card-xxl-stretch mb-5 mb-xl-8">
|
||||
<!--begin::Card body-->
|
||||
<div class="card-body pt-6">
|
||||
@ -67,7 +65,9 @@
|
||||
<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>
|
||||
<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 class="col-sm-1">
|
||||
<label for="colFormLabelSm" class="col-form-label col-form-label-sm">S/D</label>
|
||||
@ -318,11 +318,22 @@
|
||||
|
||||
|
||||
@push('customscript')
|
||||
<!-- jQuery -->
|
||||
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$('.mycheck').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) {
|
||||
event.preventDefault(); // Prevent the form from submitting normally
|
||||
@ -369,15 +380,12 @@
|
||||
$('.loading1').hide();
|
||||
let dateString ='';
|
||||
$.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>' + (
|
||||
no++) +
|
||||
'</td><td>' + items[i]['ACCOUNT_NUMBER'] +
|
||||
'</td><td>' + items[i]['COMPANY_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]['CURRENCY'] + '</td>'+
|
||||
'<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 = [];
|
||||
$('#table4 tbody').on('change', 'tr td.tes input[type=checkbox]', function() {
|
||||
@ -535,7 +553,7 @@
|
||||
$('#signerId').val(signer);
|
||||
// location.reload();
|
||||
$('.exportButton').show();
|
||||
$('#signerModal')[0].reset();
|
||||
//$('#signerModal')[0].reset();
|
||||
toastr.success(data.message);
|
||||
},
|
||||
error: function(data, textStatus, errorThrown) {
|
||||
|
@ -138,14 +138,14 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Start Date</label>
|
||||
<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">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">End Date</label>
|
||||
<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">
|
||||
</div>
|
||||
</div>
|
||||
@ -274,14 +274,14 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Start Date</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="date" class="form-control form-control-sm" id="startDate" name="start_date_edit"
|
||||
placeholder="DD/MM/YYYY" onfocus="this.type='date'" onblur="this.type='text'">>
|
||||
<input type="text" class="form-control form-control-sm datepicker" id="startDate" name="start_date_edit"
|
||||
placeholder="DD/MM/YYYY">>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">End Date</label>
|
||||
<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'">>
|
||||
</div>
|
||||
</div>
|
||||
@ -318,19 +318,10 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
// $(".optionSelectCompany").on("change", function() {
|
||||
// $(".optionSelectCompany").val($(".optionSelectCompany option:first").val());
|
||||
// });
|
||||
|
||||
// $(".optionSelectLimit").on("change", function() {
|
||||
// $(".optionSelectLimit").val($(".optionSelectLimit option:first").val());
|
||||
// });
|
||||
|
||||
// $(".optionSelectRek").on("change", function() {
|
||||
// $(".optionSelectRek").val($(".optionSelectRek option:first").val());
|
||||
// });
|
||||
|
||||
$('.datepicker').flatpickr({
|
||||
enableTime: !0,
|
||||
dateFormat: "d-m-Y"
|
||||
})
|
||||
// Open the modal when the "Open Modal" button is clicked
|
||||
$("#openModalBtn").click(function() {
|
||||
$("#myModal").modal('show');
|
||||
|
Reference in New Issue
Block a user