Class MRMATax

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_M_RMATax, I_Persistent, Evaluatee

public class MRMATax extends X_M_RMATax
Author:
Elaine
See Also:
  • Constructor Details

    • MRMATax

      public MRMATax(Properties ctx, String M_RMATax_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      M_RMATax_UU - UUID key
      trxName - Transaction
    • MRMATax

      public MRMATax(Properties ctx, int ignored, String trxName)
      Parameters:
      ctx - context
      ignored - ignored
      trxName - transaction
    • MRMATax

      public MRMATax(Properties ctx, ResultSet rs, String trxName)
      Load Constructor.
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
  • Method Details

    • get

      public static MRMATax get(MRMALine line, int precision, boolean oldTax, String trxName)
      Get Tax Line for RMA Line
      Parameters:
      line - RMA line
      precision - currency precision
      oldTax - true to use old tax (get_ValueOld("C_Tax_ID"))
      trxName - transaction
      Returns:
      existing or new MRMATax record
    • getChildTaxes

      public static MRMATax[] getChildTaxes(MRMALine line, int precision, boolean oldTax, String trxName)
      Get Child Tax Lines for RMA Line
      Parameters:
      line - RMA line
      precision - currency precision
      oldTax - true to use old tax (get_ValueOld("C_Tax_ID"))
      trxName - transaction
      Returns:
      existing or new MRMATax record or empty MRMATax array if line MTax has no child taxes
    • setPrecision

      protected void setPrecision(int precision)
      Set Precision
      Parameters:
      precision - The precision to set.
    • getTax

      protected MTax getTax()
      Get Tax (immutable)
      Returns:
      tax
    • calculateTaxFromLines

      public boolean calculateTaxFromLines()
      Calculate/Set Tax Amt from RMA Lines
      Returns:
      true if calculated
    • toString

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