Package org.compiere.acct
Class Fact.Balance
- java.lang.Object
-
- org.compiere.acct.Fact.Balance
-
-
Field Summary
Fields Modifier and Type Field Description BigDecimal
CR
CR AmountBigDecimal
DR
DR Amount
-
Constructor Summary
Constructors Constructor Description Balance(BigDecimal dr, BigDecimal cr)
New Balance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(BigDecimal dr, BigDecimal cr)
AddBigDecimal
getBalance()
Get BalanceBigDecimal
getPostBalance()
Get Post Balanceboolean
isReversal()
Reversalboolean
isZeroBalance()
Zero BalanceString
toString()
String Representation
-
-
-
Field Detail
-
DR
public BigDecimal DR
DR Amount
-
CR
public BigDecimal CR
CR Amount
-
-
Constructor Detail
-
Balance
public Balance(BigDecimal dr, BigDecimal cr)
New Balance- Parameters:
dr
- DRcr
- CR
-
-
Method Detail
-
add
public void add(BigDecimal dr, BigDecimal cr)
Add- Parameters:
dr
- DRcr
- CR
-
getBalance
public BigDecimal getBalance()
Get Balance- Returns:
- balance
-
getPostBalance
public BigDecimal getPostBalance()
Get Post Balance- Returns:
- absolute balance - negative if reversal
-
isZeroBalance
public boolean isZeroBalance()
Zero Balance- Returns:
- true if 0
-
isReversal
public boolean isReversal()
Reversal- Returns:
- true if both DR/CR are negative or zero
-
-