} // component private void onDeductionPaymentIncludedInPayroll(object sender, Event e) { if (e is EventDeductionPaymentIncludedInPayroll) { var args = e as EventDeductionPaymentIncludedInPayroll; if (args.DeductionPayment.Equals(this)) { this._payroll_report = args.PayrollReport; } } }
public static PayrollRecord Create(PayrollReport pr, Salary sal) { return(new PayrollRecord { _payroll_report = pr, _salary = sal, _employee = sal.GetEmployee(), // copy the gross value to avoid miscalculation in future _gross = sal.Gross.PreciseValue * (decimal)pr.MonthlyUnit }); }
public EventExcludedDeductionPayment(DeductionPayment payment, Employee employee, PayrollReport report) { this.DeductionPayment = payment; this.Employee = employee; this.Report = report; }
public EventDeductionPaymentCreated(PayrollReport pr, Deduction d, DeductionPayment dp) { PayrollReport = pr; Deduction = d; DeductionPayment = dp; }
/// <summary> /// Exclude deduction payment on created payroll report /// </summary> public CommandExcludeDeductionPayment(Employee employee, Deduction deduction, PayrollReport report) { this.Employee = employee; this.Deduction = deduction; this.Report = report; }
/// <summary> /// default unit = 1 (Unit.WHOLE) /// </summary> public CommandIncludeSalaryDeductionInReport(PayrollReport report, double unit = Unit.WHOLE) { this.PayrollReport = report; this.MonthlyUnit = unit; }
public EventDeductionPaymentIncludedInPayroll(PayrollReport report, DeductionPayment payment) { this.PayrollReport = report; this.DeductionPayment = payment; }