Class MCOFDFe

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

public class MCOFDFe extends X_COF_DFe
NF destinadas
Version:
$Id: MCOFDFe.java, v1.0 2015/10/20 10:39:50 AM, muriloht Exp $
Author:
Murilo H. Torquato (devCoffee, www.devcoffee.com.br)
See Also:
  • Constructor Details

  • Method Details

    • setlbr_CNPJ

      public void setlbr_CNPJ(String lbr_CNPJ)
      Apply mask to CNPJ
      Specified by:
      setlbr_CNPJ in interface I_COF_DFe
      Overrides:
      setlbr_CNPJ in class X_COF_DFe
      Parameters:
      lbr_CNPJ - Used to identify Legal Entities in Brazil
    • setlbr_CPF

      public void setlbr_CPF(String lbr_CPF)
      Apply mask to CPF
      Specified by:
      setlbr_CPF in interface I_COF_DFe
      Overrides:
      setlbr_CPF in class X_COF_DFe
      Parameters:
      lbr_CPF - Used to identify individuals in Brazil
    • get

      public static MCOFDFe get(Properties ctx, String nfeID)
      Retrieve DF-e using LBR_NFe_ID
      Parameters:
      ctx -
      nfeID -
      Returns:
    • getLastManifest

      public String getLastManifest()
      Get last Manifested Status
      Returns:
      last status
    • isCancelled

      public boolean isCancelled()
      Check if this DF-e is cancelled
      Specified by:
      isCancelled in interface I_COF_DFe
      Overrides:
      isCancelled in class X_COF_DFe
      Returns:
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Before Save
    • Prevent from duplicate records
    • Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new record
      Returns:
      true if record can be saved
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      Description copied from class: PO
      Called after Save for Post-Save Operation
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - new record
      success - true if save operation was success
      Returns:
      if save was a success
    • get

      public static MCOFDFe get(MLBRDocFiscal nf)
      Procura um DF-e para a NF
      Parameters:
      nf -
      Returns:
    • get

      public static MCOFDFe get(String key)
      Procura um DF-e para a NF
      Parameters:
      nf -
      Returns:
    • isEventoDeCancelamento

      public boolean isEventoDeCancelamento()