Class PARBalancePageBeanImpl

All Implemented Interfaces:
PARBalancePageBean, PIACollectionBean, PControllerBean, Serializable, Remote, Unreferenced

public class PARBalancePageBeanImpl extends PIAComponentCollectionBean implements PARBalancePageBean
Controller class for the PARBalancePage component. The following opcodes are used by this controller:
  • PortalOp.AR_GET_ACCT_BILLSPortalOp.PortalOp.AR_GET_ACCT_BILLS
See Also:
  • Constructor Details

  • Method Details

    • update

      public void update(int reason, Object incoming) throws RemoteException
      Description copied from class: PControllerImpl
      The update method is called by various internal methods when the data has changed enough to require changing the client display. Must be overridden by a specific controller subclass.
      Overrides:
      update in class PIAComponentCollectionBean
      Parameters:
      reason -
      incoming -
      Throws:
      RemoteException
    • intializeContext

      public void intializeContext()
    • getBillInfoBalanceSummary

      public Object[] getBillInfoBalanceSummary(int nIncludeChildren, PModelHandle hAcct, PModelHandle mARBillInfo) throws RemoteException
      Description copied from interface: PARBalancePageBean
      Retrieve the account balance summary data Call PortalOp.AR_GET_ACCT_BAL_SUMMARY
      Specified by:
      getBillInfoBalanceSummary in interface PARBalancePageBean
      Parameters:
      nIncludeChildren - Include children amounts flag
      hAcct - Handle for the current account object
      mARBillInfo - Handle for the BillInfo poid Return an object array of 3 items: objs[0] = PModelHandle of PortalOp.AR_GET_ACCT_BAL_SUMMARY flist objs[1] = Integer object with number of immediate children for this acct objs[2] = BigDecimal value for unapplied amount objs[3] = BigDecimal value for pending amount objs[4] = BigDecimal value for disputed amount
      Throws:
      RemoteException
    • getBalanceSummary

      public Object[] getBalanceSummary(int nIncludeChildren, PModelHandle hAcct, PModelHandle hArAcct) throws RemoteException
      Retrieve the account balance summary data Call PortalOp.AR_GET_ACCT_BAL_SUMMARY
      Specified by:
      getBalanceSummary in interface PARBalancePageBean
      Parameters:
      nIncludeChildren - Include children amounts flag
      hAcct - Handle for the current account object
      hArAcct - Handle for the AR account poid Return an object array of 5 items: objs[0] = PModelHandle of PortalOp.AR_GET_ACCT_BAL_SUMMARY flist objs[1] = Integer object with number of immediate children for this acct objs[2] = BigDecimal value for unapplied amount objs[3] = BigDecimal value for pending amount objs[4] = BigDecimal value for disputed amount objs[5] = Model Handle of the Pending bill
      Throws:
      RemoteException
    • getOpenBills

      public PModelHandle getOpenBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo) throws RemoteException
      Retrieve a list of open bills Call PortalOp.AR_GET_ACCT_BILLS
      Specified by:
      getOpenBills in interface PARBalancePageBean
      Parameters:
      nIncludeChildren - Include children amounts flag
      mhAccount - Handle for the current account object
      mARBillInfo - Handle for the AR account poid
      hAcct - Handle for the current account object
      hArAcct - Handle for the AR account poid
      Throws:
      RemoteException
    • getBills

      public PModelHandle getBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo, PARBillSearchData sData, boolean excNegBills) throws RemoteException
      Retrieve a list of bills based on given search criteria Call PortalOp.AR_GET_ACCT_BILLS
      Specified by:
      getBills in interface PARBalancePageBean
      Parameters:
      nIncludeChildren - Include children amounts flag
      sData - Search criteria data
      excNegBills - excludes negative bills.
      hAcct - Handle for the current account object
      hArAcct - Handle for the AR account poid
      Throws:
      RemoteException
    • getBills

      public PModelHandle getBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo, PARBillSearchData sData) throws RemoteException
      Retrieve a list of bills based on given search criteria Call PortalOp.AR_GET_ACCT_BILLS
      Specified by:
      getBills in interface PARBalancePageBean
      Parameters:
      nIncludeChildren - Include children amounts flag
      mhAccount - Handle for the current account object
      mARBillInfo - Handle for the AR account poid
      sData - Search criteria data
      hAcct - Handle for the current account object
      hArAcct - Handle for the AR account poid
      Throws:
      RemoteException
    • appendCurrentAccount

      public void appendCurrentAccount(PModelHandle mhBillInfo, PModelHandle mhAccount) throws RemoteException
      Appends the account object to the account model handle
      Specified by:
      appendCurrentAccount in interface PARBalancePageBean
      Parameters:
      mhBillInfo - Handle for the billinfo object
      mhAccount - Handle for the previous account object
      mhBillinfo - Handle for the billinfo object
      Throws:
      RemoteException
    • getAccountModelForSelectedBill

      public PModelHandle getAccountModelForSelectedBill(PModelHandle mhSheet, PModelHandle mhSelected) throws RemoteException
      Return PModelHandle for the selected model handel
      Specified by:
      getAccountModelForSelectedBill in interface PARBalancePageBean
      Parameters:
      mhSheet - The bill handle for the table object
      Throws:
      RemoteException
    • getBillItems

      public PModelHandle getBillItems(int nIncludeChildren, PModelHandle hAcct, PModelHandle hArAcct, PARBillSearchData sData, Vector billInfos, Integer threshold) throws RemoteException
      Retrieve a list of bill items based on given search criteria Call PortalOp.AR_GET_BILL_ITEMS
      Specified by:
      getBillItems in interface PARBalancePageBean
      Parameters:
      nIncludeChildren - Include children amounts flag
      hAcct - Handle for the current account object
      hArAcct - Handle for the AR account poid
      sData - Search criteria data
      billInfos - Billinfo data
      threshold - the maximum items to return
      Throws:
      RemoteException
    • hasPrevLifeOpenBill

      public boolean hasPrevLifeOpenBill(PModelHandle mhARBillInfo) throws RemoteException
      Check if the current subordinate bill info had a previous life as a standalone bill info with open balance
      Specified by:
      hasPrevLifeOpenBill in interface PARBalancePageBean
      Parameters:
      hAcct - Handle for the current account object
      Returns:
      true if there is a previous life as an A/R bill info with open bill
      Throws:
      RemoteException
    • getCurrencyLimit

      public BigDecimal getCurrencyLimit(PModelHandle hAcct) throws RemoteException
      Return the credit limit of currency resource
      Specified by:
      getCurrencyLimit in interface PARBalancePageBean
      Parameters:
      hAcct - Handle for the current account object
      Throws:
      RemoteException
    • getCurrencyLimit

      public BigDecimal getCurrencyLimit(PModelHandle hBillinfo, PModelHandle hAcct) throws RemoteException
      Return the credit limit of currency resource
      Specified by:
      getCurrencyLimit in interface PARBalancePageBean
      Parameters:
      hBillinfo - Handle for account bill info
      hAcct - Handle for the current account object
      Throws:
      RemoteException
    • getAllCurrencyLimit

      public BigDecimal getAllCurrencyLimit(PModelHandle hBillinfo, PModelHandle hAcct) throws RemoteException
      Return all credit limit of currency resource
      Specified by:
      getAllCurrencyLimit in interface PARBalancePageBean
      Parameters:
      hBillinfo - Handle for account bill info
      hAcct - Handle for the current account object
      Throws:
      RemoteException
    • getBillinfoCurrencyLimit

      public BigDecimal getBillinfoCurrencyLimit(FList fBillinfo, PModelHandle hAcct) throws RemoteException
      Return credit limit of currency resource
      Parameters:
      hAcct - Handle for the current account object
      hBillinfo - Handle for account bill info
      Throws:
      RemoteException
    • getCurrencyBalances

      public PModelHandle getCurrencyBalances(Poid accPoid, Poid balGrpPoid, int currency)
      Returns Currency balances for given balance group
      Specified by:
      getCurrencyBalances in interface PARBalancePageBean
      Parameters:
      accPoid - Poid for the current account object
      balGrpPoid - Poid of balance group
      currency - int primary currency
      Returns:
      PModelHandle
    • getNonCurrencyBalances

      public PModelHandle getNonCurrencyBalances(Poid accPoid, Poid balGrpPoid)
      Returns Non Currency balances for given balance group
      Specified by:
      getNonCurrencyBalances in interface PARBalancePageBean
      Parameters:
      accPoid - Poid for the current account object
      balGrpPoid - Poid of balance group
      Returns:
      PModelHandle
    • getNonCurrencyVector

      public Vector getNonCurrencyVector(PModelHandle hAcct) throws RemoteException
      Return a vector that contains vectors of non-currency resources
      Specified by:
      getNonCurrencyVector in interface PARBalancePageBean
      Parameters:
      hAcct - Handle for the current account object vector data in order: String - Resource Description, Bigdecimal - Amount, and BigDecimal - Credit Limit
      Throws:
      RemoteException
    • getNonCurrencyResources

      public Vector getNonCurrencyResources(PModelHandle hAcct) throws RemoteException
      Return a vector that contains vectors of non-currency resources
      Specified by:
      getNonCurrencyResources in interface PARBalancePageBean
      Parameters:
      hAcct - Handle for the current account object vector data in order: Integer - Resource id, and String - Description
      Throws:
      RemoteException
    • getInvoice

      public Object getInvoice(PModelHandle mhBill) throws RemoteException
      Return an Invoice object given the bill handle
      Specified by:
      getInvoice in interface PARBalancePageBean
      Parameters:
      mhBill - The bill handle for the returned invoice object
      Throws:
      RemoteException
    • reset

      public void reset() throws RemoteException
      Reset the controller to clear the cached data
      Specified by:
      reset in interface PARBalancePageBean
      Throws:
      RemoteException
    • getCurrencyLimitForSelectedBillUnit

      public BigDecimal getCurrencyLimitForSelectedBillUnit(PModelHandle hBillinfo, PModelHandle hAcct, PModelHandle selectedBillUnitMH) throws RemoteException
      Return credit limit of currency resource for selected bill unit
      Specified by:
      getCurrencyLimitForSelectedBillUnit in interface PARBalancePageBean
      Parameters:
      hBillinfo - Handle for the bill info
      hAcct - Handle for the current account object
      selectedBillUnitMH - Handle for the selected bill unit object
      Throws:
      RemoteException
    • getBalnceGroups

      public PModelHandle getBalnceGroups(Poid billInfoPoid, Poid accPoid)
      Returns Balance groups for given bill info or returns all balance groups for given account
      Specified by:
      getBalnceGroups in interface PARBalancePageBean
      Parameters:
      billInfoPoid - Poid poid for the bill info
      hAcct - PModelHandle Handle for the current account object
      Returns:
      PModelHandle
    • hasPositveBills

      public boolean hasPositveBills(PModelHandle mhAllocBills)
      Returns true if the billmodel handle has even one positive bill
      Specified by:
      hasPositveBills in interface PARBalancePageBean
      Parameters:
      mhAllocBills -
      Returns: