Class ItemChargeNode

All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode
Direct Known Subclasses:
PendingItemChargeNode

public class ItemChargeNode extends DefaultMutableTreeNode
See Also:
  • Constructor Details

    • ItemChargeNode

      public ItemChargeNode(String desc)
      Constructor to create an ItemChargeNode only with description.
      Parameters:
      String - desc
    • ItemChargeNode

      public ItemChargeNode(String desc, int descType, BigDecimal charge, BigDecimal discount, BigDecimal amountDue, String account, PModelHandle pmhItemCharge)
      Constructor to create an ItemChargeNode only with the following fields.
      Parameters:
      String - desc
      int - descType
      BigDecimal - charge
      BigDecimal - discount
      BigDecimal - amountDue
      String - account
      PModelHandle - pmhItemCharge
    • ItemChargeNode

      public ItemChargeNode(String desc, int descType, BigDecimal charge, BigDecimal discount, BigDecimal billedARactions, BigDecimal unbilledARactions, BigDecimal amountDue, BigDecimal netAmount, String account, PModelHandle pmhItemCharge)
      Constructor to create an ItemChargeNode only with the following fields.
      Parameters:
      String - desc
      int - descType
      BigDecimal - charge
      BigDecimal - discount
      BigDecimal - billedARactions
      BigDecimal - unbilledARactions
      BigDecimal - amountDue
      BigDecimal - netAmount
      String - account
      PModelHandle - pmhItemCharge
  • Method Details

    • setUserObj

      public void setUserObj(PModelHandle pmhItemCharge)
      Set the item charges PModelHandle
      Parameters:
      pmhItemCharge -
    • isLeaf

      public boolean isLeaf()
      Returns whether its a leaf or not
      Specified by:
      isLeaf in interface TreeNode
      Overrides:
      isLeaf in class DefaultMutableTreeNode
      Returns:
    • toString

      public String toString()
      Returns the description.
      Overrides:
      toString in class DefaultMutableTreeNode
      Returns:
    • getDesc

      public String getDesc()
      Returns the description
      Returns:
    • getCharge

      public BigDecimal getCharge()
      Returns the charge
      Returns:
    • getDiscount

      public BigDecimal getDiscount()
      Returns the discount
      Returns:
    • getNetAmount

      public BigDecimal getNetAmount()
      Returns the net amount
      Returns:
    • getAccount

      public String getAccount()
      Returns the account number
      Returns:
    • setDesc

      public void setDesc(String desc)
      Setter for the description.
      Parameters:
      desc -
    • setCharge

      public void setCharge(BigDecimal charge)
      Setter for charge.
      Parameters:
      charge -
    • setDiscount

      public void setDiscount(BigDecimal discount)
      Setter for discount.
      Parameters:
      discount -
    • setNetAmount

      public void setNetAmount(BigDecimal netAmount)
      Setter for net amount.
      Parameters:
      netAmount -
    • setAccount

      public void setAccount(String account)
      Setter for account.
      Parameters:
      account -
    • getChargesHandle

      public PModelHandle getChargesHandle()
      Returns the item charges PModelHandle
      Returns:
      pmhItemCharge PModelHandle
    • setChargesHandle

      public void setChargesHandle(PModelHandle pmhItemCharge)
      Sets the item charge PModelHandle
      Parameters:
      pmhItemCharge -
    • getBilledARactions

      public BigDecimal getBilledARactions()
      Returns the billed AR actions.
      Returns:
      billedARactions BigDecimal
    • setBilledARactions

      public void setBilledARactions(BigDecimal billedARactions)
      Sets the billed AR actions.
      Parameters:
      billedARactions - BigDecimal
    • getUnbilledARactions

      public BigDecimal getUnbilledARactions()
      Returns the unbilled AR actions.
      Returns:
      unbilledARactions BigDecimal
    • setUnbilledARactions

      public void setUnbilledARactions(BigDecimal unbilledARactions)
      Sets the unbilled AR actions.
      Parameters:
      unbilledARactions - BigDecimal
    • getAmountDue

      public BigDecimal getAmountDue()
      Returns the amount due.
      Returns:
      amountDue BigDecimal
    • setAmountDue

      public void setAmountDue(BigDecimal amountDue)
      Sets the amount due.
      Parameters:
      amountDue - BigDecimal