Class PARAllocateBeanImpl

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

public class PARAllocateBeanImpl extends PIAComponentCollectionBean implements PARAllocateBean
Controller class implementing bill level allocation of payment/adjustment The following opcodes are used by this controller:
  • PortalOp.BILL_SELECT_ITEMS
  • PortalOp.BILL_ITEM_TRANSFER
See Also:
  • Constructor Details

  • Method Details

    • allocate

      public void allocate(PModelHandle hAcct, int iCurrency, PModelHandle hBills, int nIncludeChildren, PModelHandle hItem, BigDecimal decDue, ArrayList alAlloc, ArrayList billNum) throws Exception
      perform bill level allocation of payment or adjustment opcodes used:
      • PortalOp.BILL_SELECT_ITEMS
      • PortalOp.BILL_ITEM_TRANSFER
      Specified by:
      allocate in interface PARAllocateBean
      Parameters:
      hAcct - The model handle for the current account object
      iCurrency - The currency resource id
      hBills - The model handle for the list of bills
      nIncludeChildren - Include children amounts flag
      hItem - The modelHandle of the item to be allocated
      decDue - The due amount of item in nCurrency
      alAlloc - The list of amounts to be allocated to each open bills
      billNum - The list of billnumbers used to preserve the order of allocation
      nCurrency - The currency resource id
      Throws:
      Exception
    • allocate

      public void allocate(PModelHandle hAcct, int iCurrency, PModelHandle hBills, int nIncludeChildren, PModelHandle hItem, BigDecimal decDue, ArrayList alAlloc) throws RemoteException
      perform bill level allocation of payment or adjustment opcodes used:
      • PortalOp.BILL_SELECT_ITEMS
      • PortalOp.BILL_ITEM_TRANSFER
      Specified by:
      allocate in interface PARAllocateBean
      Parameters:
      hAcct - The model handle for the current account object
      iCurrency - The currency resource id
      hBills - The model handle for the list of bills
      nIncludeChildren - Include children amounts flag
      hItem - The modelHandle of the item to be allocated
      decDue - The due amount of item in nCurrency
      alAlloc - The list of amounts to be allocated to each open bills
      nCurrency - The currency resource id
      Throws:
      RemoteException
    • allocate

      public void allocate(PModelHandle hAcct, int iCurrency, PModelHandle hBills, int nIncludeChildren, PModelHandle hItem, BigDecimal decDue, ArrayList alAlloc, boolean isNegativeBill, ArrayList billNum) throws Exception
      perform bill level allocation of payment or adjustment opcodes used:
      • PortalOp.BILL_SELECT_ITEMS
      • PortalOp.BILL_ITEM_TRANSFER
      Specified by:
      allocate in interface PARAllocateBean
      Parameters:
      hAcct - The model handle for the current account object
      iCurrency - The currency resource id
      hBills - The model handle for the list of bills
      nIncludeChildren - Include children amounts flag
      hItem - The modelHandle of the item to be allocated
      decDue - The due amount of item in nCurrency
      alAlloc - The list of amounts to be allocated to each open bills
      isNegativeBill - allocate from negative billi
      billNum - list of billnumbers used to preserve the order of allocation
      nCurrency - The currency resource id
      Throws:
      Exception
    • allocate

      public void allocate(PModelHandle hAcct, int iCurrency, PModelHandle hBillItem, PModelHandle hItem, BigDecimal decAmount) throws RemoteException
      perform bill level allocation of debit adjustment opcodes used:
      • PortalOp.BILL_ITEM_TRANSFER
      Specified by:
      allocate in interface PARAllocateBean
      Parameters:
      hAcct - The model handle for the current account object
      iCurrency - The currency resource id
      hBillItem - The model handle for the billitem that is selected
      hItem - The modelHandle of the item to be allocated
      decAmount - The due amount to be allocated in BigDecimal
      Throws:
      RemoteException
    • allocate

      public void allocate(PModelHandle hAcct, int iCurrency, PModelHandle hBillItem, PModelHandle hItem, int decAmount) throws RemoteException
      perform bill level allocation of debit adjustment opcodes used:
      • PortalOp.BILL_ITEM_TRANSFER
      Specified by:
      allocate in interface PARAllocateBean
      Parameters:
      hAcct - The model handle for the current account object
      iCurrency - The currency resource id
      hBillItem - The model handle for the billitem that is selected
      hItem - The modelHandle of the item to be allocated
      decAmount - The due amount to be allocated in integer
      Throws:
      RemoteException