susee
This commit is contained in:
parent
40f0153f90
commit
b5272c3a21
@ -201,12 +201,11 @@ $(document).on('click','.manage-credits',function(){
|
||||
<input type="text" class="form-control" name="cost" id="cost" readonly required value="${res.OnePackValue[0]['value']}">
|
||||
</div>
|
||||
<div class="mb-1 mt-2 col-md-4">
|
||||
<label class="form-label">Method<span style="color: red;margin-left: 4px;">*</label>
|
||||
<label class="form-label">Transaction Method<span style="color: red;margin-left: 4px;">*</label>
|
||||
<select name="method" id="method" class="form-control" required>
|
||||
<option value="">SELECT</option>
|
||||
<option value="Others">Others</option>
|
||||
<option value="card">Card</option>
|
||||
<option value="cash">Cash</option>
|
||||
<option value="Others">Others</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-1 mt-2 col-md-12">
|
||||
@ -382,7 +381,6 @@ function matchnum(event)
|
||||
}
|
||||
$(document).on('change','.add_or_sub',function(){
|
||||
var selectedValue = $('input[name="add_or_sub"]:checked').val();
|
||||
const methodField = document.getElementById('method');
|
||||
if (selectedValue === 'sub') {
|
||||
$("#packs").val("CreditPoints");
|
||||
$('#method option[value="card"]').hide();
|
||||
@ -390,7 +388,6 @@ $(document).on('change','.add_or_sub',function(){
|
||||
$("#packs option[value='6']").hide();
|
||||
$("#packs option[value='7']").hide();
|
||||
$('#count_hide_show').hide();
|
||||
methodField.value = '';
|
||||
$('#remarks').prop('required', true);
|
||||
} else {
|
||||
$('#method option[value="card"]').show();
|
||||
@ -398,7 +395,6 @@ $(document).on('change','.add_or_sub',function(){
|
||||
$("#packs option[value='6']").show();
|
||||
$("#packs option[value='7']").show();
|
||||
$('#count_hide_show').show();
|
||||
methodField.value = '';
|
||||
$('#remarks').prop('required', false);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user