public void CalcAndAddSplit(SalarySheetRowInfo sr, VacationCalcRow v, int calcver) { var pcri = new CalcRInfo(false, calcver); pcri.CalcR(sr, v.DateStart, v.DateEnd); v.DNS = KlonsData.RoundA(pcri.RateDNSN * v.Pay / 100.0M, 2); v.Cash = v.Pay - v.DNS; Add(v); }
public void CalcRR(DateTime dt1, DateTime dt2, int calcver) { CalcR = new CalcRInfo(PreparingReport, calcver); CalcR.CalcR(SR, dt1, dt2); CalcR.ExMax2.ApplyTo0(SI); CalcR.ExMax2.ApplyTo(SI); SI._RATE_DDSN = CalcR.RateDDSN; SI._RATE_DNSN = CalcR.RateDNSN; SI._RATE_IIN = CalcR.RateIIN; SI._RATE_IIN2 = CalcR.RateIIN2; }
public void CalcAndAdd(SalarySheetRowInfo sr, VacationCalcRow v, decimal AvPayRateDay, int calcver) { v.AvPayRate = AvPayRateDay; v.Pay = KlonsData.RoundA(AvPayRateDay * (decimal)v.Days, 2); var pcri = new CalcRInfo(false, calcver); pcri.CalcR(sr, v.DateStart, v.DateEnd); v.DNS = KlonsData.RoundA(pcri.RateDNSN * v.Pay / 100.0M, 2); v.Cash = v.Pay - v.DNS; Add(v); }
public PayFx CalcAll(SalarySheetRowInfo sr, VacationCalcRow v, int calcver) { var cri = new CalcRInfo(false, calcver); cri.CalcR(sr, v.DateStart, v.DateEnd); var pfx = new PayFx(cri); if (cri.UseProgresiveIINRate) { pfx.IinEx = 0.0M; } else { pfx.IinEx = cri.ExMax2.SumIINExempts(); } pfx.Pay = v.Pay; pfx.CalcAllAndRound(); v.DNS = pfx.DNS; v.IINEX = pfx.UsedIinEx; v.IIN = pfx.IIN; v.Cash = pfx.Cash; return(pfx); }