Class PARDisputesPageBeanImpl

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

public class PARDisputesPageBeanImpl extends PIAComponentCollectionBean implements PARDisputesPageBean
Controller class handling dispute and settlement The following opcodes are used by this controller:
  • PortalOp.AR_GET_DISPUTES
  • PortalOp.AR_GET_ITEM_DETAIL
  • PortalOp.BILL_ITEM_SETTLEMENT
See Also:
  • Field Details

    • FAIL_PERMISSION

      public static String FAIL_PERMISSION
    • FAIL_EBUFEXCEPTION

      public static String FAIL_EBUFEXCEPTION
    • SUCCESS_STR

      public static String SUCCESS_STR
  • 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
    • getDisputes

      public PModelHandle getDisputes(PModelHandle hDispute, PModelHandle hSettlement, int nIncludeChildren, PModelHandle hAcct, PModelHandle hArAcct) throws RemoteException
      Call PortalOp.AR_GET_DISPUTES to get a list of disputed items.
      Specified by:
      getDisputes in interface PARDisputesPageBean
      Parameters:
      hDispute - model handle for the dispute item, if null all disputes for the given account is returned.
      hSettlement - model handle for the settlement poid (only used in the case where a previously unresolved dispute is settled) for the given account is returned.
      nIncludeChildren - Flag to indicate if amounts from child account(s) should (1) or should not (0) be included
      hAcct - The account
      hArAcct - The account's A/R parent
      Returns:
      model handle for the bill item with dispute(s)
      Throws:
      RemoteException
    • convertCurrencyToResource

      public static FList convertCurrencyToResource(FList itemFlist) throws RemoteException
      Throws:
      RemoteException
    • settleDisputes

      public PModelHandle settleDisputes(ArrayList aList) throws RemoteException
      Call PortalOp.BILL_ITEM_SETTLEMENT settle given disputed bill item.
      Specified by:
      settleDisputes in interface PARDisputesPageBean
      Parameters:
      aList - An ArrayList containing these items:
      • bill item model handle
      • currency id
      • comments
      • settlement amount
      • backdating date (or null)
      Returns:
      the poid of the settlement item
      Throws:
      RemoteException
    • getSettlementAmount

      public BigDecimal getSettlementAmount(PModelHandle mhItem) throws RemoteException
      this method returns only item dispute amount and removes event dispute amount from the disputed amount.
      Specified by:
      getSettlementAmount in interface PARDisputesPageBean
      Returns:
      open item dispute amount.
      Throws:
      RemoteException
    • disputeItem

      public String disputeItem(PModelHandle handle, ArrayList arrList) throws RemoteException
      Call PortalOp.AR_ITEM_DISPUTE dispute given bill item. Return a Comment string whether the dispute went through successfully or not.
      Specified by:
      disputeItem in interface PARDisputesPageBean
      Parameters:
      handle - model handle for the bill item
      arrList - An ArrayList containing these items:
      • bill item model handle
      • dispute amount
      • currency id
      • program name
      • descr
      Returns:
      Comment for disputed item(s)
      Throws:
      RemoteException
    • getDisputesNotes

      public String getDisputesNotes(PModelHandle hRow) throws RemoteException
      Return the comments for disputed item(s), comments concatenated in the case for multiple disputes associated with a single bill item
      Specified by:
      getDisputesNotes in interface PARDisputesPageBean
      Parameters:
      hRow - model handle for the disputed bill item
      Returns:
      Comments for disputed item(s)
      Throws:
      RemoteException
    • isSettled

      public boolean isSettled(PModelHandle hItemRow) throws RemoteException
      Return boolean flag of a disputed item's settlement state
      Specified by:
      isSettled in interface PARDisputesPageBean
      Parameters:
      hRow - model handle for the dispute item
      Returns:
      boolean flag of a disputed item's settlement state
      Throws:
      RemoteException
    • getReasonCodes

      public ReasonCodeData[] getReasonCodes(int reasonType, Locale locale) throws RemoteException
      return reason code for given reason type
      Specified by:
      getReasonCodes in interface PARDisputesPageBean
      Throws:
      RemoteException
    • isPayingParentAccount

      public boolean isPayingParentAccount(PModelHandle hItemRow) throws RemoteException
      From PModelHandle received, it checks if the pay type is PIN_PAY_TYPE_SUBORD or not.
      Specified by:
      isPayingParentAccount in interface PARDisputesPageBean
      Parameters:
      hItemRow - model handle for the account bill info
      Returns:
      a flag which says whether the Account is Paying Parent or not
      Throws:
      RemoteException
    • getItemDisputeTime

      public Date getItemDisputeTime(PModelHandle mHandle)
      from model handle, it fetches for latest FldEffectiveT, that is last opened dispute date
      Specified by:
      getItemDisputeTime in interface PARDisputesPageBean
      Parameters:
      mHandle - PModelHandle
      Returns:
      Date
    • getEventSettlementModelHandle

      public PModelHandle getEventSettlementModelHandle(PModelHandle hRow, int primaryCurrency, int secondaryCurrency, int displayedCur) throws Exception
      if the displayed currency is not equal to primary currency, then converts the resource id and amount to displayed currency and updates the model handle.
      Specified by:
      getEventSettlementModelHandle in interface PARDisputesPageBean
      Parameters:
      hRow - PModelHandle
      Returns:
      PModelHandle
      Throws:
      Exception