diff --git a/app/Controllers/StockController.php b/app/Controllers/StockController.php
index 01ac48e5..c15df34b 100644
--- a/app/Controllers/StockController.php
+++ b/app/Controllers/StockController.php
@@ -1209,7 +1209,7 @@ class StockController extends BaseController
if(!empty($previousMonthCustomMachineCodes)){
$existingCustomMachineCodes = $this->factoryMachine_model
- ->getSelectedDieselMachines(array_column($previousMonthCustomMachineCodes, 'machine_id'));
+ ->getSelectedElectricMachines(array_column($previousMonthCustomMachineCodes, 'machine_id'));
}else{
// inserting all active if no previous month present
@@ -2119,7 +2119,7 @@ class StockController extends BaseController
if(!empty($previousMonthCustomMachineCodes)){
$existingCustomMaterialCodes = $this->rawmaterialdetails_model
- ->getSelectedResinMaterialCode(array_column($previousMonthCustomMachineCodes, 'materialCode'));
+ ->getSelectedBagMaterialCode(array_column($previousMonthCustomMachineCodes, 'materialCode'));
}else{
// inserting all active if no previous month present
diff --git a/app/Views/attendance.php b/app/Views/attendance.php
index d26ae34d..5e2f8af0 100755
--- a/app/Views/attendance.php
+++ b/app/Views/attendance.php
@@ -1,4 +1,6 @@
-
-
+
@@ -310,6 +310,7 @@ $currentday = date('d');
for ($col = 1; $col <= $monthdays; $col++) {
+
$flag = 0;
$flag2 = 0;
$todayflag = 0;
@@ -338,6 +339,10 @@ $currentday = date('d');
}
}
+ if($col > $currentday && $datefordropdown == date('M-Y')){
+ continue;
+ }
+
?>
@@ -414,6 +419,8 @@ $currentday = date('d');
if ($col == $currentday) {
$todayflag = 1;
}
+
+
foreach ($sundayarray as $in) {
if ($in == $col) {
$flag = 1;
@@ -434,6 +441,7 @@ $currentday = date('d');
//echo $title;
}
}
+
$WH = 'WH' . $col;
$OT = 'OT' . $col;
@@ -451,9 +459,16 @@ $currentday = date('d');
}
+
+ if($col > $currentday && $datefordropdown == date('M-Y')){
+ continue;
+ }
+
+
// echo ""."empid = $a->EmpID, date = $col, absent = $absent"."
";
// echo ""."2) all Flags : flag2 = $flag2, flag = $flag2, absent = $absent"."
";
- ?>
+
+ ?>
title=" "
title="sunday"
title="absent"
@@ -462,7 +477,7 @@ $currentday = date('d');
id=""
"
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/Views/monthlypayinputs.php b/app/Views/monthlypayinputs.php
index 5cd1c71b..7399d208 100755
--- a/app/Views/monthlypayinputs.php
+++ b/app/Views/monthlypayinputs.php
@@ -316,7 +316,7 @@
style="text-align:center;color:blue;"
style="text-align:center;" >
LOP_Days)) {
- echo $record->LOP_Days;
+ echo round($record->LOP_Days);
} else {
echo "0.00";
} ?>
@@ -330,9 +330,9 @@
style="text-align:center;color:blue;"
style="text-align:center;" >
Paid_leave)) {
- echo number_format($record->Paid_leave, 2, '.', '');
+ echo round($record->Paid_leave);
} else {
- echo number_format(0.00, 2, '.', '');
+ echo round(0);
} ?>
|
@@ -344,59 +344,59 @@
style="text-align:center;color:blue;"
style="text-align:center;" >
OT_Hrs_Worked)) {
- echo $record->OT_Hrs_Worked;
+ echo round($record->OT_Hrs_Worked);
} else {
- echo number_format(0.00, 2, '.', '');
+ echo 0;
} ?>
- TotalSalary; $totalsalary[] = $record->TotalSalary; ?>
+ TotalSalary); $totalsalary[] = $record->TotalSalary; ?>
|
TotalSalary / $record->NoofDays;
- echo number_format($perDaySalary, 2, '.', ''); $totalperdaySalary[] = $perDaySalary; ?>
+ echo round($perDaySalary); $totalperdaySalary[] = $perDaySalary; ?>
|
Days_worked);
- echo number_format($workedSalary, 2, '.', ''); ?>
+ echo round($workedSalary); ?>
|
+ echo round($perHrSalary); $totalperhrSalary[] = $perHrSalary; ?>
|
-
+
|
+ echo round($basicWorked); $totalbasic[] = $basicWorked; ?>
|
+ echo round($hraWorked); $totalhra[] = $hraWorked; ?>
|
-
+
|
-
+
|
-
+
|
-
+
|
style="text-align:right;" >
Monthly_Due)) {
- echo $record->Monthly_Due;
+ echo round($record->Monthly_Due);
$totalmonthloan[] = $record->Monthly_Due;
} else {
- echo number_format(0.00, 2, '.', '');
+ echo 0;
} ?>
|
@@ -423,10 +423,10 @@
style="text-align:right;" >
Other_Deductions)) {
- echo $record->Other_Deductions;
+ echo round($record->Other_Deductions);
$totalotherDet[] = $record->Other_Deductions;
} else {
- echo number_format(0.00, 2, '.', '');
+ echo 0 ;
} ?>
@@ -441,10 +441,10 @@
style="text-align:right;color:blue;"
style="text-align:right;" >
Festival_Bonus)) {
- echo $record->Festival_Bonus;
+ echo round($record->Festival_Bonus);
$totalfestival[] = $record->Festival_Bonus;
} else {
- echo number_format(0.00, 2, '.', '');;
+ echo 0;
} ?>
@@ -458,15 +458,15 @@
style="text-align:right;color:blue;" style="text-align:right;" >
-
+
diff --git a/app/Views/reportslink.php b/app/Views/reportslink.php
index 49dbf006..6b77f130 100644
--- a/app/Views/reportslink.php
+++ b/app/Views/reportslink.php
@@ -29,13 +29,13 @@
Purchase
Year Wise
Pending Purchase
- purchase - Supplier Wise
- purchase - Consolidate
+ Purchase - Supplier Wise
+ Purchase - Consolidate
diff --git a/app/Views/stock/drierMachineDetails.php b/app/Views/stock/drierMachineDetails.php
index 5d2a39d8..70d7e60a 100644
--- a/app/Views/stock/drierMachineDetails.php
+++ b/app/Views/stock/drierMachineDetails.php
@@ -523,7 +523,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');