Class MLBRCFOP

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

public class MLBRCFOP extends X_LBR_CFOP
Model for CFOP Table
Version:
$Id: MLBRCFOP.java, v2.0 2009/11/10 8:27:53 PM, mgrigioni Exp $
Author:
Mario Grigioni
See Also:
  • Constructor Details

    • MLBRCFOP

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

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

      public MLBRCFOP(Properties ctx, int LBR_CFOP_ID, String trxName, String... virtualColumns)
    • MLBRCFOP

      public MLBRCFOP(Properties ctx, String LBR_CFOP_UU, String trxName, String... virtualColumns)
    • MLBRCFOP

      public MLBRCFOP(Properties ctx, String LBR_CFOP_UU, String trxName)
  • Method Details

    • getCFOP

      public static MLBRCFOP getCFOP(Properties ctx, String value, String trxName)
      Retorno o Objeto do CFOP pelo Nome
      Parameters:
      ctx -
      value -
      trxName -
      Returns:
    • validateCFOP

      public boolean validateCFOP(boolean isSOTrx, MLocation orgLocation, MLocation bpLocation, boolean allowNull)
      Verifica se o CFOP é válido para o Documento Escolhido
      Parameters:
      isSOTrx -
      orgLocation -
      bpLocation -
      allowNull - - if true, return valid when NULL
      Returns:
      boolean true (valid), false (invalid)
    • validateCFOP

      public static boolean validateCFOP(Integer LBR_CFOP_ID, boolean isSOTrx, MLocation orgLocation, MLocation bpLocation, boolean allowNull)
      validateCFOP
      Parameters:
      LBR_CFOP_ID -
      isSOTrx -
      orgLocation -
      bpLocation -
      allowNull - - if true, return valid when NULL
      Returns:
      boolean true (valid), false (invalid)
    • chooseCFOP

      public static MLBRCFOPLine chooseCFOP(int AD_Org_ID, int C_DocType_ID, int LBR_ProductCategory_ID, int LBR_BPartnerCategory_ID, String lbr_TransactionType, String cof_IndIE, String lbr_DestionationType, boolean lbr_IsSubTributaria, boolean IsManufactured, int LBR_FiscalGroup_Product_ID, String trxName)
      Retorna qual é o CFOP
      Parameters:
      C_DocType_ID -
      LBR_ProductCategory_ID -
      LBR_BPartnerCategory_ID -
      lbr_TransactionType -
      lbr_DestionationType -
      lbr_IsSubTributaria -
      IsManufactured -
      Returns:
      MLBRCFOPLine