Class MCOFCTaxDeterminationHdr

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

public class MCOFCTaxDeterminationHdr extends X_COF_C_TaxDetermination_Hdr
Model Class COF_C_TaxDetermination_Hdr
Version:
$Id: MCOFCTaxDeterminationHdr.java, 02/12/2015 10:28:54 gschneider
Author:
gschneider (gabriel.schneider@devcoffee.com.br>, http://www.devcoffee.com.br)
See Also:
  • Constructor Details

    • MCOFCTaxDeterminationHdr

      public MCOFCTaxDeterminationHdr(Properties ctx, int COF_C_TaxDetermination_Hdr_ID, String trxName)
      Parameters:
      ctx -
      COF_C_TaxDetermination_Hdr_ID -
      trxName -
    • MCOFCTaxDeterminationHdr

      public MCOFCTaxDeterminationHdr(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
    • MCOFCTaxDeterminationHdr

      public MCOFCTaxDeterminationHdr(Properties ctx, int COF_C_TaxDetermination_Hdr_ID, String trxName, String... virtualColumns)
    • MCOFCTaxDeterminationHdr

      public MCOFCTaxDeterminationHdr(Properties ctx, String COF_C_TaxDetermination_Hdr_UU, String trxName, String... virtualColumns)
    • MCOFCTaxDeterminationHdr

      public MCOFCTaxDeterminationHdr(Properties ctx, String COF_C_TaxDetermination_Hdr_UU, String trxName)
  • Method Details

    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new record
      Returns:
      true if record can be saved
    • getNFs

      public List<MLBRDocFiscal> getNFs()
      get DocFiscal Authorized in Period
      Returns:
    • getLines

      public List<MCOFCTaxDeterminationLine> getLines()
      get Lines from Determination SO / PO
      Returns:
    • getLinesPO

      public List<MCOFCTaxDeterminationLine> getLinesPO()
      get Lines from Determination PO
      Returns:
    • getFacts

      public List<MCOFCTaxDeterminationFact> getFacts()
      Retorna todos os Ajustes de Apuração ativos.
      Returns:
    • getAllFacts

      public List<MCOFCTaxDeterminationFact> getAllFacts()
      Retorna todos os Ajustes de Apuração, ativos ou não.
      Returns:
    • getGuides

      public List<MCOFCCollectionGuide> getGuides()
      Retorna todas as Guias de Recolhimento.
      Returns:
    • createLine

      public void createLine(Integer param1)
      Cria a Linha de Lançamento de Apuração
      Parameters:
      paras -
      sql -
      trxName -
    • createDeterminationSQL

      public String createDeterminationSQL(Integer LBR_TaxName_ID, Integer param1)
      Cria a Instrução SQL para Busca de Resultados de Apuração
      Parameters:
      LBR_TaxName_ID -
      Returns:
    • getHdrs

      public static List<MCOFCTaxDeterminationHdr> getHdrs(int AD_Org_ID, String determinationType, int LBR_TaxName_ID, Timestamp dateFrom, Timestamp dateTo, String trxName)
      get Facts
      Returns:
    • getCollections

      public List<MCOFCCollectionGuide> getCollections()
      get Facts
      Returns:
    • getAJ_DebCred

      public BigDecimal getAJ_DebCred(String type)
      Total de Ajustes de Débitos
      Returns:
    • getAJ_NF_DebCred

      public BigDecimal getAJ_NF_DebCred(List<MLBRDocFiscal> dfs, String classificationType)
      Total de Ajustes de Débito ou Crédito para NFs
      Returns:
    • getAJ_Est_CredDeb

      public BigDecimal getAJ_Est_CredDeb(String type)
      Total de Ajustes de Débitos
      Returns:
    • getVLR_SLD_DEVCRED_Apur

      public BigDecimal getVLR_SLD_DEVCRED_Apur(boolean isCredorField)
      Lógica para Preenchimento dos Campos (VL_SLD_CREDOR_ANT) e (VL_SLD_APURADO) - Registro E110
      Returns:
    • getTOT_CREDITOS

      public BigDecimal getTOT_CREDITOS(String taxName, String trxName)
      Lógica para Preenchimento dos Campos (VL_SLD_CREDOR_ANT) e (VL_SLD_APURADO) - Registro E110
      Returns:
    • getOUTROS_CREDITOS

      public BigDecimal getOUTROS_CREDITOS(String taxName, String trxName)
      Lógica para Preenchimento dos Campos (VL_SLD_CREDOR_ANT) e (VL_SLD_APURADO) - Registro E110
      Returns: