Class MLBRTaxLine

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

public class MLBRTaxLine extends X_LBR_TaxLine implements Comparable
Cálculo do Imposto por Linha
Version:
$Id: MLBRTaxLine.java, v1.0 2011/04/20 7:49:43 PM, ralexsander Exp $
Author:
Ricardo Santana (Kenos, www.kenos.com.br)
  • Sponsored by Soliton, www.soliton.com.br
  • See Also:
    • Constructor Details

      • MLBRTaxLine

        public MLBRTaxLine(Properties ctx, int X_LBR_TaxLine_ID, String trxName)
        Default Constructor
        Parameters:
        Properties - ctx
        int - ID (0 create new)
        String - trx
      • MLBRTaxLine

        public MLBRTaxLine(Properties ctx, ResultSet rs, String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set record
        trxName - transaction
      • MLBRTaxLine

        public MLBRTaxLine(Properties ctx, int LBR_TaxLine_ID, String trxName, String... virtualColumns)
      • MLBRTaxLine

        public MLBRTaxLine(Properties ctx, String LBR_TaxLine_UU, String trxName, String... virtualColumns)
      • MLBRTaxLine

        public MLBRTaxLine(Properties ctx, String LBR_TaxLine_UU, String trxName)
    • Method Details

      • getChild_Tax_ID

        public int getChild_Tax_ID(int C_Tax_ID)
        Tax Child for Tax Name
        Parameters:
        C_Tax_ID -
        Returns:
        tax child or -1 if not found
      • compare

        public int compare(Object o1, Object o2)
        Order for tax calculation
        Specified by:
        compare in interface Comparator<Object>
        Overrides:
        compare in class PO
        Parameters:
        o1 - Object 1
        o2 - Object 2
        Returns:
        -1 if o1 < o2
      • compareTo

        public int compareTo(Object arg0)
        Comparador necessário pois os impostos do tipo Substituição Tributária precisam ser calculados por último.
        Specified by:
        compareTo in interface Comparable
      • copy

        public MLBRTaxLine copy()
        Copia os impostos para um novo TL
      • toString

        public String toString()
        To String
        Overrides:
        toString in class X_LBR_TaxLine
        Returns:
        String representation