|
@@ -622,7 +622,7 @@ namespace OASystem.API.OAMethodLib
|
|
|
#region 累计类型扣款
|
|
|
|
|
|
|
|
|
- if (leaveType == 2)
|
|
|
+ if (leaveType == 2)
|
|
|
{
|
|
|
personalLeaveTotal += thisTypeDeduction;
|
|
|
}
|
|
@@ -1133,7 +1133,7 @@ namespace OASystem.API.OAMethodLib
|
|
|
{
|
|
|
|
|
|
decimal leave_halfHour = Convert.ToDecimal(duration) / Convert.ToDecimal(0.5);
|
|
|
- typeDeduction = ConvertToDecimal( personalkLeave_dailywage_halfhour * leave_halfHour);
|
|
|
+ typeDeduction = ConvertToDecimal(personalkLeave_dailywage_halfhour * leave_halfHour);
|
|
|
|
|
|
if (duration >= 3 && duration < 7.5M)
|
|
|
{
|
|
@@ -1176,17 +1176,18 @@ namespace OASystem.API.OAMethodLib
|
|
|
|
|
|
|
|
|
decimal chengDuMinimumWage_halrHour = _chengDuMinimumWage / work_days / halfHour;
|
|
|
- decimal sickLeave_dailywage_halfhour_deduction = personalkLeave_dailywage_day - chengDuMinimumWage_halrHour;
|
|
|
+ decimal sickLeave_dailywage_halfhour_deduction1 = (personalkLeave_dailywage_day / halfHour) - chengDuMinimumWage_halrHour;
|
|
|
|
|
|
if (date_Range_type == "halfday")
|
|
|
{
|
|
|
mealDeduction = 10;
|
|
|
- typeDeduction = ConvertToDecimal( sickLeave_dailywage_halfhour_deduction * halfHour);
|
|
|
+ typeDeduction = ConvertToDecimal( sickLeave_dailywage_halfhour_deduction1 * halfHour);
|
|
|
}
|
|
|
else if (date_Range_type == "hour")
|
|
|
{
|
|
|
decimal sickLeave_halfHour = duration / 0.5M;
|
|
|
- typeDeduction = ConvertToDecimal(personalkLeave_dailywage_day); ;
|
|
|
+ typeDeduction = ConvertToDecimal(sickLeave_dailywage_halfhour_deduction1 * sickLeave_halfHour);
|
|
|
+
|
|
|
if (duration >= 3 && duration < 7.5M)
|
|
|
{
|
|
|
mealDeduction = 10;
|
|
@@ -1197,7 +1198,7 @@ namespace OASystem.API.OAMethodLib
|
|
|
|
|
|
decimal leaveDays = Convert.ToDecimal(duration / 7.5M);
|
|
|
|
|
|
- typeDeduction = ConvertToDecimal(sickLeave_dailywage_halfhour_deduction * sickLeave_halfHour1);
|
|
|
+ typeDeduction = ConvertToDecimal(sickLeave_dailywage_halfhour_deduction1 * sickLeave_halfHour1);
|
|
|
if (leaveDays % 1 == 0)
|
|
|
{
|
|
|
mealDeduction = 10 * leaveDays;
|
|
@@ -1206,12 +1207,12 @@ namespace OASystem.API.OAMethodLib
|
|
|
{
|
|
|
mealDeduction = 10 * Convert.ToInt32(leaveDays);
|
|
|
|
|
|
- typeDeduction = ConvertToDecimal(sickLeave_dailywage_halfhour_deduction * Convert.ToInt32(leaveDays));
|
|
|
+ typeDeduction = ConvertToDecimal(sickLeave_dailywage_halfhour_deduction1 * Convert.ToInt32(leaveDays));
|
|
|
|
|
|
decimal sy_bingjiaunit = sickLeave_halfHour1 - Convert.ToDecimal(15.00M * Convert.ToInt32(leaveDays));
|
|
|
if (sy_bingjiaunit > 0)
|
|
|
{
|
|
|
- typeDeduction += ConvertToDecimal(sickLeave_dailywage_halfhour_deduction * sy_bingjiaunit);
|
|
|
+ typeDeduction += ConvertToDecimal(sickLeave_dailywage_halfhour_deduction1 * sy_bingjiaunit);
|
|
|
}
|
|
|
|
|
|
|