Esempio n. 1
0
 public EmployeeMonthlyRecord(
     string name,
     string email,
     int workingDays,
     string employeeType,
     int numberOfDependants,
     int probationWorkingDays,
     int standardWorkingDays,
     bool inUnion,
     GrossContractedSalary grossContractedSalary,
     TaxableAllowance[] taxableAllowances,
     NonTaxableAllowance[] nonTaxableAllowances,
     PaymentAdvance paymentAdvance,
     AdjustmentAddition[] adjustmentAdditions,
     AdjustmentDeduction[] adjustmentDeduction,
     string position,
     bool isForeigner)
 {
     Name                  = name;
     Email                 = email;
     WorkingDays           = workingDays;
     EmployeeType          = employeeType;
     NumberOfDependants    = numberOfDependants;
     ProbationWorkingDays  = probationWorkingDays;
     StandardWorkingDays   = standardWorkingDays;
     InUnion               = inUnion;
     GrossContractedSalary = grossContractedSalary;
     TaxableAllowances     = taxableAllowances;
     NonTaxableAllowances  = nonTaxableAllowances;
     PaymentAdvance        = paymentAdvance;
     AdjustmentAdditions   = adjustmentAdditions;
     AdjustmentDeduction   = adjustmentDeduction;
     Position              = position;
     IsForeigner           = isForeigner;
 }
Esempio n. 2
0
 public EmployeeMonthlyEnteredRecord
 (
     string fullname,
     string email,
     GrossContractedSalary grossContractSalary,
     GrossContractedSalary probationGrossContractSalary,
     int actualWorkingDays,
     int probationWorkingDays,
     TaxableAllowance taxableAnnualLeave,
     TaxableAllowance taxable13MonthSalary,
     TaxableAllowance taxableOthers,
     NonTaxableAllowance[] nonTaxableAllowances,
     PaymentAdvance paymentAdvance,
     AdjustmentAddition[] adjustmentAdditions,
     AdjustmentDeduction[] adjustmentDeductions
 )
 {
     Fullname = fullname;
     Email    = email;
     this.grossContractSalary     = grossContractSalary;
     ProbationGrossContractSalary = probationGrossContractSalary;
     ActualWorkingDays            = actualWorkingDays;
     ProbationWorkingDays         = probationWorkingDays;
     TaxableAnnualLeave           = taxableAnnualLeave;
     Taxable13MonthSalary         = taxable13MonthSalary;
     TaxableOthers        = taxableOthers;
     NonTaxableAllowances = nonTaxableAllowances;
     PaymentAdvance       = paymentAdvance;
     AdjustmentAdditions  = adjustmentAdditions;
     AdjustmentDeductions = adjustmentDeductions;
 }
Esempio n. 3
0
 public NetPayment(
     NetIncome netIncome,
     PaymentAdvance paymentAdvance,
     AdjustmentAddition[] adjustmentAdditions,
     AdjustmentDeduction[] adjustmentDeductions)
 {
     Amount = netIncome.Amount - paymentAdvance.Amount +
              adjustmentAdditions.Select(_ => _.Amount).Sum() -
              adjustmentDeductions.Select(_ => _.Amount).Sum();
 }