Class MRMATax

    • Constructor Detail

      • MRMATax

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

        public MRMATax​(Properties ctx,
                       ResultSet rs,
                       String trxName)
        Load Constructor. Set Precision and TaxIncluded for tax calculations!
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
    • Method Detail

      • 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 - get old tax
        trxName - transaction
        Returns:
        existing or new tax
      • 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 Order Lines
        Returns:
        true if calculated