Package org.compiere.model
Class X_C_PaymentTerm
java.lang.Object
org.compiere.model.PO
org.compiere.model.X_C_PaymentTerm
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_C_PaymentTerm
,I_Persistent
,Evaluatee
- Direct Known Subclasses:
MPaymentTerm
Generated Model for C_PaymentTerm
- Version:
- Release 11 - $Id$
- Author:
- iDempiere (generated)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
NetDay AD_Reference_ID=167static final String
Friday = 5static final String
Monday = 1static final String
Saturday = 6static final String
Sunday = 7static final String
Thursday = 4static final String
Tuesday = 2static final String
Wednesday = 3static final int
PaymentTermUsage AD_Reference_ID=53382static final String
Both = Bstatic final String
Purchases = Pstatic final String
Sales = SFields 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_PaymentTerm
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AfterDelivery, COLUMNNAME_C_PaymentTerm_ID, COLUMNNAME_C_PaymentTerm_UU, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_Description, COLUMNNAME_Discount, COLUMNNAME_Discount2, COLUMNNAME_DiscountDays, COLUMNNAME_DiscountDays2, COLUMNNAME_DocumentNote, COLUMNNAME_FixMonthCutoff, COLUMNNAME_FixMonthDay, COLUMNNAME_FixMonthOffset, COLUMNNAME_GraceDays, COLUMNNAME_IsActive, COLUMNNAME_IsDefault, COLUMNNAME_IsDueFixed, COLUMNNAME_IsNextBusinessDay, COLUMNNAME_IsValid, COLUMNNAME_Name, COLUMNNAME_NetDay, COLUMNNAME_NetDays, COLUMNNAME_PaymentTermUsage, COLUMNNAME_Processing, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_Value, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorsConstructorDescriptionX_C_PaymentTerm
(Properties ctx, int C_PaymentTerm_ID, String trxName) Standard ConstructorX_C_PaymentTerm
(Properties ctx, int C_PaymentTerm_ID, String trxName, String... virtualColumns) Standard ConstructorX_C_PaymentTerm
(Properties ctx, String C_PaymentTerm_UU, String trxName) Standard ConstructorX_C_PaymentTerm
(Properties ctx, String C_PaymentTerm_UU, String trxName, String... virtualColumns) Standard ConstructorX_C_PaymentTerm
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected int
AccessLevelint
Get Payment Term.Get C_PaymentTerm_UU.Get Description.Get Discount %.Get Discount 2 %.int
Get Discount Days.int
Get Discount Days 2.Get Document Note.int
Get Fix month cutoff.int
Get Fix month day.int
Get Fix month offset.int
Get Grace Days.Get Record ID/ColumnNamegetName()
Get Name.Get Net Day.int
Get Net Days.Get Payment Term Usage.getValue()
Get Search Key.protected POInfo
initPO
(Properties ctx) Load Meta Databoolean
Get After Delivery.boolean
Get Default.boolean
Get Fixed due date.boolean
Get Next Business Day.boolean
Get Process Now.boolean
isValid()
Get Valid.void
setAfterDelivery
(boolean AfterDelivery) Set After Delivery.void
setC_PaymentTerm_ID
(int C_PaymentTerm_ID) Set Payment Term.void
setC_PaymentTerm_UU
(String C_PaymentTerm_UU) Set C_PaymentTerm_UU.void
setDescription
(String Description) Set Description.void
setDiscount
(BigDecimal Discount) Set Discount %.void
setDiscount2
(BigDecimal Discount2) Set Discount 2 %.void
setDiscountDays
(int DiscountDays) Set Discount Days.void
setDiscountDays2
(int DiscountDays2) Set Discount Days 2.void
setDocumentNote
(String DocumentNote) Set Document Note.void
setFixMonthCutoff
(int FixMonthCutoff) Set Fix month cutoff.void
setFixMonthDay
(int FixMonthDay) Set Fix month day.void
setFixMonthOffset
(int FixMonthOffset) Set Fix month offset.void
setGraceDays
(int GraceDays) Set Grace Days.void
setIsDefault
(boolean IsDefault) Set Default.void
setIsDueFixed
(boolean IsDueFixed) Set Fixed due date.void
setIsNextBusinessDay
(boolean IsNextBusinessDay) Set Next Business Day.void
setIsValid
(boolean IsValid) Set Valid.void
Set Name.void
Set Net Day.void
setNetDays
(int NetDays) Set Net Days.void
setPaymentTermUsage
(String PaymentTermUsage) Set Payment Term Usage.void
setProcessing
(boolean Processing) Set Process Now.void
Set Search Key.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_PaymentTerm
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
-
Field Details
-
NETDAY_AD_Reference_ID
public static final int NETDAY_AD_Reference_IDNetDay AD_Reference_ID=167- See Also:
-
NETDAY_Monday
Monday = 1- See Also:
-
NETDAY_Tuesday
Tuesday = 2- See Also:
-
NETDAY_Wednesday
Wednesday = 3- See Also:
-
NETDAY_Thursday
Thursday = 4- See Also:
-
NETDAY_Friday
Friday = 5- See Also:
-
NETDAY_Saturday
Saturday = 6- See Also:
-
NETDAY_Sunday
Sunday = 7- See Also:
-
PAYMENTTERMUSAGE_AD_Reference_ID
public static final int PAYMENTTERMUSAGE_AD_Reference_IDPaymentTermUsage AD_Reference_ID=53382- See Also:
-
PAYMENTTERMUSAGE_Both
Both = B- See Also:
-
PAYMENTTERMUSAGE_Purchases
Purchases = P- See Also:
-
PAYMENTTERMUSAGE_Sales
Sales = S- See Also:
-
-
Constructor Details
-
X_C_PaymentTerm
Standard Constructor -
X_C_PaymentTerm
public X_C_PaymentTerm(Properties ctx, int C_PaymentTerm_ID, String trxName, String... virtualColumns) Standard Constructor -
X_C_PaymentTerm
Standard Constructor -
X_C_PaymentTerm
public X_C_PaymentTerm(Properties ctx, String C_PaymentTerm_UU, String trxName, String... virtualColumns) Standard Constructor -
X_C_PaymentTerm
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 -
setAfterDelivery
public void setAfterDelivery(boolean AfterDelivery) Set After Delivery.- Specified by:
setAfterDelivery
in interfaceI_C_PaymentTerm
- Parameters:
AfterDelivery
- Due after delivery rather than after invoicing
-
isAfterDelivery
public boolean isAfterDelivery()Get After Delivery.- Specified by:
isAfterDelivery
in interfaceI_C_PaymentTerm
- Returns:
- Due after delivery rather than after invoicing
-
setC_PaymentTerm_ID
public void setC_PaymentTerm_ID(int C_PaymentTerm_ID) Set Payment Term.- Specified by:
setC_PaymentTerm_ID
in interfaceI_C_PaymentTerm
- 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_PaymentTerm
- Returns:
- The terms of Payment (timing, discount)
-
setC_PaymentTerm_UU
Set C_PaymentTerm_UU.- Specified by:
setC_PaymentTerm_UU
in interfaceI_C_PaymentTerm
- Parameters:
C_PaymentTerm_UU
- C_PaymentTerm_UU
-
getC_PaymentTerm_UU
Get C_PaymentTerm_UU.- Specified by:
getC_PaymentTerm_UU
in interfaceI_C_PaymentTerm
- Returns:
- C_PaymentTerm_UU
-
setDescription
Set Description.- Specified by:
setDescription
in interfaceI_C_PaymentTerm
- Parameters:
Description
- Optional short description of the record
-
getDescription
Get Description.- Specified by:
getDescription
in interfaceI_C_PaymentTerm
- Returns:
- Optional short description of the record
-
setDiscount
Set Discount %.- Specified by:
setDiscount
in interfaceI_C_PaymentTerm
- Parameters:
Discount
- Discount in percent
-
getDiscount
Get Discount %.- Specified by:
getDiscount
in interfaceI_C_PaymentTerm
- Returns:
- Discount in percent
-
setDiscount2
Set Discount 2 %.- Specified by:
setDiscount2
in interfaceI_C_PaymentTerm
- Parameters:
Discount2
- Discount in percent
-
getDiscount2
Get Discount 2 %.- Specified by:
getDiscount2
in interfaceI_C_PaymentTerm
- Returns:
- Discount in percent
-
setDiscountDays
public void setDiscountDays(int DiscountDays) Set Discount Days.- Specified by:
setDiscountDays
in interfaceI_C_PaymentTerm
- Parameters:
DiscountDays
- Number of days from invoice date to be eligible for discount
-
getDiscountDays
public int getDiscountDays()Get Discount Days.- Specified by:
getDiscountDays
in interfaceI_C_PaymentTerm
- Returns:
- Number of days from invoice date to be eligible for discount
-
setDiscountDays2
public void setDiscountDays2(int DiscountDays2) Set Discount Days 2.- Specified by:
setDiscountDays2
in interfaceI_C_PaymentTerm
- Parameters:
DiscountDays2
- Number of days from invoice date to be eligible for discount
-
getDiscountDays2
public int getDiscountDays2()Get Discount Days 2.- Specified by:
getDiscountDays2
in interfaceI_C_PaymentTerm
- Returns:
- Number of days from invoice date to be eligible for discount
-
setDocumentNote
Set Document Note.- Specified by:
setDocumentNote
in interfaceI_C_PaymentTerm
- Parameters:
DocumentNote
- Additional information for a Document
-
getDocumentNote
Get Document Note.- Specified by:
getDocumentNote
in interfaceI_C_PaymentTerm
- Returns:
- Additional information for a Document
-
setFixMonthCutoff
public void setFixMonthCutoff(int FixMonthCutoff) Set Fix month cutoff.- Specified by:
setFixMonthCutoff
in interfaceI_C_PaymentTerm
- Parameters:
FixMonthCutoff
- Last day to include for next due date
-
getFixMonthCutoff
public int getFixMonthCutoff()Get Fix month cutoff.- Specified by:
getFixMonthCutoff
in interfaceI_C_PaymentTerm
- Returns:
- Last day to include for next due date
-
setFixMonthDay
public void setFixMonthDay(int FixMonthDay) Set Fix month day.- Specified by:
setFixMonthDay
in interfaceI_C_PaymentTerm
- Parameters:
FixMonthDay
- Day of the month of the due date
-
getFixMonthDay
public int getFixMonthDay()Get Fix month day.- Specified by:
getFixMonthDay
in interfaceI_C_PaymentTerm
- Returns:
- Day of the month of the due date
-
setFixMonthOffset
public void setFixMonthOffset(int FixMonthOffset) Set Fix month offset.- Specified by:
setFixMonthOffset
in interfaceI_C_PaymentTerm
- Parameters:
FixMonthOffset
- Number of months (0=same, 1=following)
-
getFixMonthOffset
public int getFixMonthOffset()Get Fix month offset.- Specified by:
getFixMonthOffset
in interfaceI_C_PaymentTerm
- Returns:
- Number of months (0=same, 1=following)
-
setGraceDays
public void setGraceDays(int GraceDays) Set Grace Days.- Specified by:
setGraceDays
in interfaceI_C_PaymentTerm
- Parameters:
GraceDays
- Days after due date to send first dunning letter
-
getGraceDays
public int getGraceDays()Get Grace Days.- Specified by:
getGraceDays
in interfaceI_C_PaymentTerm
- Returns:
- Days after due date to send first dunning letter
-
setIsDefault
public void setIsDefault(boolean IsDefault) Set Default.- Specified by:
setIsDefault
in interfaceI_C_PaymentTerm
- Parameters:
IsDefault
- Default value
-
isDefault
public boolean isDefault()Get Default.- Specified by:
isDefault
in interfaceI_C_PaymentTerm
- Returns:
- Default value
-
setIsDueFixed
public void setIsDueFixed(boolean IsDueFixed) Set Fixed due date.- Specified by:
setIsDueFixed
in interfaceI_C_PaymentTerm
- Parameters:
IsDueFixed
- Payment is due on a fixed date
-
isDueFixed
public boolean isDueFixed()Get Fixed due date.- Specified by:
isDueFixed
in interfaceI_C_PaymentTerm
- Returns:
- Payment is due on a fixed date
-
setIsNextBusinessDay
public void setIsNextBusinessDay(boolean IsNextBusinessDay) Set Next Business Day.- Specified by:
setIsNextBusinessDay
in interfaceI_C_PaymentTerm
- Parameters:
IsNextBusinessDay
- Payment due on the next business day
-
isNextBusinessDay
public boolean isNextBusinessDay()Get Next Business Day.- Specified by:
isNextBusinessDay
in interfaceI_C_PaymentTerm
- Returns:
- Payment due on the next business day
-
setIsValid
public void setIsValid(boolean IsValid) Set Valid.- Specified by:
setIsValid
in interfaceI_C_PaymentTerm
- Parameters:
IsValid
- Element is valid
-
isValid
public boolean isValid()Get Valid.- Specified by:
isValid
in interfaceI_C_PaymentTerm
- Returns:
- Element is valid
-
setName
Set Name.- Specified by:
setName
in interfaceI_C_PaymentTerm
- Parameters:
Name
- Alphanumeric identifier of the entity
-
getName
Get Name.- Specified by:
getName
in interfaceI_C_PaymentTerm
- Returns:
- Alphanumeric identifier of the entity
-
getKeyNamePair
Get Record ID/ColumnName- Returns:
- ID/ColumnName pair
-
setNetDay
Set Net Day.- Specified by:
setNetDay
in interfaceI_C_PaymentTerm
- Parameters:
NetDay
- Day when payment is due net
-
getNetDay
Get Net Day.- Specified by:
getNetDay
in interfaceI_C_PaymentTerm
- Returns:
- Day when payment is due net
-
setNetDays
public void setNetDays(int NetDays) Set Net Days.- Specified by:
setNetDays
in interfaceI_C_PaymentTerm
- Parameters:
NetDays
- Net Days in which payment is due
-
getNetDays
public int getNetDays()Get Net Days.- Specified by:
getNetDays
in interfaceI_C_PaymentTerm
- Returns:
- Net Days in which payment is due
-
setPaymentTermUsage
Set Payment Term Usage.- Specified by:
setPaymentTermUsage
in interfaceI_C_PaymentTerm
- Parameters:
PaymentTermUsage
- Payment term usage indicates if this payment term is used for sales, purchases or both.
-
getPaymentTermUsage
Get Payment Term Usage.- Specified by:
getPaymentTermUsage
in interfaceI_C_PaymentTerm
- Returns:
- Payment term usage indicates if this payment term is used for sales, purchases or both.
-
setProcessing
public void setProcessing(boolean Processing) Set Process Now.- Specified by:
setProcessing
in interfaceI_C_PaymentTerm
- Parameters:
Processing
- Process Now
-
isProcessing
public boolean isProcessing()Get Process Now.- Specified by:
isProcessing
in interfaceI_C_PaymentTerm
- Returns:
- Process Now
-
setValue
Set Search Key.- Specified by:
setValue
in interfaceI_C_PaymentTerm
- Parameters:
Value
- Search key for the record in the format required - must be unique
-
getValue
Get Search Key.- Specified by:
getValue
in interfaceI_C_PaymentTerm
- Returns:
- Search key for the record in the format required - must be unique
-