Package org.brerp.base.model
Class MLBRTaxDefinition
java.lang.Object
org.compiere.model.PO
org.brerp.base.model.X_LBR_TaxDefinition
org.brerp.base.model.MLBRTaxDefinition
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_LBR_TaxDefinition
,I_Persistent
,Evaluatee
Model Tax Definition
- Version:
- $Id: MLBRNCMTax.java, v1.0 2011/11/14 9:38:36 AM, ralexsander Exp $
- Author:
- Ricardo Santana (Kenos, www.kenos.com.br)
- See Also:
-
Field Summary
Fields inherited from class org.brerp.base.model.X_LBR_TaxDefinition
COF_INDIE_ContribuinteICMS, COF_INDIE_ContribuinteIsento, COF_INDIE_NãoContribuinte, COF_TAXINCENTIVE_AmazôniaOcidental, COF_TAXINCENTIVE_ÁreasDeLivreComércio, COF_TAXINCENTIVE_ZonaFrancaDeManaus, COF_TAXREGIMECODE_1_SimplesNacional, COF_TAXREGIMECODE_2_SimplesNacionalExcessoDeSublimiteDeReceitaBruta, COF_TAXREGIMECODE_3_RegimeNormal, COF_TAXREGIMECODEBP_1_SimplesNacional, COF_TAXREGIMECODEBP_2_SimplesNacionalExcessoDeSublimiteDeReceitaBruta, COF_TAXREGIMECODEBP_3_RegimeNormal, DOCBASETYPE_AD_Reference_ID, DOCBASETYPE_AjusteEstoquePrevisto, DOCBASETYPE_APCreditMemo, DOCBASETYPE_APInvoice, DOCBASETYPE_APPayment, DOCBASETYPE_ARCreditMemo, DOCBASETYPE_ARInvoice, DOCBASETYPE_ARProFormaInvoice, DOCBASETYPE_ARReceipt, DOCBASETYPE_BankStatement, DOCBASETYPE_CashJournal, DOCBASETYPE_DistributionOrder, DOCBASETYPE_DocumentoDeOrdemDeServiço, DOCBASETYPE_FixedAssetsAddition, DOCBASETYPE_FixedAssetsDepreciation, DOCBASETYPE_FixedAssetsDisposal, DOCBASETYPE_GLDocument, DOCBASETYPE_GLJournal, DOCBASETYPE_MaintenanceOrder, DOCBASETYPE_ManufacturingCostCollector, DOCBASETYPE_ManufacturingOrder, DOCBASETYPE_MatchInvoice, DOCBASETYPE_MatchPO, DOCBASETYPE_MaterialDelivery, DOCBASETYPE_MaterialMovement, DOCBASETYPE_MaterialPhysicalInventory, DOCBASETYPE_MaterialProduction, DOCBASETYPE_MaterialReceipt, DOCBASETYPE_MDFe, DOCBASETYPE_NotaFiscalBrasil, DOCBASETYPE_PaymentAllocation, DOCBASETYPE_Payroll, DOCBASETYPE_PlanoMestreDeProdução, DOCBASETYPE_ProjectIssue, DOCBASETYPE_PurchaseOrder, DOCBASETYPE_PurchaseRequisition, DOCBASETYPE_QualityOrder, DOCBASETYPE_RPSNFS, DOCBASETYPE_SalesOrder, DOCBASETYPE_TaxDetermination, ISMANUFACTURED_Both, ISMANUFACTURED_No, ISMANUFACTURED_Yes, ISSOTRX_Both, ISSOTRX_No, ISSOTRX_Yes, LBR_ISSUBTRIBUTARIA_Both, LBR_ISSUBTRIBUTARIA_No, LBR_ISSUBTRIBUTARIA_Yes, LBR_PRODUCTSOURCE_Domestic, LBR_PRODUCTSOURCE_ESTR_ADQINTERNSEMSIMILARNACCONSTANALISTACAMEX, LBR_PRODUCTSOURCE_ESTR_IMPORTDIRSEMSIMILARNACCONSTANALISTACAMEX, LBR_PRODUCTSOURCE_Imported, LBR_PRODUCTSOURCE_Imported_AcquiredFromADomesticDistributor, LBR_PRODUCTSOURCE_NACIONAL_MERCBEMCOMCONTDEIMPORTINFOUIGUALA40, LBR_PRODUCTSOURCE_NACIONAL_MERCBEMCOMCONTDEIMPORTSUPERIORA40, LBR_PRODUCTSOURCE_NACIONAL_MERCBEMCOMCONTDEIMPORTSUPERIORA70, LBR_PRODUCTSOURCE_NACIONALPRODEMCONFCOMOSPROCPRODUTIVOSBASICOS, 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, TO_REGION_AD_Reference_ID
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_TaxDefinition
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_BPartner_Location_ID, COLUMNNAME_C_City_ID, COLUMNNAME_C_DocType_ID, COLUMNNAME_C_Region_ID, COLUMNNAME_cof_CityTo_ID, COLUMNNAME_cof_IndIE, COLUMNNAME_COF_TaxDefinition_Group_ID, COLUMNNAME_cof_TaxIncentive, COLUMNNAME_cof_TaxRegimeCode, COLUMNNAME_cof_TaxRegimeCodeBP, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_Description, COLUMNNAME_DocBaseType, COLUMNNAME_IsActive, COLUMNNAME_IsManual, COLUMNNAME_IsManufactured, COLUMNNAME_IsSOTrx, COLUMNNAME_LBR_BPartnerCategory_ID, COLUMNNAME_LBR_CFOP_ID, COLUMNNAME_LBR_FiscalGroup_BPartner_ID, COLUMNNAME_LBR_FiscalGroup_Product_ID, COLUMNNAME_lbr_IsSubTributaria, COLUMNNAME_LBR_LegalMessage_ID, COLUMNNAME_LBR_NCM_ID, COLUMNNAME_LBR_ProductCategory_ID, COLUMNNAME_lbr_ProductSource, COLUMNNAME_LBR_Tax_ID, COLUMNNAME_LBR_TaxDefinition_ID, COLUMNNAME_LBR_TaxDefinition_UU, COLUMNNAME_lbr_TransactionType, COLUMNNAME_M_Product_Category_ID, COLUMNNAME_M_Product_ID, COLUMNNAME_PriorityNo, COLUMNNAME_To_Region, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_ValidFrom, COLUMNNAME_Value, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMLBRTaxDefinition
(Properties ctx, int ID, String trx) Default ConstructorMLBRTaxDefinition
(Properties ctx, int LBR_TaxDefinition_ID, String trxName, String... virtualColumns) MLBRTaxDefinition
(Properties ctx, String LBR_TaxDefinition_UU, String trxName) MLBRTaxDefinition
(Properties ctx, String LBR_TaxDefinition_UU, String trxName, String... virtualColumns) MLBRTaxDefinition
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
beforeSave
(boolean newRecord) Called before Save for Pre-Save Operationstatic MLBRTaxDefinition[]
get
(int AD_Org_ID, int C_BPartner_ID, int C_BPartner_Location_ID, int C_DocType_ID, int C_Region_ID, int To_Region_ID, int C_City_ID, int cof_CityTo_ID, int LBR_BPartnerCategory_ID, int LBR_FiscalGroup_BPartner_ID, int LBR_FiscalGroup_Product_ID, int LBR_NCM_ID, int LBR_ProductCategory_ID, boolean lbr_IsSubTributaria, boolean isSOTrx, String lbr_TransactionType, Timestamp validFrom, String cof_TaxRegimeCode, String cof_TaxRegimeCodeBP, String cof_IndIE, String cof_TaxIncentive, int M_Product_ID, String lbr_ProductSource, int AD_Client_ID, int M_Product_Category_ID, boolean IsManufactured, String DocBaseType) Retorna o grupo mais relevante de impost0Methods inherited from class org.brerp.base.model.X_LBR_TaxDefinition
get_AccessLevel, getC_BPartner, getC_BPartner_ID, getC_BPartner_Location, getC_BPartner_Location_ID, getC_City, getC_City_ID, getC_DocType, getC_DocType_ID, getC_Region, getC_Region_ID, getcof_CityTo, getcof_CityTo_ID, getcof_IndIE, getCOF_TaxDefinition_Group, getCOF_TaxDefinition_Group_ID, getcof_TaxIncentive, getcof_TaxRegimeCode, getcof_TaxRegimeCodeBP, getDescription, getDocBaseType, getIsManufactured, getIsSOTrx, getLBR_BPartnerCategory, getLBR_BPartnerCategory_ID, getLBR_CFOP, getLBR_CFOP_ID, getLBR_FiscalGroup_BPartner, getLBR_FiscalGroup_BPartner_ID, getLBR_FiscalGroup_Product, getLBR_FiscalGroup_Product_ID, getlbr_IsSubTributaria, getLBR_LegalMessage, getLBR_LegalMessage_ID, getLBR_NCM, getLBR_NCM_ID, getLBR_ProductCategory, getLBR_ProductCategory_ID, getlbr_ProductSource, getLBR_Tax_ID, getLBR_TaxDefinition_ID, getLBR_TaxDefinition_UU, getlbr_TransactionType, getM_Product, getM_Product_Category, getM_Product_Category_ID, getM_Product_ID, getPriorityNo, getTo_Region, getValidFrom, getValue, initPO, isManual, setC_BPartner_ID, setC_BPartner_Location_ID, setC_City_ID, setC_DocType_ID, setC_Region_ID, setcof_CityTo_ID, setcof_IndIE, setCOF_TaxDefinition_Group_ID, setcof_TaxIncentive, setcof_TaxRegimeCode, setcof_TaxRegimeCodeBP, setDescription, setDocBaseType, setIsManual, setIsManufactured, setIsSOTrx, setLBR_BPartnerCategory_ID, setLBR_CFOP_ID, setLBR_FiscalGroup_BPartner_ID, setLBR_FiscalGroup_Product_ID, setlbr_IsSubTributaria, setLBR_LegalMessage_ID, setLBR_NCM_ID, setLBR_ProductCategory_ID, setlbr_ProductSource, setLBR_Tax_ID, setLBR_TaxDefinition_ID, setLBR_TaxDefinition_UU, setlbr_TransactionType, setM_Product_Category_ID, setM_Product_ID, setPriorityNo, setTo_Region, setValidFrom, setValue, 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_TaxDefinition
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
-
MLBRTaxDefinition
Default Constructor- Parameters:
Properties
- ctxint
- ID (0 create new)String
- trx
-
MLBRTaxDefinition
Load Constructor- Parameters:
ctx
- contextrs
- result set recordtrxName
- transaction
-
MLBRTaxDefinition
public MLBRTaxDefinition(Properties ctx, int LBR_TaxDefinition_ID, String trxName, String... virtualColumns) -
MLBRTaxDefinition
public MLBRTaxDefinition(Properties ctx, String LBR_TaxDefinition_UU, String trxName, String... virtualColumns) -
MLBRTaxDefinition
-
-
Method Details
-
get
public static MLBRTaxDefinition[] get(int AD_Org_ID, int C_BPartner_ID, int C_BPartner_Location_ID, int C_DocType_ID, int C_Region_ID, int To_Region_ID, int C_City_ID, int cof_CityTo_ID, int LBR_BPartnerCategory_ID, int LBR_FiscalGroup_BPartner_ID, int LBR_FiscalGroup_Product_ID, int LBR_NCM_ID, int LBR_ProductCategory_ID, boolean lbr_IsSubTributaria, boolean isSOTrx, String lbr_TransactionType, Timestamp validFrom, String cof_TaxRegimeCode, String cof_TaxRegimeCodeBP, String cof_IndIE, String cof_TaxIncentive, int M_Product_ID, String lbr_ProductSource, int AD_Client_ID, int M_Product_Category_ID, boolean IsManufactured, String DocBaseType) Retorna o grupo mais relevante de impost0 -
beforeSave
protected boolean beforeSave(boolean newRecord) Called before Save for Pre-Save Operation- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- new record- Returns:
- true if record can be saved
-