From 7598c74daa7b313f3b469d06206ce7e1b237ace8 Mon Sep 17 00:00:00 2001 From: velz2020 Date: Thu, 23 Nov 2017 13:39:00 +0530 Subject: [PATCH] PAYROLL CASHBOOK ISSUE FIXED --- application/views/attendance.php | 128 ++++++--------------- application/views/cashbooklisting.php | 63 +++++++--- application/views/monthlypayinputs.php | 8 +- application/views/viewIndIncomeExpense.php | 115 +++--------------- 4 files changed, 101 insertions(+), 213 deletions(-) diff --git a/application/views/attendance.php b/application/views/attendance.php index bb933871..4b53fab0 100755 --- a/application/views/attendance.php +++ b/application/views/attendance.php @@ -18,6 +18,7 @@ $datefordropdown = date_create($datefordropdown); $datefordropdown = date_format($datefordropdown,'M-Y'); //echo $datefordropdown; $attendance = array_merge($attendance,$emppay); +date_default_timezone_set('Asia/Kolkata'); $currentday = date('d'); // print_r($attendance); // echo "
------------------------------
"; @@ -216,29 +217,7 @@ $currentday = date('d');
format("D") == "Sun") //Check that the day is Sunday here - // { - - // array_push($ind,$begin->format("d")); - // } - - // $begin->modify('+1 day'); - // } - // $noofsundays = count($ind); $testarray=array(); $finalarray = array(); @@ -264,42 +243,7 @@ $currentday = date('d'); } } } -//print_r($testarray);echo count($testarray); -//echo "
...........................
"; -//print_r($finalarray);echo count($finalarray); -// $index = 0; -// foreach($finalarray as $gg ) -// { - // echo "
...........................
"; - // $index = $index +1; - // echo "S.NO" . $index . "
"; - // echo "EmpID" . $gg->EmpID ."
"; - // //echo $key ."-".$value; - - // for ($col =1; $col <= $monthdays;$col++){ - // $flag =0; - // foreach($ind as $in) - // { - // if($in == $col) - // { - // $flag = 1; - // } - // } - // $WH='WH'.$col; - // $OT = 'OT'.$col; - - - // if(!empty($gg->$WH)){echo "WORK" . $gg->$WH."--";}else{echo "WORK" . "0--";} - - // if(!empty($gg->$OT)){echo "OT" . $gg->$OT. "--";}else{echo "OT" . "0--";} - // } -// // /// echo "$WH"; - // //print_r($gg); - - // //break; - -// } -//die(); + ?> @@ -356,8 +300,8 @@ $currentday = date('d'); ?> - title = "Sunday" title = class="celda_encabezado_general" >".$col . "W";}else{echo $col."W";}?> - title = "Sunday" title = class="celda_encabezado_general" >".$col . "OT";}else{echo $col."OT";}?> + title = "Sunday" title = class="celda_encabezado_general" >".$col."W";}else{echo $col."W";}?> + title = "Sunday" title = class="celda_encabezado_general" >".$col."OT";}else{echo $col."OT";}?> "> - EmpID;?> + EmpID;?> FirstName.'-'.$a->LastName;?> - title = "Sunday" title = class="celda_normal" onkeyup="myFunction(this.parentNode.id,this.id,this.textContent);" id ="" contenteditable = "true">$WH)){echo $a->$WH;}else{echo "0";}?> - title = "Sunday" title = class="celda_normal" onkeyup="myFunction(this.parentNode.id,this.id,this.textContent);" id ="" contenteditable = "true">$OT)){echo $a->$OT;}else{echo "0";}?> + title = "Sunday" title = class="celda_normal" onkeyup="myFunction(this.parentNode.id,this.id,this.textContent);" id ="" contenteditable = "true" tabindex="">$WH)){echo $a->$WH;}?> + title = "Sunday" title = class="celda_normal" onkeyup="myFunction(this.parentNode.id,this.id,this.textContent);" id ="" contenteditable = "true" tabindex="">$OT)){echo $a->$OT;}?> \ No newline at end of file diff --git a/application/views/cashbooklisting.php b/application/views/cashbooklisting.php index b40dfd8a..0da75ff6 100755 --- a/application/views/cashbooklisting.php +++ b/application/views/cashbooklisting.php @@ -1,3 +1,6 @@ + + +
@@ -22,7 +25,7 @@

Account Code :  * - +

Account Name :  * @@ -37,7 +40,7 @@
-
+
@@ -115,20 +118,24 @@