org.kuali.kfs.module.purap.util
Class PurApItemUtils

java.lang.Object
  extended by org.kuali.kfs.module.purap.util.PurApItemUtils

public class PurApItemUtils
extends Object

Purchasing Accounts Payable Item Utilities. This class contains item utilities.


Constructor Summary
PurApItemUtils()
           
 
Method Summary
static boolean checkItemActive(PurApItem item)
          Checks if an item is active.
static int countBelowTheLineItems(List<PurApItem> items)
          Counts the below the line, currently it relies on below the line being at the bottom
static List<PurApItem> getAboveTheLineOnly(List<PurApItem> items)
          Helper to get aboveTheLineItems only from an item list
static boolean isNonZeroExtended(PurApItem item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurApItemUtils

public PurApItemUtils()
Method Detail

checkItemActive

public static boolean checkItemActive(PurApItem item)
Checks if an item is active. It is used mainly when were dealing with generic items (which may be po) And need to make sure the active rules are applied if it is a poitem

Parameters:
item - the purap item passed in
Returns:
true if item is active

isNonZeroExtended

public static boolean isNonZeroExtended(PurApItem item)

getAboveTheLineOnly

public static List<PurApItem> getAboveTheLineOnly(List<PurApItem> items)
Helper to get aboveTheLineItems only from an item list

Parameters:
items - a list of items including above and below the line
Returns:
below the line items only

countBelowTheLineItems

public static int countBelowTheLineItems(List<PurApItem> items)
Counts the below the line, currently it relies on below the line being at the bottom

Returns:
a count of below the line items


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