This commit is contained in:
venkateswaran ubuntu 2023-09-04 12:53:24 +05:30
parent 06036d41c4
commit f5de441090
3 changed files with 7 additions and 5 deletions

View File

@ -198,7 +198,7 @@ $(document).on('click','.manage-credits',function(){
</div>
<div class="mb-1 mt-2 col-md-4">
<label class="form-label">Cost($)<span style="color: red;margin-left: 4px;">*</label>
<input type="number" class="form-control" name="cost" id="cost" onkeypress = "return matchnum(event)" readonly required value="${res.OnePackValue[0]['value']}">
<input type="number" class="form-control" name="cost" id="cost" onkeypress = "return matchnum(event)" required value="${res.OnePackValue[0]['value']}">
</div>
<div class="mb-1 mt-2 col-md-4">
<label class="form-label">Transaction Method<span style="color: red;margin-left: 4px;">*</label>
@ -428,9 +428,11 @@ $(document).on('change','.add_or_sub',function(){
$('#method option[value="cash"]').show();
$("#packs option[value='6']").show();
$("#packs option[value='7']").show();
$('#remarks').prop('required', false);
// $('#remarks').prop('required', false);
$("#cost").val($("#costHidden").val());
$('label[for="remarks"]').text('Remarks');
// $('label[for="remarks"]').text('Remarks');
$('#remarks').prop('required', true);
$('label[for="remarks"]').html('Remarks<span style="color: red;margin-left: 4px;">*</span>');
if(packSel == 'CreditPoints'){
$('#count_hide_show').hide();
}

View File

@ -164,7 +164,7 @@ $(document).on('click','.transaction',function(){
text: 'Print',
customize: function(win) {
// You can further customize the print output here if needed
$(win.document.body).find('table').find('th:first, td:first').remove();
$(win.document.body).find('table').find('th:first-child, td:first-child').remove();
}
},
{

View File

@ -109,7 +109,7 @@
title: 'Users', // Set your custom print title here
text: 'Print',
customize: function(win) {
$(win.document.body).find('table').find('th:first, td:first').remove();
$(win.document.body).find('table').find('th:first-child, td:first-child').remove();
}
},
{