Package org.brerp.base.model
Class MLBRCFOPLine
java.lang.Object
org.compiere.model.PO
org.brerp.base.model.X_LBR_CFOPLine
org.brerp.base.model.MLBRCFOPLine
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_LBR_CFOPLine
,I_Persistent
,Evaluatee
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:
-
Field Summary
Fields inherited from class org.brerp.base.model.X_LBR_CFOPLine
COF_INDIE_ContribuinteICMS, COF_INDIE_ContribuinteIsento, COF_INDIE_NãoContribuinte, ISMANUFACTURED_Both, ISMANUFACTURED_No, ISMANUFACTURED_Yes, LBR_DESTIONATIONTYPE_AmazôniaOcidental, LBR_DESTIONATIONTYPE_ÁreasDeLivreComércio, LBR_DESTIONATIONTYPE_EstadosDiferentes, LBR_DESTIONATIONTYPE_EstadosIdenticos, LBR_DESTIONATIONTYPE_Estrangeiro, LBR_DESTIONATIONTYPE_ZonaFrancaDeManaus, LBR_ISSUBTRIBUTARIA_Both, LBR_ISSUBTRIBUTARIA_No, LBR_ISSUBTRIBUTARIA_Yes, LBR_TRANSACTIONTYPE_EndUser, LBR_TRANSACTIONTYPE_Export, LBR_TRANSACTIONTYPE_ExportaçãoIndireta, LBR_TRANSACTIONTYPE_Import, LBR_TRANSACTIONTYPE_InternalUse, LBR_TRANSACTIONTYPE_Manufacturing, LBR_TRANSACTIONTYPE_Others, LBR_TRANSACTIONTYPE_Remessa, LBR_TRANSACTIONTYPE_Resale, LBR_TRANSACTIONTYPE_Transfer
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, log, p_ctx, p_info, UUID_NEW_RECORD, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
Fields inherited from interface org.brerp.base.model.I_LBR_CFOPLine
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_C_DocType_ID, COLUMNNAME_cof_CFOP_Delivery_ID, COLUMNNAME_cof_CFOP_Movement_ID, COLUMNNAME_cof_IndIE, COLUMNNAME_cof_LegalMessageDelivery_ID, COLUMNNAME_cof_Tax_ID, COLUMNNAME_cof_TaxForCost, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_IsActive, COLUMNNAME_IsManufactured, COLUMNNAME_LBR_BPartnerCategory_ID, COLUMNNAME_LBR_CFOP_ID, COLUMNNAME_LBR_CFOPLine_ID, COLUMNNAME_LBR_CFOPLine_UU, COLUMNNAME_lbr_DestionationType, COLUMNNAME_LBR_FiscalGroup_Product_ID, COLUMNNAME_lbr_IsSubTributaria, COLUMNNAME_LBR_LegalMessage_ID, COLUMNNAME_LBR_ProductCategory_ID, COLUMNNAME_LBR_Tax_ID, COLUMNNAME_lbr_TransactionType, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMLBRCFOPLine
(Properties ctx, int ID, String trxName) Default ConstructorMLBRCFOPLine
(Properties ctx, int LBR_CFOPLine_ID, String trxName, String... virtualColumns) MLBRCFOPLine
(Properties ctx, String LBR_CFOPLine_UU, String trxName) MLBRCFOPLine
(Properties ctx, String LBR_CFOPLine_UU, String trxName, String... virtualColumns) MLBRCFOPLine
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
beforeSave
(boolean newRecord) Before Savestatic 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 documentostatic 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 documentoMethods inherited from class org.brerp.base.model.X_LBR_CFOPLine
get_AccessLevel, getC_DocType, getC_DocType_ID, getcof_CFOP_Delivery, getcof_CFOP_Delivery_ID, getcof_CFOP_Movement, getcof_CFOP_Movement_ID, getcof_IndIE, getcof_LegalMessageDelivery, getcof_LegalMessageDelivery_ID, getcof_Tax, getcof_Tax_ID, getcof_TaxForCost, getIsManufactured, getLBR_BPartnerCategory, getLBR_BPartnerCategory_ID, getLBR_CFOP, getLBR_CFOP_ID, getLBR_CFOPLine_ID, getLBR_CFOPLine_UU, getlbr_DestionationType, getLBR_FiscalGroup_Product, getLBR_FiscalGroup_Product_ID, getlbr_IsSubTributaria, getLBR_LegalMessage, getLBR_LegalMessage_ID, getLBR_ProductCategory, getLBR_ProductCategory_ID, getLBR_Tax_ID, getlbr_TransactionType, initPO, setC_DocType_ID, setcof_CFOP_Delivery_ID, setcof_CFOP_Movement_ID, setcof_IndIE, setcof_LegalMessageDelivery_ID, setcof_Tax_ID, setcof_TaxForCost, setIsManufactured, setLBR_BPartnerCategory_ID, setLBR_CFOP_ID, setLBR_CFOPLine_ID, setLBR_CFOPLine_UU, setlbr_DestionationType, setLBR_FiscalGroup_Product_ID, setlbr_IsSubTributaria, setLBR_LegalMessage_ID, setLBR_ProductCategory_ID, setLBR_Tax_ID, setlbr_TransactionType, toString
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, buildInsertSQL, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, toInsertSQL, unlock, update_Tree, validForeignKeys
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface org.brerp.base.model.I_LBR_CFOPLine
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
Methods inherited from interface org.compiere.model.I_Persistent
save
-
Constructor Details
-
MLBRCFOPLine
Default Constructor- Parameters:
Properties
- ctxint
- ID (0 create new)String
- trx
-
MLBRCFOPLine
Load Constructor- Parameters:
ctx
- contextrs
- result set recordtrxName
- transaction
-
MLBRCFOPLine
-
MLBRCFOPLine
public MLBRCFOPLine(Properties ctx, String LBR_CFOPLine_UU, String trxName, String... virtualColumns) -
MLBRCFOPLine
-
-
Method Details
-
beforeSave
protected boolean beforeSave(boolean newRecord) Before Save- Overrides:
beforeSave
in classPO
- 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 TdDtrxName
-- 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:
-