public class PARSharedData extends Object
Modifier and Type | Field and Description |
---|---|
HashMap<String,BigDecimal> |
billsDueData |
static int |
EXCLUDE_CHILDREN |
protected Hashtable |
hARAccountSummary |
protected Hashtable |
hARAccountSummaryWithChild |
protected Hashtable |
hARBillInfos |
protected Hashtable |
hARBillInfoSummary |
protected Hashtable |
hARBillInfoSummaryWithChild |
protected Hashtable |
hBalanceGroups |
protected Hashtable |
hCurrencyBalances |
protected Hashtable |
hNonCurrencyBalances |
static int |
INCLUDE_CHILDREN |
protected PModelHandle |
mAccount |
protected PModelHandle |
mARAccount |
protected PModelHandle |
mARBillInfo |
protected Object[] |
mARSummaryObjs |
protected boolean |
mbShowPrevLifeBills |
protected boolean |
mHasChildren |
protected int |
mnIncludeChildren |
Constructor and Description |
---|
PARSharedData(PModelHandle acct,
PModelHandle arAcct,
PModelHandle arBillInfo,
boolean hasChildren,
Hashtable hChildrenInfo)
Shared AR data object
|
Modifier and Type | Method and Description |
---|---|
void |
destructor() |
void |
disposeAllResources()
Calling this method will nullify the references,
so that garbage collection will be fast.
|
PModelHandle |
getAccountBillInfo() |
Object[] |
getARBillInfoSummary()
/**
Return result from PARBalancePageBean's getBalanceSummary() method call
|
Object[] |
getARSummary()
Return result from PARBalancePageBean's getBalanceSummary() method call
|
PModelHandle |
getBalnceGroups(Poid billInfoPoid,
Poid accPoid)
Returns Balance groups for given bill info or returns all balance groups for given account
|
BigDecimal |
getBillTotalDue(String billNo)
Retruns PIN_FLD_DUE of the bill number passed.
|
PModelHandle |
getCurrencyBalances(Poid accPoid,
Poid balGrpPoid,
int currency)
Returns Currency balances for given balance group
|
FList |
getHARBillInfos(FList inputBillInfos) |
int |
getIncludeChildrenFlag()
Get the flag to include/exclude children amounts when getting A/R amounts.
|
PModelHandle |
getNonCurrencyBalances(Poid accPoid,
Poid balGrpPoid)
Returns Non Currency balances for given balance group
|
BigDecimal |
getOpenBillAmount() |
BigDecimal |
getPendingBillAmount() |
Poid |
getSelectedBillInfo() |
FList |
getSelectedBillInfoDetails() |
FList |
getSelectedBillInfoFrmPymt()
Returns the billinfo flist for the selected billunit from Payments Page
|
BigDecimal |
getTotalDueAmount() |
boolean |
isAllBillInfoSelected() |
void |
isNotToBeResetDuringRefresh(boolean isChildrenFlagNotTobeResetDuringRefresh)
This method is required to communicate to this class that externally include
children's flag has been set , hence refresh method should not reset this value.
|
boolean |
isShowPrevLifeBills()
for showing previous life case
|
void |
refresh(PModelHandle acct,
PModelHandle arAcct,
PModelHandle arBillInfo,
boolean hasChildren,
Hashtable hChildrenInfo)
Refresh A/R data
|
void |
setBillsDueData(HashMap<String,BigDecimal> billsDueData)
Sets the bills data which containts
Key -> PIN_FLD_BILL_NO
Value -> PIN_FLD_DUE (due of the entire bill hierarchy [including children])
|
void |
setHARBillInfos(FList inputBillInfos,
FList outputBillInfos)
to cache the billinfo data with inputBillInfos FList as key and outputBillInfos FList as value
This method is introduced to store the input flist and out flist to improve the performance
|
void |
setIncludeChildrenFlag(int nFlag)
Set the flag to include/exclude children amounts when getting A/R amounts.
|
void |
setSelectedBillInfoDetails(FList currentFList,
boolean allSelection) |
void |
setSelectedBillInfoFrmPymt(FList p)
Sets the billinfo flist of selected billunit in Payments Page
|
void |
setShowPrevLifeBills(boolean mbShowPrevLifeBills)
for showing previous life case
|
void |
updateARBillInfoSummary(BalanceImpactEvent e)
Called right before BalanceImpactEvent is sent
Invoke PARBalancePageBean's getBalanceSummary() method and caches result
|
void |
updateARSummary(BalanceImpactEvent e)
Called right before BalanceImpactEvent is sent
Invoke PARBalancePageBean's getBalanceSummary() method and caches result
|
protected Hashtable hARBillInfoSummaryWithChild
protected Hashtable hARBillInfoSummary
protected Hashtable hARAccountSummary
protected Hashtable hARAccountSummaryWithChild
protected Hashtable hCurrencyBalances
protected Hashtable hNonCurrencyBalances
protected Hashtable hBalanceGroups
protected Hashtable hARBillInfos
public static int EXCLUDE_CHILDREN
public static int INCLUDE_CHILDREN
protected boolean mbShowPrevLifeBills
protected PModelHandle mAccount
protected PModelHandle mARAccount
protected PModelHandle mARBillInfo
protected boolean mHasChildren
protected Object[] mARSummaryObjs
protected int mnIncludeChildren
public HashMap<String,BigDecimal> billsDueData
public PARSharedData(PModelHandle acct, PModelHandle arAcct, PModelHandle arBillInfo, boolean hasChildren, Hashtable hChildrenInfo)
public void refresh(PModelHandle acct, PModelHandle arAcct, PModelHandle arBillInfo, boolean hasChildren, Hashtable hChildrenInfo)
public void updateARSummary(BalanceImpactEvent e)
public void updateARBillInfoSummary(BalanceImpactEvent e)
public Object[] getARSummary()
public void setSelectedBillInfoFrmPymt(FList p)
p
- public FList getSelectedBillInfoFrmPymt()
public Object[] getARBillInfoSummary()
public void setIncludeChildrenFlag(int nFlag)
nFlag
- 0/exclude children amounts, 1/include children amountspublic int getIncludeChildrenFlag()
public BigDecimal getPendingBillAmount()
public BigDecimal getOpenBillAmount()
public BigDecimal getTotalDueAmount()
public void destructor()
public PModelHandle getBalnceGroups(Poid billInfoPoid, Poid accPoid)
billInfoPoid
- Poid poid for the bill infohAcct
- PModelHandle Handle for the current account objectpublic PModelHandle getCurrencyBalances(Poid accPoid, Poid balGrpPoid, int currency)
accPoid
- Poid for the current account objectbalGrpPoid
- Poid of balance groupcurrency
- int primary currencypublic PModelHandle getNonCurrencyBalances(Poid accPoid, Poid balGrpPoid)
accPoid
- Poid for the current account objectbalGrpPoid
- Poid of balance grouppublic void setSelectedBillInfoDetails(FList currentFList, boolean allSelection)
public Poid getSelectedBillInfo()
public boolean isAllBillInfoSelected()
public FList getSelectedBillInfoDetails()
public PModelHandle getAccountBillInfo()
public void setShowPrevLifeBills(boolean mbShowPrevLifeBills)
mbShowPrevLife
- booleanpublic boolean isShowPrevLifeBills()
mbShowPrevLifeBills
- booleanpublic void disposeAllResources()
public void setHARBillInfos(FList inputBillInfos, FList outputBillInfos)
inputBillInfos
- FListoutputBillInfos
- FListpublic void isNotToBeResetDuringRefresh(boolean isChildrenFlagNotTobeResetDuringRefresh)
isChildrenFlagNotTobeResetDuringRefresh
- public void setBillsDueData(HashMap<String,BigDecimal> billsDueData)
public BigDecimal getBillTotalDue(String billNo)
billNo
- Copyright © 2003, 2023, Oracle and/or its affiliates.