Class MLBRTaxName

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

public class MLBRTaxName extends X_LBR_TaxName
Cadastro dos Impostos Brasileiros
Version:
$Id: MLBRTaxName.java, v1.0 2011/04/20 7:50:48 PM, ralexsander Exp $
Author:
Ricardo Santana (Kenos, www.kenos.com.br)
See Also:
  • Constructor Details

    • MLBRTaxName

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

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

      public MLBRTaxName(Properties ctx, int LBR_TaxName_ID, String trxName, String... virtualColumns)
    • MLBRTaxName

      public MLBRTaxName(Properties ctx, String LBR_TaxName_UU, String trxName, String... virtualColumns)
    • MLBRTaxName

      public MLBRTaxName(Properties ctx, String LBR_TaxName_UU, String trxName)
  • Method Details

    • getFormula

      public MLBRTaxFormula getFormula(int AD_Client_ID, int AD_Org_ID, String trxType, Timestamp validFrom)
      Get the current formula for this tax (preferencia para formulas da empresa/organização do documento fallback system)
      Parameters:
      trxType - transaction type
      validFrom - date
      Returns:
      formula
    • getTaxNames

      public static MLBRTaxName[] getTaxNames()
      Get All Tax Names from client
      Returns:
      All Tax Names
    • getSTTaxName

      public MLBRTaxName getSTTaxName()
      Get TaxName for ST
      Returns:
      TaxName
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new
      Returns:
      save
    • toString

      public String toString()
      To String
      Overrides:
      toString in class X_LBR_TaxName
      Returns:
      String representation
    • getRetentionConfig

      public MCOFRetentionConfig getRetentionConfig(int AD_Client_ID, int AD_Org_ID, String trxName, boolean isSOTrx)
    • amtTaxRetained

      public BigDecimal amtTaxRetained(PO po, String tableName, String trxName)