Package org.compiere.acct
Class Fact.Balance
java.lang.Object
org.compiere.acct.Fact.Balance
- Enclosing class:
- Fact
Fact Balance Utility
- Version:
- $Id: Fact.java,v 1.2 2006/07/30 00:53:33 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(BigDecimal dr, BigDecimal cr) AddGet BalanceGet Post Balanceboolean
Reversalboolean
Zero BalancetoString()
String Representation
-
Field Details
-
DR
DR Amount -
CR
CR Amount
-
-
Constructor Details
-
Balance
- Parameters:
dr
- DRcr
- CR
-
-
Method Details
-
add
Add- Parameters:
dr
- DRcr
- CR
-
getBalance
Get Balance- Returns:
- balance
-
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
-
toString
String Representation
-