Class MLBRCFOPLine

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

public class MLBRCFOPLine extends X_LBR_CFOPLine
Model for Tax CFOP Line
Version:
$Id: MLBRCFOPLine.java, v2.0 2011/10/13 2:16:18 PM, ralexsander Exp $
Author:
Ricardo Santana (Kenos, www.kenos.com.br)
See Also:
  • Constructor Details

    • MLBRCFOPLine

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

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

      public MLBRCFOPLine(Properties ctx, int LBR_CFOPLine_ID, String trxName, String... virtualColumns)
    • MLBRCFOPLine

      public MLBRCFOPLine(Properties ctx, String LBR_CFOPLine_UU, String trxName, String... virtualColumns)
    • MLBRCFOPLine

      public MLBRCFOPLine(Properties ctx, String LBR_CFOPLine_UU, String trxName)
  • Method Details

    • beforeSave

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

      public static MLBRCFOPLine[] getDocTypeCFOP(int AD_Org_ID, int C_DocType_ID, int LBR_CFOP_ID, String trxName)
      Retorna as configurações de CFOP para um determinado tipo de documento
      Parameters:
      AD_Org_ID -
      C_DocType_ID -
      LBR_CFOP_ID - (se = 0 então retorna todos os CFOPs do TdD
      trxName -
      Returns:
    • getTaxForCost

      public static String getTaxForCost(int AD_Org_ID, int C_DocType_ID, int LBR_ProductCategory_ID, int LBR_CustomerCategory_ID, String lbr_TransactionType, String cof_IndIE, String lbr_DestionationType, boolean lbr_HasSubstitution, boolean isManufactured, int LBR_FiscalGroup_Product_ID, String trxName)
      Retorna as configurações de CFOP para um determinado tipo de documento
      Parameters:
      AD_Org_ID -
      C_DocType_ID -
      LBR_CFOP_ID -
      trxName -
      Returns: