Compare commits
No commits in common. "f0f32b5cc12ffb9986c6d8531525c83886e55f40" and "a71a188f72ff2ff3040c9e3f5ad3f7e225f9c33f" have entirely different histories.
f0f32b5cc1
...
a71a188f72
|
@ -85,7 +85,7 @@ export class ProductionBonusAttendanceComponent implements OnInit {
|
|||
// this.endTime.setHours(23);
|
||||
// this.endTime.setMinutes(0);
|
||||
// this.endTime.setSeconds(0);
|
||||
this.endTime = this.setTime(this.endTime, 23, 59, 0)
|
||||
this.endTime = this.setTime(this.endTime, 23, 0, 0)
|
||||
}
|
||||
|
||||
employeeList: Employee[] = [];
|
||||
|
@ -196,11 +196,11 @@ export class ProductionBonusAttendanceComponent implements OnInit {
|
|||
() => {
|
||||
this.loadingPanelService.ShowLoadingPanel = false;
|
||||
this.employeeList = [];
|
||||
debugger;
|
||||
// debugger;
|
||||
if (this.prodBonusAttn.length <= 0 && (this.productionBonusSetup.productionBonusType == EnumProductionBonusType.Cutting ||
|
||||
this.productionBonusSetup.productionBonusType == EnumProductionBonusType.Finishing)) {
|
||||
let data = {
|
||||
prodLine: this.selectedLine,
|
||||
prodLine: this.prodBonusLine,
|
||||
date: this.selectedDate
|
||||
}
|
||||
this.loadingPanelService.ShowLoadingPanel = true;
|
||||
|
@ -234,7 +234,7 @@ export class ProductionBonusAttendanceComponent implements OnInit {
|
|||
this.AddEmployeebyId(this.prodBonusAttn[i].employeeID);
|
||||
}
|
||||
let inTime = new Date(this.prodBonusAttn[0].inTime);
|
||||
let outTime = new Date(this.prodBonusAttn[0].outTime);
|
||||
let outTime = new Date(this.prodBonusAttn[0].inTime);
|
||||
this.startTime = this.setTime(inTime, inTime.getHours(), inTime.getMinutes(), inTime.getSeconds());
|
||||
this.endTime = this.setTime(outTime, outTime.getHours(), outTime.getMinutes(), outTime.getSeconds());
|
||||
}
|
||||
|
|
|
@ -745,7 +745,6 @@ namespace HRM.UI.Controllers.Payroll
|
|||
DateTime dtpSalaryMonth = (DateTime)pItem["salaryMonthDate"].ToObject<DateTime>();
|
||||
|
||||
CurrentUser currentUser = CurrentUser.GetCurrentUser(HttpContext.User);
|
||||
|
||||
int payrollTypeId = currentUser.PayrollTypeID.GetValueOrDefault();
|
||||
|
||||
//int setupID = ConfigurationManager.GetIntValue("bonus", "productionbonussetupid", EnumConfigurationType.Logic);
|
||||
|
@ -781,7 +780,7 @@ namespace HRM.UI.Controllers.Payroll
|
|||
//DateTime nextPayProcessDate = new SystemInformationService().Get().NextPayProcessDate;
|
||||
CurrentUser currentUser = CurrentUser.GetCurrentUser(HttpContext.User);
|
||||
DateTime nextPayProcessDate = currentUser.NextPayProcessDate.GetValueOrDefault();
|
||||
int payrollTypeId = currentUser.PayrollTypeID.GetValueOrDefault();
|
||||
|
||||
if (dtpSalaryMonth.Month == nextPayProcessDate.Month && dtpSalaryMonth.Year == nextPayProcessDate.Year)
|
||||
{
|
||||
List<ProdBonusProcess> oProdBonusProsses = _prodBonusProcessService.Get(GlobalFunctions.LastDateOfMonth(dtpSalaryMonth));
|
||||
|
@ -791,7 +790,7 @@ namespace HRM.UI.Controllers.Payroll
|
|||
{
|
||||
//int setupID = ConfigurationManager.GetIntValue("bonus", "productionbonussetupid", EnumConfigurationType.Logic);
|
||||
int setupID = 21;
|
||||
ADParameter _ADParam = new ADParameterService().Get(setupID, payrollTypeId);
|
||||
ADParameter _ADParam = new ADParameterService().Get(setupID);
|
||||
_prodBonusProcessService.UndoProcess(oProdBonusProsses, _ADParam, GlobalFunctions.LastDateOfMonth(dtpSalaryMonth));
|
||||
//MessageBox.Show("Bonus process deleted successfully.", "Undo Bonus Process", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user