susee
This commit is contained in:
parent
a2f122b8d0
commit
5d3722ae88
@ -55,7 +55,7 @@ text-align: center;
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<input hidden id="costHidden" value="">
|
||||
<!-- <h4 class="header-title">Buttons example</h4>
|
||||
<p class="text-muted font-13 mb-4">
|
||||
|
||||
@ -220,6 +220,7 @@ $(document).on('click','.manage-credits',function(){
|
||||
$('#myLargeModalLabel').html("Manage Credits For "+$('#empName').val()+" ")
|
||||
$('#model-table').html(addForm);
|
||||
$('#bs-example-modal-lg').modal('show');
|
||||
$('#costHidden').val(res.OnePackValue[0]['value'])
|
||||
|
||||
$('#credit').on('keyup', function(){
|
||||
var CrieditCount = $(this).val();
|
||||
@ -391,18 +392,18 @@ $(document).on('change','.add_or_sub',function(){
|
||||
$('#count_hide_show').hide();
|
||||
$('#remarks').prop('required', true);
|
||||
$("#credit").val("1"); // Reset Credit to 1 (you can set it to any default value)
|
||||
$("#cost").val("");
|
||||
$("#cost").val($("#costHidden").val());
|
||||
$('#credit').prop('readonly', false);
|
||||
$('.changeClass').removeClass('col-md-8').addClass('col-md-12');
|
||||
} else {
|
||||
$("#packs").val("CreditPoints");
|
||||
$('#count_hide_show').hide();
|
||||
$("#packs").val("CreditPoints");
|
||||
$('#count_hide_show').hide();
|
||||
$('#method option[value="card"]').show();
|
||||
$('#method option[value="cash"]').show();
|
||||
$("#packs option[value='6']").show();
|
||||
$("#packs option[value='7']").show();
|
||||
$('#count_hide_show').show();
|
||||
$('#remarks').prop('required', false);
|
||||
$("#cost").val($("#costHidden").val());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user