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
public class X_C_PaymentTerm extends PO implements I_C_PaymentTerm, I_Persistent
Generated Model for C_PaymentTerm- Version:
- Release 9 - $Id$
- Author:
- iDempiere (generated)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
NETDAY_AD_Reference_ID
NetDay AD_Reference_ID=167static String
NETDAY_Friday
Friday = 5static String
NETDAY_Monday
Monday = 1static String
NETDAY_Saturday
Saturday = 6static String
NETDAY_Sunday
Sunday = 7static String
NETDAY_Thursday
Thursday = 4static String
NETDAY_Tuesday
Tuesday = 2static String
NETDAY_Wednesday
Wednesday = 3static int
PAYMENTTERMUSAGE_AD_Reference_ID
PaymentTermUsage AD_Reference_ID=53382static String
PAYMENTTERMUSAGE_Both
Both = Bstatic String
PAYMENTTERMUSAGE_Purchases
Purchases = Pstatic String
PAYMENTTERMUSAGE_Sales
Sales = S-
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, 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
Constructors Constructor Description X_C_PaymentTerm(Properties ctx, int C_PaymentTerm_ID, String trxName)
Standard ConstructorX_C_PaymentTerm(Properties ctx, ResultSet rs, String trxName)
Load Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
get_AccessLevel()
AccessLevelint
getC_PaymentTerm_ID()
Get Payment Term.String
getC_PaymentTerm_UU()
Get C_PaymentTerm_UU.String
getDescription()
Get Description.BigDecimal
getDiscount()
Get Discount %.BigDecimal
getDiscount2()
Get Discount 2 %.int
getDiscountDays()
Get Discount Days.int
getDiscountDays2()
Get Discount Days 2.String
getDocumentNote()
Get Document Note.int
getFixMonthCutoff()
Get Fix month cutoff.int
getFixMonthDay()
Get Fix month day.int
getFixMonthOffset()
Get Fix month offset.int
getGraceDays()
Get Grace Days.KeyNamePair
getKeyNamePair()
Get Record ID/ColumnNameString
getName()
Get Name.String
getNetDay()
Get Net Day.int
getNetDays()
Get Net Days.String
getPaymentTermUsage()
Get Payment Term Usage.String
getValue()
Get Search Key.protected POInfo
initPO(Properties ctx)
Load Meta Databoolean
isAfterDelivery()
Get After Delivery.boolean
isDefault()
Get Default.boolean
isDueFixed()
Get Fixed due date.boolean
isNextBusinessDay()
Get Next Business Day.boolean
isProcessing()
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
setName(String Name)
Set Name.void
setNetDay(String NetDay)
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
setValue(String Value)
Set Search Key.String
toString()
String representation-
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, 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_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, 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, load, loadByUU, loadComplete, loadDefaults, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, 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, 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 Detail
-
NETDAY_AD_Reference_ID
public static final int NETDAY_AD_Reference_ID
NetDay AD_Reference_ID=167- See Also:
- Constant Field Values
-
NETDAY_Monday
public static final String NETDAY_Monday
Monday = 1- See Also:
- Constant Field Values
-
NETDAY_Tuesday
public static final String NETDAY_Tuesday
Tuesday = 2- See Also:
- Constant Field Values
-
NETDAY_Wednesday
public static final String NETDAY_Wednesday
Wednesday = 3- See Also:
- Constant Field Values
-
NETDAY_Thursday
public static final String NETDAY_Thursday
Thursday = 4- See Also:
- Constant Field Values
-
NETDAY_Friday
public static final String NETDAY_Friday
Friday = 5- See Also:
- Constant Field Values
-
NETDAY_Saturday
public static final String NETDAY_Saturday
Saturday = 6- See Also:
- Constant Field Values
-
NETDAY_Sunday
public static final String NETDAY_Sunday
Sunday = 7- See Also:
- Constant Field Values
-
PAYMENTTERMUSAGE_AD_Reference_ID
public static final int PAYMENTTERMUSAGE_AD_Reference_ID
PaymentTermUsage AD_Reference_ID=53382- See Also:
- Constant Field Values
-
PAYMENTTERMUSAGE_Both
public static final String PAYMENTTERMUSAGE_Both
Both = B- See Also:
- Constant Field Values
-
PAYMENTTERMUSAGE_Purchases
public static final String PAYMENTTERMUSAGE_Purchases
Purchases = P- See Also:
- Constant Field Values
-
PAYMENTTERMUSAGE_Sales
public static final String PAYMENTTERMUSAGE_Sales
Sales = S- See Also:
- Constant Field Values
-
-
Constructor Detail
-
X_C_PaymentTerm
public X_C_PaymentTerm(Properties ctx, int C_PaymentTerm_ID, String trxName)
Standard Constructor
-
X_C_PaymentTerm
public X_C_PaymentTerm(Properties ctx, ResultSet rs, String trxName)
Load Constructor
-
-
Method Detail
-
get_AccessLevel
protected int get_AccessLevel()
AccessLevel- Specified by:
get_AccessLevel
in classPO
- Returns:
- 3 - Client - Org
-
initPO
protected POInfo initPO(Properties ctx)
Load Meta Data
-
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
public void setC_PaymentTerm_UU(String C_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
public String getC_PaymentTerm_UU()
Get C_PaymentTerm_UU.- Specified by:
getC_PaymentTerm_UU
in interfaceI_C_PaymentTerm
- Returns:
- C_PaymentTerm_UU
-
setDescription
public void setDescription(String Description)
Set Description.- Specified by:
setDescription
in interfaceI_C_PaymentTerm
- Parameters:
Description
- Optional short description of the record
-
getDescription
public String getDescription()
Get Description.- Specified by:
getDescription
in interfaceI_C_PaymentTerm
- Returns:
- Optional short description of the record
-
setDiscount
public void setDiscount(BigDecimal Discount)
Set Discount %.- Specified by:
setDiscount
in interfaceI_C_PaymentTerm
- Parameters:
Discount
- Discount in percent
-
getDiscount
public BigDecimal getDiscount()
Get Discount %.- Specified by:
getDiscount
in interfaceI_C_PaymentTerm
- Returns:
- Discount in percent
-
setDiscount2
public void setDiscount2(BigDecimal Discount2)
Set Discount 2 %.- Specified by:
setDiscount2
in interfaceI_C_PaymentTerm
- Parameters:
Discount2
- Discount in percent
-
getDiscount2
public BigDecimal 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
public void setDocumentNote(String DocumentNote)
Set Document Note.- Specified by:
setDocumentNote
in interfaceI_C_PaymentTerm
- Parameters:
DocumentNote
- Additional information for a Document
-
getDocumentNote
public String 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
public void setName(String Name)
Set Name.- Specified by:
setName
in interfaceI_C_PaymentTerm
- Parameters:
Name
- Alphanumeric identifier of the entity
-
getName
public String getName()
Get Name.- Specified by:
getName
in interfaceI_C_PaymentTerm
- Returns:
- Alphanumeric identifier of the entity
-
getKeyNamePair
public KeyNamePair getKeyNamePair()
Get Record ID/ColumnName- Returns:
- ID/ColumnName pair
-
setNetDay
public void setNetDay(String NetDay)
Set Net Day.- Specified by:
setNetDay
in interfaceI_C_PaymentTerm
- Parameters:
NetDay
- Day when payment is due net
-
getNetDay
public String 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
public void setPaymentTermUsage(String PaymentTermUsage)
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
public String 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
public void setValue(String Value)
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
public String getValue()
Get Search Key.- Specified by:
getValue
in interfaceI_C_PaymentTerm
- Returns:
- Search key for the record in the format required - must be unique
-
-