Package org.brerp.base.model
Class MLBRTaxLine
java.lang.Object
org.compiere.model.PO
org.brerp.base.model.X_LBR_TaxLine
org.brerp.base.model.MLBRTaxLine
- All Implemented Interfaces:
Serializable,Cloneable,Comparable,Comparator<Object>,I_LBR_TaxLine,I_Persistent,Evaluatee
Cálculo do Imposto por Linha
- Version:
- $Id: MLBRTaxLine.java, v1.0 2011/04/20 7:49:43 PM, ralexsander Exp $
- Author:
- Ricardo Santana (Kenos, www.kenos.com.br)
- Sponsored by Soliton, www.soliton.com.br
- See Also:
-
Field Summary
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_IDFields inherited from interface org.brerp.base.model.I_LBR_TaxLine
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_COF_BaseBenefFiscal, COLUMNNAME_COF_CEnq_ID, COLUMNNAME_cof_cnpjProd, COLUMNNAME_cof_DesonAmt, COLUMNNAME_cof_DesonRate, COLUMNNAME_cof_DifAmt, COLUMNNAME_cof_DifRate, COLUMNNAME_COF_FatorBenefFiscal, COLUMNNAME_cof_ListAmt, COLUMNNAME_COF_ModBC_ID, COLUMNNAME_COF_MotDeson_ID, COLUMNNAME_cof_MVARate, COLUMNNAME_cof_OverrideCEnq, COLUMNNAME_cof_OverrideDesonRate, COLUMNNAME_cof_OverrideDifRate, COLUMNNAME_cof_OverrideFormula, COLUMNNAME_cof_OverrideListAmt, COLUMNNAME_cof_OverrideModBC, COLUMNNAME_cof_OverrideMotDeson, COLUMNNAME_cof_OverrideMVARate, COLUMNNAME_cof_OverrideTaxBase, COLUMNNAME_cof_OverrideTaxLM, COLUMNNAME_cof_OverrideTaxRate, COLUMNNAME_cof_OverrideTaxStatus, COLUMNNAME_cof_PrintOnDelivery, COLUMNNAME_cof_SiscomexAmt, COLUMNNAME_cof_TaxStatusDelivery_ID, COLUMNNAME_COF_ValorImpEfetivo, COLUMNNAME_cof_ValorNaoRetido, COLUMNNAME_cof_vDespAdu, COLUMNNAME_cof_vFreteRateioCTe, COLUMNNAME_cof_vIOF, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_IsActive, COLUMNNAME_IsManual, COLUMNNAME_IsTaxIncluded, COLUMNNAME_LBR_Formula_ID, COLUMNNAME_LBR_LegalMessage_ID, COLUMNNAME_LBR_Tax_ID, COLUMNNAME_lbr_TaxAmt, COLUMNNAME_lbr_TaxBase, COLUMNNAME_lbr_TaxBaseAmt, COLUMNNAME_LBR_TaxLine_ID, COLUMNNAME_LBR_TaxLine_UU, COLUMNNAME_LBR_TaxName_ID, COLUMNNAME_lbr_TaxRate, COLUMNNAME_LBR_TaxStatus_ID, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name -
Constructor Summary
ConstructorsConstructorDescriptionMLBRTaxLine(Properties ctx, int X_LBR_TaxLine_ID, String trxName) Default ConstructorMLBRTaxLine(Properties ctx, int LBR_TaxLine_ID, String trxName, String... virtualColumns) MLBRTaxLine(Properties ctx, String LBR_TaxLine_UU, String trxName) MLBRTaxLine(Properties ctx, String LBR_TaxLine_UU, String trxName, String... virtualColumns) MLBRTaxLine(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionintOrder for tax calculationintComparador necessário pois os impostos do tipo Substituição Tributária precisam ser calculados por último.copy()Copia os impostos para um novo TLintgetChild_Tax_ID(int C_Tax_ID) Tax Child for Tax NametoString()To StringMethods inherited from class org.brerp.base.model.X_LBR_TaxLine
get_AccessLevel, getCOF_BaseBenefFiscal, getCOF_CEnq_ID, getcof_cnpjProd, getcof_DesonAmt, getcof_DesonRate, getcof_DifAmt, getcof_DifRate, getCOF_FatorBenefFiscal, getcof_ListAmt, getCOF_ModBC, getCOF_ModBC_ID, getCOF_MotDeson, getCOF_MotDeson_ID, getcof_MVARate, getcof_SiscomexAmt, getcof_TaxStatusDelivery, getcof_TaxStatusDelivery_ID, getCOF_ValorImpEfetivo, getcof_ValorNaoRetido, getcof_vDespAdu, getcof_vFreteRateioCTe, getcof_vIOF, getLBR_Formula, getLBR_Formula_ID, getLBR_LegalMessage, getLBR_LegalMessage_ID, getLBR_Tax, getLBR_Tax_ID, getlbr_TaxAmt, getlbr_TaxBase, getlbr_TaxBaseAmt, getLBR_TaxLine_ID, getLBR_TaxLine_UU, getLBR_TaxName, getLBR_TaxName_ID, getlbr_TaxRate, getLBR_TaxStatus, getLBR_TaxStatus_ID, initPO, iscof_OverrideCEnq, iscof_OverrideDesonRate, iscof_OverrideDifRate, iscof_OverrideFormula, iscof_OverrideListAmt, iscof_OverrideModBC, iscof_OverrideMotDeson, iscof_OverrideMVARate, iscof_OverrideTaxBase, iscof_OverrideTaxLM, iscof_OverrideTaxRate, iscof_OverrideTaxStatus, iscof_PrintOnDelivery, isManual, isTaxIncluded, setCOF_BaseBenefFiscal, setCOF_CEnq_ID, setcof_cnpjProd, setcof_DesonAmt, setcof_DesonRate, setcof_DifAmt, setcof_DifRate, setCOF_FatorBenefFiscal, setcof_ListAmt, setCOF_ModBC_ID, setCOF_MotDeson_ID, setcof_MVARate, setcof_OverrideCEnq, setcof_OverrideDesonRate, setcof_OverrideDifRate, setcof_OverrideFormula, setcof_OverrideListAmt, setcof_OverrideModBC, setcof_OverrideMotDeson, setcof_OverrideMVARate, setcof_OverrideTaxBase, setcof_OverrideTaxLM, setcof_OverrideTaxRate, setcof_OverrideTaxStatus, setcof_PrintOnDelivery, setcof_SiscomexAmt, setcof_TaxStatusDelivery_ID, setCOF_ValorImpEfetivo, setcof_ValorNaoRetido, setcof_vDespAdu, setcof_vFreteRateioCTe, setcof_vIOF, setIsManual, setIsTaxIncluded, setLBR_Formula_ID, setLBR_LegalMessage_ID, setLBR_Tax_ID, setlbr_TaxAmt, setlbr_TaxBase, setlbr_TaxBaseAmt, setLBR_TaxLine_ID, setLBR_TaxLine_UU, setLBR_TaxName_ID, setlbr_TaxRate, setLBR_TaxStatus_IDMethods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, buildInsertSQL, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, 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, validForeignKeysExMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface org.brerp.base.model.I_LBR_TaxLine
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActiveMethods inherited from interface org.compiere.model.I_Persistent
save
-
Constructor Details
-
MLBRTaxLine
Default Constructor- Parameters:
Properties- ctxint- ID (0 create new)String- trx
-
MLBRTaxLine
Load Constructor- Parameters:
ctx- contextrs- result set recordtrxName- transaction
-
MLBRTaxLine
-
MLBRTaxLine
-
MLBRTaxLine
-
-
Method Details
-
getChild_Tax_ID
public int getChild_Tax_ID(int C_Tax_ID) Tax Child for Tax Name- Parameters:
C_Tax_ID-- Returns:
- tax child or -1 if not found
-
compare
Order for tax calculation- Specified by:
comparein interfaceComparator<Object>- Overrides:
comparein classPO- Parameters:
o1- Object 1o2- Object 2- Returns:
- -1 if o1 < o2
-
compareTo
Comparador necessário pois os impostos do tipo Substituição Tributária precisam ser calculados por último.- Specified by:
compareToin interfaceComparable
-
copy
Copia os impostos para um novo TL -
toString
To String- Overrides:
toStringin classX_LBR_TaxLine- Returns:
- String representation
-