org.kuali.kfs.module.ec.util
Class PayrollAmountHolder

java.lang.Object
  extended by org.kuali.kfs.module.ec.util.PayrollAmountHolder

public class PayrollAmountHolder
extends Object

To hold the payroll amount and percent


Constructor Summary
PayrollAmountHolder(org.kuali.rice.kns.util.KualiDecimal totalAmount, org.kuali.rice.kns.util.KualiDecimal accumulatedAmount, Integer accumulatedPercent)
          Constructs a PayrollAmountHolder.java.
 
Method Summary
static void calculatePayrollPercent(PayrollAmountHolder payrollAmountHolder)
          calculate the payroll percentage based on the given information in payroll amount holder
 org.kuali.rice.kns.util.KualiDecimal getAccumulatedAmount()
          Gets the accumulatedAmount attribute.
 Integer getAccumulatedPercent()
          Gets the accumulatedPercent attribute.
 org.kuali.rice.kns.util.KualiDecimal getPayrollAmount()
          Gets the payrollAmount attribute.
 Integer getPayrollPercent()
          Gets the payrollPercent attribute.
 org.kuali.rice.kns.util.KualiDecimal getTotalAmount()
          Gets the totalAmount attribute.
static Double recalculateEffortPercent(org.kuali.rice.kns.util.KualiDecimal totalPayrollAmount, org.kuali.rice.kns.util.KualiDecimal payrollAmount)
          recalculate the effort percent based on the given total amount and payroll amount
static String recalculateEffortPercentAsString(org.kuali.rice.kns.util.KualiDecimal totalPayrollAmount, org.kuali.rice.kns.util.KualiDecimal payrollAmount)
          recalculate the effort percent based on the given total amount and payroll amount and return it as of type String
static org.kuali.rice.kns.util.KualiDecimal recalculatePayrollAmount(org.kuali.rice.kns.util.KualiDecimal totalPayrollAmount, Integer effortPercent)
          recalculate the payroll amount based on the given total amount and effort percent
 void setAccumulatedAmount(org.kuali.rice.kns.util.KualiDecimal accumulatedAmount)
          Sets the accumulatedAmount attribute value.
 void setAccumulatedPercent(Integer accumulatedPercent)
          Sets the accumulatedPercent attribute value.
 void setPayrollAmount(org.kuali.rice.kns.util.KualiDecimal payrollAmount)
          Sets the payrollAmount attribute value.
 void setPayrollPercent(Integer payrollPercent)
          Sets the payrollPercent attribute value.
 void setTotalAmount(org.kuali.rice.kns.util.KualiDecimal totalAmount)
          Sets the totalAmount attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayrollAmountHolder

public PayrollAmountHolder(org.kuali.rice.kns.util.KualiDecimal totalAmount,
                           org.kuali.rice.kns.util.KualiDecimal accumulatedAmount,
                           Integer accumulatedPercent)
Constructs a PayrollAmountHolder.java.

Parameters:
totalAmount - the total payroll amount
accumulatedAmount - the accumulated payroll amount
accumulatedPercent - the accumulated payroll percent
Method Detail

getPayrollAmount

public org.kuali.rice.kns.util.KualiDecimal getPayrollAmount()
Gets the payrollAmount attribute.

Returns:
Returns the payrollAmount.

setPayrollAmount

public void setPayrollAmount(org.kuali.rice.kns.util.KualiDecimal payrollAmount)
Sets the payrollAmount attribute value.

Parameters:
payrollAmount - The payrollAmount to set.

getPayrollPercent

public Integer getPayrollPercent()
Gets the payrollPercent attribute.

Returns:
Returns the payrollPercent.

setPayrollPercent

public void setPayrollPercent(Integer payrollPercent)
Sets the payrollPercent attribute value.

Parameters:
payrollPercent - The payrollPercent to set.

getTotalAmount

public org.kuali.rice.kns.util.KualiDecimal getTotalAmount()
Gets the totalAmount attribute.

Returns:
Returns the totalAmount.

setTotalAmount

public void setTotalAmount(org.kuali.rice.kns.util.KualiDecimal totalAmount)
Sets the totalAmount attribute value.

Parameters:
totalAmount - The totalAmount to set.

getAccumulatedAmount

public org.kuali.rice.kns.util.KualiDecimal getAccumulatedAmount()
Gets the accumulatedAmount attribute.

Returns:
Returns the accumulatedAmount.

setAccumulatedAmount

public void setAccumulatedAmount(org.kuali.rice.kns.util.KualiDecimal accumulatedAmount)
Sets the accumulatedAmount attribute value.

Parameters:
accumulatedAmount - The accumulatedAmount to set.

getAccumulatedPercent

public Integer getAccumulatedPercent()
Gets the accumulatedPercent attribute.

Returns:
Returns the accumulatedPercent.

setAccumulatedPercent

public void setAccumulatedPercent(Integer accumulatedPercent)
Sets the accumulatedPercent attribute value.

Parameters:
accumulatedPercent - The accumulatedPercent to set.

calculatePayrollPercent

public static void calculatePayrollPercent(PayrollAmountHolder payrollAmountHolder)
calculate the payroll percentage based on the given information in payroll amount holder

Parameters:
payrollAmountHolder - the given payroll amount holder containing relating information

recalculatePayrollAmount

public static org.kuali.rice.kns.util.KualiDecimal recalculatePayrollAmount(org.kuali.rice.kns.util.KualiDecimal totalPayrollAmount,
                                                                            Integer effortPercent)
recalculate the payroll amount based on the given total amount and effort percent

Parameters:
totalPayrollAmount - the given total amount
effortPercent - the given effort percent
Returns:
the payroll amount calculated from the given total amount and effort percent

recalculateEffortPercent

public static Double recalculateEffortPercent(org.kuali.rice.kns.util.KualiDecimal totalPayrollAmount,
                                              org.kuali.rice.kns.util.KualiDecimal payrollAmount)
recalculate the effort percent based on the given total amount and payroll amount

Parameters:
totalPayrollAmount - the given total amount
payrollAmount - the given payroll amount
Returns:
the effort percent calculated from the given total amount and payroll amount

recalculateEffortPercentAsString

public static String recalculateEffortPercentAsString(org.kuali.rice.kns.util.KualiDecimal totalPayrollAmount,
                                                      org.kuali.rice.kns.util.KualiDecimal payrollAmount)
recalculate the effort percent based on the given total amount and payroll amount and return it as of type String

Parameters:
totalPayrollAmount - the given total amount
payrollAmount - the given payroll amount
Returns:
the effort percent as String calculated from the given total amount and payroll amount


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.