Class Fact.Balance

java.lang.Object
org.compiere.acct.Fact.Balance
Enclosing class:
Fact

public static class Fact.Balance extends Object
Fact Balance Utility
Version:
$Id: Fact.java,v 1.2 2006/07/30 00:53:33 jjanke Exp $
Author:
Jorg Janke
  • Field Details

  • Constructor Details

  • Method Details

    • add

      public void add(BigDecimal dr, BigDecimal cr)
      Add
      Parameters:
      dr - DR
      cr - 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
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class Object
      Returns:
      info