dev_chapal #5
|
@ -745,6 +745,7 @@ 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);
|
||||
|
@ -780,7 +781,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));
|
||||
|
@ -790,7 +791,7 @@ namespace HRM.UI.Controllers.Payroll
|
|||
{
|
||||
//int setupID = ConfigurationManager.GetIntValue("bonus", "productionbonussetupid", EnumConfigurationType.Logic);
|
||||
int setupID = 21;
|
||||
ADParameter _ADParam = new ADParameterService().Get(setupID);
|
||||
ADParameter _ADParam = new ADParameterService().Get(setupID, payrollTypeId);
|
||||
_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