Class PARBillAdjustPanel

All Implemented Interfaces:
PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class PARBillAdjustPanel extends PIACustomizablePanel
PARBillAdjustPanel contains the main method to adjust bills. Controller referenced :
  • PARBillAdjBeanImpl
See Also:
  • Constructor Details

    • PARBillAdjustPanel

      public PARBillAdjustPanel()
  • Method Details

    • getControllerClassName

      public String getControllerClassName() throws RemoteException
      Description copied from class: PIACustomizablePanel
      Retrieves the class name of this component's controller, in this case, null.
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIACustomizablePanel
      Returns:
      A null String.
      Throws:
      RemoteException - thrown for errors
    • adjustmentTypeAction

      public void adjustmentTypeAction()
    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class JComponent
    • setModelHandle

      public void setModelHandle(PModelHandle handle) throws RemoteException
      Gets data for Bills available for Adjustment information to populate the table. This data includes pending bill poid that will be used to get the information about pending bill by executing PCM_OP_AR_GET_BILLS opcode and the current bill information that will be displayed in Bills available for adjusting table.
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIACustomizablePanel
      Parameters:
      handle - PModelHandle
      Throws:
      RemoteException
    • setCurrency

      public void setCurrency()
      Sets primary and secondary currencies.
      Throws:
      RemoteException
    • setDefaultValues

      public void setDefaultValues()
      Set the date field with today's date and other fields with default values.
    • performAdjust

      public int performAdjust()
      Makes sure that the entered amount for adjustment is > 0 Collects the necessary data to perform Adjustment. Calls PARBillAdjBean controller to perform actual Adjustment. Sends balance impact event using PrefreshManager's processBalanceImpactEvent method with type Currency. Updates account notes about Bill adjustment
      Returns:
      int, 1 indicated successful adjustment and 0 indicates failed adjustment.
    • getPercentage

      public BigDecimal getPercentage()