pay
This commit is contained in:
parent
7e325395ef
commit
38aa457d90
@ -1,7 +1,19 @@
|
||||
<?php
|
||||
$sample = array_merge($month,$fresh);
|
||||
$show_hide_column_value = true;
|
||||
|
||||
//print_r("month"+$month);
|
||||
foreach($sample as $s)
|
||||
{
|
||||
if(!empty($s->Key))
|
||||
{
|
||||
$show_hide_column_value = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$show_hide_column_value = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
$ex = explode('-',$dropdownvalue);
|
||||
|
||||
@ -233,24 +245,9 @@ $('html').bind('keypress', function(e)
|
||||
<?php if(!empty($record->Loan_Recovered))
|
||||
{if(is_numeric($record->Loan_Recovered)){echo number_format($record->Loan_Recovered,2,'.','');}else {echo $record->Loan_Recovered;}}else{echo number_format(0.00,2,'.','');} ?>
|
||||
|
||||
<!--
|
||||
<?php
|
||||
if($record->Loan_Recovered !=0){
|
||||
echo $record->Loan_Recovered;
|
||||
}
|
||||
else if($record->Loan_Recovered == 'NA')
|
||||
{
|
||||
echo $record->Loan_Recovered;
|
||||
}
|
||||
else { echo $record->Loan_Recovered;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?> -->
|
||||
|
||||
</td>
|
||||
</td>
|
||||
|
||||
|
||||
<td id="incentie<?php echo $index?>" onkeypress="return isNumber(event);" onkeyup="changeInput(event);"<?php if(empty($record->Key)){echo "contenteditable='true';"; } ?> <?php if(!empty($record->Key)){?> title="Payslip Calculated" style="text-align:right;color:blue;"<?php } else{?>style="text-align:right;"<?php }?> >
|
||||
@ -271,9 +268,12 @@ $('html').bind('keypress', function(e)
|
||||
<td id="Festival<?php echo $index?>"onkeypress="return isNumber(event);" onkeyup="changeInput(event);"<?php if(empty($record->Key)){echo "contenteditable='true';"; } ?> <?php if(!empty($record->Key)){?> title="Payslip Calculated" style="text-align:right;color:blue;"<?php } else{?>style="text-align:right;"<?php }?> ><?php if(!empty($record->Festival_Bonus)){echo $record->Festival_Bonus; }else{ echo number_format(0.00,2,'.','');;} ?></td>
|
||||
|
||||
|
||||
<td id="empsal<?php echo $index?>"><?php echo $empSalary[$i];?></td>
|
||||
<td id="empsal<?php echo $index?>"><?php echo $empSalary[$i];?></td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <input type="hidden" id = "eid" value="<?php echo $record->EmpID?>">
|
||||
@ -340,6 +340,17 @@ $('html').bind('keypress', function(e)
|
||||
|
||||
}); */
|
||||
|
||||
var key = <?php echo $show_hide_column_value; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
show_hide_column(11,key);
|
||||
var t = $('#monthlylistings').DataTable( {
|
||||
"columnDefs": [ {
|
||||
"searchable": false,
|
||||
@ -667,6 +678,16 @@ var manualLoan =parseFloat(loanRecd);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function show_hide_column(col_no, do_show) {
|
||||
var rows = document.getElementById('monthlylistings').rows;
|
||||
|
||||
for (var row = 0; row < rows.length; row++) {
|
||||
var cols = rows[row].cells;
|
||||
if (col_no >= 0 && col_no < cols.length) {
|
||||
cols[col_no].style.display = do_show ? '' : 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user