This commit is contained in:
sriramv 2023-09-01 15:05:40 +05:30
parent 51bf6654ca
commit 0c64d022bc

View File

@ -70,6 +70,7 @@ text-align: center;
<th style="text-align: center;">Expiry Date</th> <th style="text-align: center;">Expiry Date</th>
<th style="text-align: center;">Credit Transactions</th> <th style="text-align: center;">Credit Transactions</th>
<th style="text-align: center;">Credit Balance</th> <th style="text-align: center;">Credit Balance</th>
<th style="text-align: center;">Remarks</th>
</tr> </tr>
</thead> </thead>
@ -94,6 +95,7 @@ text-align: center;
?> ?>
</td> </td>
<td style="text-align: center;"> <?php echo $row['avaiable_credit'];?> </td> <td style="text-align: center;"> <?php echo $row['avaiable_credit'];?> </td>
<td style="text-align: center;"> <?php if($row['remark'] != null && $row['remark'] != ''){ echo $row['remark']; }else{echo "-";};?> </td>
@ -168,7 +170,7 @@ $(document).on('click','.manage-credits',function(){
<input type="radio" class="add_or_sub" id="add" name="add_or_sub" value="add" checked> <input type="radio" class="add_or_sub" id="add" name="add_or_sub" value="add" checked>
</div> </div>
<div class="mb-1 mt-2 col-md-4 "> <div class="mb-1 mt-2 col-md-4 ">
<label >Reduce Credit Points</label> <label >Deduct Credit Points</label>
<input type="radio" class="add_or_sub" id="sub" name="add_or_sub" value="sub"> <input type="radio" class="add_or_sub" id="sub" name="add_or_sub" value="sub">
</div> </div>
@ -348,7 +350,7 @@ function matchnum(event)
$(document).on('change','.add_or_sub',function(){ $(document).on('change','.add_or_sub',function(){
if($(this).val() == 'sub') if($(this).val() == 'sub')
{ {
$('#button').html('Reduce'); $('#button').html('Deduct');
}else{ }else{
$('#button').html('Add'); $('#button').html('Add');
} }