Package org.compiere.model
Class X_C_Withholding
java.lang.Object
org.compiere.model.PO
org.compiere.model.X_C_Withholding
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_C_Withholding
,I_Persistent
,Evaluatee
- Direct Known Subclasses:
MWithholding
Generated Model for C_Withholding
- Version:
- Release 11 - $Id$
- Author:
- iDempiere (generated)
- 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_ID
Fields inherited from interface org.compiere.model.I_C_Withholding
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_Beneficiary, COLUMNNAME_C_PaymentTerm_ID, COLUMNNAME_C_Withholding_ID, COLUMNNAME_C_Withholding_UU, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_Description, COLUMNNAME_FixAmt, COLUMNNAME_IsActive, COLUMNNAME_IsPaidTo3Party, COLUMNNAME_IsPercentWithholding, COLUMNNAME_IsTaxProrated, COLUMNNAME_IsTaxWithholding, COLUMNNAME_MaxAmt, COLUMNNAME_MinAmt, COLUMNNAME_Name, COLUMNNAME_Percent, COLUMNNAME_ThresholdMax, COLUMNNAME_Thresholdmin, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionX_C_Withholding
(Properties ctx, int C_Withholding_ID, String trxName) Standard ConstructorX_C_Withholding
(Properties ctx, int C_Withholding_ID, String trxName, String... virtualColumns) Standard ConstructorX_C_Withholding
(Properties ctx, String C_Withholding_UU, String trxName) Standard ConstructorX_C_Withholding
(Properties ctx, String C_Withholding_UU, String trxName, String... virtualColumns) Standard ConstructorX_C_Withholding
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected int
AccessLevelint
Get Beneficiary.int
Get Payment Term.int
Get Withholding.Get C_Withholding_UU.Get Description.Get Fix amount.Get Record ID/ColumnNameGet Max Amount.Get Min Amount.getName()
Get Name.Get Percent.Get Threshold max.Get Threshold min.protected POInfo
initPO
(Properties ctx) Load Meta Databoolean
Get Paid to third party.boolean
Get Percent withholding.boolean
Get Prorate tax.boolean
Get Tax withholding.void
setBeneficiary
(int Beneficiary) Set Beneficiary.void
setC_PaymentTerm_ID
(int C_PaymentTerm_ID) Set Payment Term.void
setC_Withholding_ID
(int C_Withholding_ID) Set Withholding.void
setC_Withholding_UU
(String C_Withholding_UU) Set C_Withholding_UU.void
setDescription
(String Description) Set Description.void
setFixAmt
(BigDecimal FixAmt) Set Fix amount.void
setIsPaidTo3Party
(boolean IsPaidTo3Party) Set Paid to third party.void
setIsPercentWithholding
(boolean IsPercentWithholding) Set Percent withholding.void
setIsTaxProrated
(boolean IsTaxProrated) Set Prorate tax.void
setIsTaxWithholding
(boolean IsTaxWithholding) Set Tax withholding.void
setMaxAmt
(BigDecimal MaxAmt) Set Max Amount.void
setMinAmt
(BigDecimal MinAmt) Set Min Amount.void
Set Name.void
setPercent
(BigDecimal Percent) Set Percent.void
setThresholdMax
(BigDecimal ThresholdMax) Set Threshold max.void
setThresholdmin
(BigDecimal Thresholdmin) Set Threshold min.toString()
String representationMethods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, 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.compiere.model.I_C_Withholding
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
-
X_C_Withholding
Standard Constructor -
X_C_Withholding
public X_C_Withholding(Properties ctx, int C_Withholding_ID, String trxName, String... virtualColumns) Standard Constructor -
X_C_Withholding
Standard Constructor -
X_C_Withholding
public X_C_Withholding(Properties ctx, String C_Withholding_UU, String trxName, String... virtualColumns) Standard Constructor -
X_C_Withholding
Load Constructor
-
-
Method Details
-
get_AccessLevel
protected int get_AccessLevel()AccessLevel- Specified by:
get_AccessLevel
in classPO
- Returns:
- 3 - Client - Org
-
initPO
Load Meta Data -
toString
Description copied from class:PO
String representation -
getBenefici
- Specified by:
getBenefici
in interfaceI_C_Withholding
- Throws:
RuntimeException
-
setBeneficiary
public void setBeneficiary(int Beneficiary) Set Beneficiary.- Specified by:
setBeneficiary
in interfaceI_C_Withholding
- Parameters:
Beneficiary
- Business Partner to whom payment is made
-
getBeneficiary
public int getBeneficiary()Get Beneficiary.- Specified by:
getBeneficiary
in interfaceI_C_Withholding
- Returns:
- Business Partner to whom payment is made
-
getC_PaymentTerm
- Specified by:
getC_PaymentTerm
in interfaceI_C_Withholding
- Throws:
RuntimeException
-
setC_PaymentTerm_ID
public void setC_PaymentTerm_ID(int C_PaymentTerm_ID) Set Payment Term.- Specified by:
setC_PaymentTerm_ID
in interfaceI_C_Withholding
- Parameters:
C_PaymentTerm_ID
- The terms of Payment (timing, discount)
-
getC_PaymentTerm_ID
public int getC_PaymentTerm_ID()Get Payment Term.- Specified by:
getC_PaymentTerm_ID
in interfaceI_C_Withholding
- Returns:
- The terms of Payment (timing, discount)
-
setC_Withholding_ID
public void setC_Withholding_ID(int C_Withholding_ID) Set Withholding.- Specified by:
setC_Withholding_ID
in interfaceI_C_Withholding
- Parameters:
C_Withholding_ID
- Withholding type defined
-
getC_Withholding_ID
public int getC_Withholding_ID()Get Withholding.- Specified by:
getC_Withholding_ID
in interfaceI_C_Withholding
- Returns:
- Withholding type defined
-
setC_Withholding_UU
Set C_Withholding_UU.- Specified by:
setC_Withholding_UU
in interfaceI_C_Withholding
- Parameters:
C_Withholding_UU
- C_Withholding_UU
-
getC_Withholding_UU
Get C_Withholding_UU.- Specified by:
getC_Withholding_UU
in interfaceI_C_Withholding
- Returns:
- C_Withholding_UU
-
setDescription
Set Description.- Specified by:
setDescription
in interfaceI_C_Withholding
- Parameters:
Description
- Optional short description of the record
-
getDescription
Get Description.- Specified by:
getDescription
in interfaceI_C_Withholding
- Returns:
- Optional short description of the record
-
setFixAmt
Set Fix amount.- Specified by:
setFixAmt
in interfaceI_C_Withholding
- Parameters:
FixAmt
- Fix amounted amount to be levied or paid
-
getFixAmt
Get Fix amount.- Specified by:
getFixAmt
in interfaceI_C_Withholding
- Returns:
- Fix amounted amount to be levied or paid
-
setIsPaidTo3Party
public void setIsPaidTo3Party(boolean IsPaidTo3Party) Set Paid to third party.- Specified by:
setIsPaidTo3Party
in interfaceI_C_Withholding
- Parameters:
IsPaidTo3Party
- Amount paid to someone other than the Business Partner
-
isPaidTo3Party
public boolean isPaidTo3Party()Get Paid to third party.- Specified by:
isPaidTo3Party
in interfaceI_C_Withholding
- Returns:
- Amount paid to someone other than the Business Partner
-
setIsPercentWithholding
public void setIsPercentWithholding(boolean IsPercentWithholding) Set Percent withholding.- Specified by:
setIsPercentWithholding
in interfaceI_C_Withholding
- Parameters:
IsPercentWithholding
- Withholding amount is a percentage of the invoice amount
-
isPercentWithholding
public boolean isPercentWithholding()Get Percent withholding.- Specified by:
isPercentWithholding
in interfaceI_C_Withholding
- Returns:
- Withholding amount is a percentage of the invoice amount
-
setIsTaxProrated
public void setIsTaxProrated(boolean IsTaxProrated) Set Prorate tax.- Specified by:
setIsTaxProrated
in interfaceI_C_Withholding
- Parameters:
IsTaxProrated
- Tax is Prorated
-
isTaxProrated
public boolean isTaxProrated()Get Prorate tax.- Specified by:
isTaxProrated
in interfaceI_C_Withholding
- Returns:
- Tax is Prorated
-
setIsTaxWithholding
public void setIsTaxWithholding(boolean IsTaxWithholding) Set Tax withholding.- Specified by:
setIsTaxWithholding
in interfaceI_C_Withholding
- Parameters:
IsTaxWithholding
- This is a tax related withholding
-
isTaxWithholding
public boolean isTaxWithholding()Get Tax withholding.- Specified by:
isTaxWithholding
in interfaceI_C_Withholding
- Returns:
- This is a tax related withholding
-
setMaxAmt
Set Max Amount.- Specified by:
setMaxAmt
in interfaceI_C_Withholding
- Parameters:
MaxAmt
- Maximum Amount in invoice currency
-
getMaxAmt
Get Max Amount.- Specified by:
getMaxAmt
in interfaceI_C_Withholding
- Returns:
- Maximum Amount in invoice currency
-
setMinAmt
Set Min Amount.- Specified by:
setMinAmt
in interfaceI_C_Withholding
- Parameters:
MinAmt
- Minimum Amount in invoice currency
-
getMinAmt
Get Min Amount.- Specified by:
getMinAmt
in interfaceI_C_Withholding
- Returns:
- Minimum Amount in invoice currency
-
setName
Set Name.- Specified by:
setName
in interfaceI_C_Withholding
- Parameters:
Name
- Alphanumeric identifier of the entity
-
getName
Get Name.- Specified by:
getName
in interfaceI_C_Withholding
- Returns:
- Alphanumeric identifier of the entity
-
getKeyNamePair
Get Record ID/ColumnName- Returns:
- ID/ColumnName pair
-
setPercent
Set Percent.- Specified by:
setPercent
in interfaceI_C_Withholding
- Parameters:
Percent
- Percentage
-
getPercent
Get Percent.- Specified by:
getPercent
in interfaceI_C_Withholding
- Returns:
- Percentage
-
setThresholdMax
Set Threshold max.- Specified by:
setThresholdMax
in interfaceI_C_Withholding
- Parameters:
ThresholdMax
- Maximum gross amount for withholding calculation (0=no limit)
-
getThresholdMax
Get Threshold max.- Specified by:
getThresholdMax
in interfaceI_C_Withholding
- Returns:
- Maximum gross amount for withholding calculation (0=no limit)
-
setThresholdmin
Set Threshold min.- Specified by:
setThresholdmin
in interfaceI_C_Withholding
- Parameters:
Thresholdmin
- Minimum gross amount for withholding calculation
-
getThresholdmin
Get Threshold min.- Specified by:
getThresholdmin
in interfaceI_C_Withholding
- Returns:
- Minimum gross amount for withholding calculation
-