Package org.compiere.model
Class MBPartner
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_C_BPartner
-
- org.compiere.model.MBPartner
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_C_BPartner
,I_Persistent
,Evaluatee
,ImmutablePOSupport
public class MBPartner extends X_C_BPartner implements ImmutablePOSupport
Business Partner Model- Version:
- $Id: MBPartner.java,v 1.5 2006/09/23 19:38:07 comdivision Exp $
- Author:
- Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
- BF [ 1568774 ] Walk-In BP: invalid created/updated values
- BF [ 1817752 ] MBPartner.getLocations should return only active one, Armen Rizal, GOODWILL CONSULT
- BF [ 2041226 ] BP Open Balance should count only Completed Invoice
- BF [ 2498949 ] BP Get Not Invoiced Shipment Value return null
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected MBPBankAccount[]
m_accounts
BP Bank Accountsprotected MUser[]
m_contacts
Usersprotected MBPGroup
m_group
BP Groupprotected MBPartnerLocation[]
m_locations
Addressedprotected Integer
m_primaryAD_User_ID
Prim Userprotected Integer
m_primaryC_BPartner_Location_ID
Prim Address-
Fields inherited from class org.compiere.model.X_C_BPartner
AD_LANGUAGE_AD_Reference_ID, DELIVERYRULE_AD_Reference_ID, DELIVERYRULE_AfterPayment, DELIVERYRULE_Availability, DELIVERYRULE_CompleteLine, DELIVERYRULE_CompleteOrder, DELIVERYRULE_Force, DELIVERYRULE_Manual, DELIVERYVIARULE_AD_Reference_ID, DELIVERYVIARULE_Delivery, DELIVERYVIARULE_Pickup, DELIVERYVIARULE_Shipper, FREIGHTCOSTRULE_AD_Reference_ID, FREIGHTCOSTRULE_Calculated, FREIGHTCOSTRULE_FixPrice, FREIGHTCOSTRULE_FreightIncluded, FREIGHTCOSTRULE_Line, INVOICERULE_AD_Reference_ID, INVOICERULE_AfterDelivery, INVOICERULE_AfterOrderDelivered, INVOICERULE_CustomerScheduleAfterDelivery, INVOICERULE_Immediate, PAYMENTRULE_AD_Reference_ID, PAYMENTRULE_Cash, PAYMENTRULE_Check, PAYMENTRULE_CreditCard, PAYMENTRULE_DirectDebit, PAYMENTRULE_DirectDeposit, PAYMENTRULE_MixedPOSPayment, PAYMENTRULE_OnCredit, PAYMENTRULEPO_AD_Reference_ID, PAYMENTRULEPO_Cash, PAYMENTRULEPO_Check, PAYMENTRULEPO_CreditCard, PAYMENTRULEPO_DirectDebit, PAYMENTRULEPO_DirectDeposit, PAYMENTRULEPO_MixedPOSPayment, PAYMENTRULEPO_OnCredit, SOCREDITSTATUS_AD_Reference_ID, SOCREDITSTATUS_CreditHold, SOCREDITSTATUS_CreditOK, SOCREDITSTATUS_CreditStop, SOCREDITSTATUS_CreditWatch, SOCREDITSTATUS_NoCreditCheck
-
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_BPartner
accessLevel, COLUMNNAME_AcqusitionCost, COLUMNNAME_ActualLifeTimeValue, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Language, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_OrgBP_ID, COLUMNNAME_BPartner_Parent_ID, COLUMNNAME_C_BP_Group_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_BPartner_UU, COLUMNNAME_C_Dunning_ID, COLUMNNAME_C_Greeting_ID, COLUMNNAME_C_InvoiceSchedule_ID, COLUMNNAME_C_PaymentTerm_ID, COLUMNNAME_C_TaxGroup_ID, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_CustomerProfileID, COLUMNNAME_Default1099Box_ID, COLUMNNAME_DeliveryRule, COLUMNNAME_DeliveryViaRule, COLUMNNAME_Description, COLUMNNAME_DocumentCopies, COLUMNNAME_DunningGrace, COLUMNNAME_DUNS, COLUMNNAME_FirstSale, COLUMNNAME_FlatDiscount, COLUMNNAME_FreightCostRule, COLUMNNAME_Invoice_PrintFormat_ID, COLUMNNAME_InvoiceRule, COLUMNNAME_Is1099Vendor, COLUMNNAME_IsActive, COLUMNNAME_IsCustomer, COLUMNNAME_IsDiscountPrinted, COLUMNNAME_IsEmployee, COLUMNNAME_IsManufacturer, COLUMNNAME_IsOneTime, COLUMNNAME_IsPOTaxExempt, COLUMNNAME_IsProspect, COLUMNNAME_IsSalesRep, COLUMNNAME_IsSummary, COLUMNNAME_IsTaxExempt, COLUMNNAME_IsVendor, COLUMNNAME_Logo_ID, COLUMNNAME_M_DiscountSchema_ID, COLUMNNAME_M_PriceList_ID, COLUMNNAME_NAICS, COLUMNNAME_Name, COLUMNNAME_Name2, COLUMNNAME_NumberEmployees, COLUMNNAME_PaymentRule, COLUMNNAME_PaymentRulePO, COLUMNNAME_PO_DiscountSchema_ID, COLUMNNAME_PO_PaymentTerm_ID, COLUMNNAME_PO_PriceList_ID, COLUMNNAME_POReference, COLUMNNAME_PotentialLifeTimeValue, COLUMNNAME_Rating, COLUMNNAME_ReferenceNo, COLUMNNAME_SalesRep_ID, COLUMNNAME_SalesVolume, COLUMNNAME_SendEMail, COLUMNNAME_ShareOfCustomer, COLUMNNAME_ShelfLifeMinPct, COLUMNNAME_SO_CreditLimit, COLUMNNAME_SO_CreditUsed, COLUMNNAME_SO_Description, COLUMNNAME_SOCreditStatus, COLUMNNAME_TaxID, COLUMNNAME_TotalOpenBalance, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_URL, COLUMNNAME_Value, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description MBPartner(Properties ctx)
Constructor for new BPartner from TemplateMBPartner(Properties ctx, int C_BPartner_ID, String trxName)
Default ConstructorMBPartner(Properties ctx, ResultSet rs, String trxName)
Default ConstructorMBPartner(Properties ctx, MBPartner copy)
MBPartner(Properties ctx, MBPartner copy, String trxName)
MBPartner(MBPartner copy)
MBPartner(X_I_BPartner impBP)
Import Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
afterDelete(boolean success)
After Deleteprotected boolean
afterSave(boolean newRecord, boolean success)
After Saveprotected boolean
beforeSave(boolean newRecord)
Before Savestatic MBPartner
get(Properties ctx, int C_BPartner_ID)
Get BPartner with Valuestatic MBPartner
get(Properties ctx, int C_BPartner_ID, String trxName)
Get BPartner with Value in a transactionstatic MBPartner
get(Properties ctx, String Value)
Get BPartner with Valuestatic MBPartner
get(Properties ctx, String Value, String trxName)
Get BPartner with Value in a transactionint
getAD_OrgBP_ID_Int()
Deprecated.MBPBankAccount[]
getBankAccounts(boolean requery)
Get Bank Accountsstatic MBPartner
getBPartnerCashTrx(Properties ctx, int AD_Client_ID)
Get Cash Trx Business PartnerMBPGroup
getBPGroup()
Get BP GroupMUser
getContact(int AD_User_ID)
Get specified or first ContactMUser[]
getContacts(boolean reload)
Get All ContactsBigDecimal
getCreditWatchRatio()
Get Credit Watch Ratiostatic MBPartner
getFirstWithTaxID(Properties ctx, String taxID, String trxName)
Get BPartner with taxID in a transactionMBPartnerLocation
getLocation(int C_BPartner_Location_ID)
Get explicit or first bill LocationMBPartnerLocation[]
getLocations(boolean reload)
Get All Locations (only active)int
getM_DiscountSchema_ID()
Get DiscountSchemaint
getM_PriceList_ID()
Get PriceListstatic BigDecimal
getNotInvoicedAmt(int C_BPartner_ID)
Get Not Invoiced Shipment Valueint
getPO_DiscountSchema_ID()
Get PO DiscountSchemaint
getPO_PriceList_ID()
Get PO PriceListint
getPrimaryAD_User_ID()
Get Primary AD_User_IDMBPartnerLocation
getPrimaryC_BPartner_Location()
Get Primary C_BPartner_Locationint
getPrimaryC_BPartner_Location_ID()
Get Primary C_BPartner_Location_IDString
getSOCreditStatus(BigDecimal additionalAmt)
Get SO CreditStatus with additional amountstatic MBPartner
getTemplate(Properties ctx, int AD_Client_ID)
Get Empty Template Business Partnerprotected boolean
initTemplate(int AD_Client_ID)
Load Default BPartnerboolean
isCreditStopHold()
Credit Status is Stop or Hold.MBPartner
markImmutable()
mark PO as immutableprotected boolean
postDelete()
Executed after the Delete operation is committed in the database.void
setActualLifeTimeValue()
Set Actual Life Time Value from DBvoid
setBPGroup(MBPGroup group)
Get BP Groupvoid
setClientOrg(int AD_Client_ID, int AD_Org_ID)
Set Client/Orgvoid
setPrimaryAD_User_ID(int AD_User_ID)
Set Primary AD_User_IDvoid
setPrimaryC_BPartner_Location_ID(int C_BPartner_Location_ID)
Set Primary C_BPartner_Location_IDvoid
setSOCreditStatus()
Set Credit Statusvoid
setTotalOpenBalance()
Calculate Total Open Balance and SO_CreditUsed.String
toString()
String Representation-
Methods inherited from class org.compiere.model.X_C_BPartner
get_AccessLevel, getAcqusitionCost, getActualLifeTimeValue, getAD_Language, getAD_OrgBP_ID, getBPartner_Parent_ID, getC_BP_Group, getC_BP_Group_ID, getC_BPartner_ID, getC_BPartner_UU, getC_Dunning, getC_Dunning_ID, getC_Greeting, getC_Greeting_ID, getC_InvoiceSchedule, getC_InvoiceSchedule_ID, getC_PaymentTerm, getC_PaymentTerm_ID, getC_TaxGroup, getC_TaxGroup_ID, getCustomerProfileID, getDefault1099Box, getDefault1099Box_ID, getDeliveryRule, getDeliveryViaRule, getDescription, getDocumentCopies, getDunningGrace, getDUNS, getFirstSale, getFlatDiscount, getFreightCostRule, getInvoice_PrintFormat, getInvoice_PrintFormat_ID, getInvoiceRule, getKeyNamePair, getLogo_ID, getM_DiscountSchema, getM_PriceList, getNAICS, getName, getName2, getNumberEmployees, getPaymentRule, getPaymentRulePO, getPO_DiscountSchema, getPO_PaymentTerm, getPO_PaymentTerm_ID, getPO_PriceList, getPOReference, getPotentialLifeTimeValue, getRating, getReferenceNo, getSalesRep, getSalesRep_ID, getSalesVolume, getShareOfCustomer, getShelfLifeMinPct, getSO_CreditLimit, getSO_CreditUsed, getSO_Description, getSOCreditStatus, getTaxID, getTotalOpenBalance, getURL, getValue, initPO, is1099Vendor, isCustomer, isDiscountPrinted, isEmployee, isManufacturer, isOneTime, isPOTaxExempt, isProspect, isSalesRep, isSendEMail, isSummary, isTaxExempt, isVendor, setAcqusitionCost, setActualLifeTimeValue, setAD_Language, setAD_OrgBP_ID, setBPartner_Parent_ID, setC_BP_Group_ID, setC_BPartner_ID, setC_BPartner_UU, setC_Dunning_ID, setC_Greeting_ID, setC_InvoiceSchedule_ID, setC_PaymentTerm_ID, setC_TaxGroup_ID, setCustomerProfileID, setDefault1099Box_ID, setDeliveryRule, setDeliveryViaRule, setDescription, setDocumentCopies, setDunningGrace, setDUNS, setFirstSale, setFlatDiscount, setFreightCostRule, setInvoice_PrintFormat_ID, setInvoiceRule, setIs1099Vendor, setIsCustomer, setIsDiscountPrinted, setIsEmployee, setIsManufacturer, setIsOneTime, setIsPOTaxExempt, setIsProspect, setIsSalesRep, setIsSummary, setIsTaxExempt, setIsVendor, setLogo_ID, setM_DiscountSchema_ID, setM_PriceList_ID, setNAICS, setName, setName2, setNumberEmployees, setPaymentRule, setPaymentRulePO, setPO_DiscountSchema_ID, setPO_PaymentTerm_ID, setPO_PriceList_ID, setPOReference, setPotentialLifeTimeValue, setRating, setReferenceNo, setSalesRep_ID, setSalesVolume, setSendEMail, setShareOfCustomer, setShelfLifeMinPct, setSO_CreditLimit, setSO_CreditUsed, setSO_Description, setSOCreditStatus, setTaxID, setTotalOpenBalance, setURL, setValue
-
Methods inherited from class org.compiere.model.PO
beforeDelete, 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, 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, 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_BPartner
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
-
m_contacts
protected MUser[] m_contacts
Users
-
m_locations
protected MBPartnerLocation[] m_locations
Addressed
-
m_accounts
protected MBPBankAccount[] m_accounts
BP Bank Accounts
-
m_primaryC_BPartner_Location_ID
protected Integer m_primaryC_BPartner_Location_ID
Prim Address
-
m_primaryAD_User_ID
protected Integer m_primaryAD_User_ID
Prim User
-
m_group
protected MBPGroup m_group
BP Group
-
-
Constructor Detail
-
MBPartner
public MBPartner(Properties ctx)
Constructor for new BPartner from Template- Parameters:
ctx
- context
-
MBPartner
public MBPartner(Properties ctx, ResultSet rs, String trxName)
Default Constructor- Parameters:
ctx
- contextrs
- ResultSet to load fromtrxName
- transaction
-
MBPartner
public MBPartner(Properties ctx, int C_BPartner_ID, String trxName)
Default Constructor- Parameters:
ctx
- contextC_BPartner_ID
- partner or 0 or -1 (load from template)trxName
- transaction
-
MBPartner
public MBPartner(X_I_BPartner impBP)
Import Constructor- Parameters:
impBP
- import
-
MBPartner
public MBPartner(MBPartner copy)
- Parameters:
copy
-
-
MBPartner
public MBPartner(Properties ctx, MBPartner copy)
- Parameters:
ctx
-copy
-
-
MBPartner
public MBPartner(Properties ctx, MBPartner copy, String trxName)
- Parameters:
ctx
-copy
-trxName
-
-
-
Method Detail
-
getTemplate
public static MBPartner getTemplate(Properties ctx, int AD_Client_ID)
Get Empty Template Business Partner- Parameters:
ctx
- contextAD_Client_ID
- client- Returns:
- Template Business Partner or null
-
getBPartnerCashTrx
public static MBPartner getBPartnerCashTrx(Properties ctx, int AD_Client_ID)
Get Cash Trx Business Partner- Parameters:
ctx
- contextAD_Client_ID
- client- Returns:
- Cash Trx Business Partner or null
-
get
public static MBPartner get(Properties ctx, String Value)
Get BPartner with Value- Parameters:
ctx
- contextValue
- value- Returns:
- BPartner or null
-
get
public static MBPartner get(Properties ctx, String Value, String trxName)
Get BPartner with Value in a transaction- Parameters:
ctx
- contextValue
- valuetrxName
- transaction- Returns:
- BPartner or null
-
getFirstWithTaxID
public static MBPartner getFirstWithTaxID(Properties ctx, String taxID, String trxName)
Get BPartner with taxID in a transaction- Parameters:
ctx
- contexttaxID
- taxIDtrxName
- transaction- Returns:
- BPartner or null
-
get
public static MBPartner get(Properties ctx, int C_BPartner_ID)
Get BPartner with Value- Parameters:
ctx
- contextC_BPartner_ID
-- Returns:
- BPartner or null
-
get
public static MBPartner get(Properties ctx, int C_BPartner_ID, String trxName)
Get BPartner with Value in a transaction- Parameters:
ctx
- contextC_BPartner_ID
-trxName
- transaction- Returns:
- BPartner or null
-
getNotInvoicedAmt
public static BigDecimal getNotInvoicedAmt(int C_BPartner_ID)
Get Not Invoiced Shipment Value- Parameters:
C_BPartner_ID
- partner- Returns:
- value in accounting currency
-
initTemplate
protected boolean initTemplate(int AD_Client_ID)
Load Default BPartner- Parameters:
AD_Client_ID
- client- Returns:
- true if loaded
-
getContacts
public MUser[] getContacts(boolean reload)
Get All Contacts- Parameters:
reload
- if true users will be requeried- Returns:
- contacts
-
getContact
public MUser getContact(int AD_User_ID)
Get specified or first Contact- Parameters:
AD_User_ID
- optional user- Returns:
- contact or null
-
getLocations
public MBPartnerLocation[] getLocations(boolean reload)
Get All Locations (only active)- Parameters:
reload
- if true locations will be requeried- Returns:
- locations
-
getLocation
public MBPartnerLocation getLocation(int C_BPartner_Location_ID)
Get explicit or first bill Location- Parameters:
C_BPartner_Location_ID
- optional explicit location- Returns:
- location or null
-
getBankAccounts
public MBPBankAccount[] getBankAccounts(boolean requery)
Get Bank Accounts- Parameters:
requery
- requery- Returns:
- Bank Accounts
-
toString
public String toString()
String Representation- Overrides:
toString
in classX_C_BPartner
- Returns:
- info
-
setClientOrg
public void setClientOrg(int AD_Client_ID, int AD_Org_ID)
Set Client/Org- Overrides:
setClientOrg
in classPO
- Parameters:
AD_Client_ID
- clientAD_Org_ID
- org
-
getAD_OrgBP_ID_Int
public int getAD_OrgBP_ID_Int()
Deprecated.Get Linked Organization. (is Button) The Business Partner is another Organization for explicit Inter-Org transactions- Returns:
- AD_Org_ID if BP
-
getPrimaryC_BPartner_Location_ID
public int getPrimaryC_BPartner_Location_ID()
Get Primary C_BPartner_Location_ID- Returns:
- C_BPartner_Location_ID
-
getPrimaryC_BPartner_Location
public MBPartnerLocation getPrimaryC_BPartner_Location()
Get Primary C_BPartner_Location- Returns:
- C_BPartner_Location
-
getPrimaryAD_User_ID
public int getPrimaryAD_User_ID()
Get Primary AD_User_ID- Returns:
- AD_User_ID
-
setPrimaryC_BPartner_Location_ID
public void setPrimaryC_BPartner_Location_ID(int C_BPartner_Location_ID)
Set Primary C_BPartner_Location_ID- Parameters:
C_BPartner_Location_ID
- id
-
setPrimaryAD_User_ID
public void setPrimaryAD_User_ID(int AD_User_ID)
Set Primary AD_User_ID- Parameters:
AD_User_ID
- id
-
setTotalOpenBalance
public void setTotalOpenBalance()
Calculate Total Open Balance and SO_CreditUsed. (includes drafted invoices)
-
setActualLifeTimeValue
public void setActualLifeTimeValue()
Set Actual Life Time Value from DB
-
setSOCreditStatus
public void setSOCreditStatus()
Set Credit Status
-
getSOCreditStatus
public String getSOCreditStatus(BigDecimal additionalAmt)
Get SO CreditStatus with additional amount- Parameters:
additionalAmt
- additional amount in Accounting Currency- Returns:
- sinulated credit status
-
getCreditWatchRatio
public BigDecimal getCreditWatchRatio()
Get Credit Watch Ratio- Returns:
- BP Group ratio or 0.9
-
isCreditStopHold
public boolean isCreditStopHold()
Credit Status is Stop or Hold.- Returns:
- true if Stop/Hold
-
getBPGroup
public MBPGroup getBPGroup()
Get BP Group- Returns:
- group
-
setBPGroup
public void setBPGroup(MBPGroup group)
Get BP Group- Parameters:
group
- group
-
getM_PriceList_ID
public int getM_PriceList_ID()
Get PriceList- Specified by:
getM_PriceList_ID
in interfaceI_C_BPartner
- Overrides:
getM_PriceList_ID
in classX_C_BPartner
- Returns:
- price List
-
getPO_PriceList_ID
public int getPO_PriceList_ID()
Get PO PriceList- Specified by:
getPO_PriceList_ID
in interfaceI_C_BPartner
- Overrides:
getPO_PriceList_ID
in classX_C_BPartner
- Returns:
- price list
-
getM_DiscountSchema_ID
public int getM_DiscountSchema_ID()
Get DiscountSchema- Specified by:
getM_DiscountSchema_ID
in interfaceI_C_BPartner
- Overrides:
getM_DiscountSchema_ID
in classX_C_BPartner
- Returns:
- Discount Schema
-
getPO_DiscountSchema_ID
public int getPO_DiscountSchema_ID()
Get PO DiscountSchema- Specified by:
getPO_DiscountSchema_ID
in interfaceI_C_BPartner
- Overrides:
getPO_DiscountSchema_ID
in classX_C_BPartner
- Returns:
- po discount
-
beforeSave
protected boolean beforeSave(boolean newRecord)
Before Save- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- new- Returns:
- true
-
afterSave
protected boolean afterSave(boolean newRecord, boolean success)
After Save
-
afterDelete
protected boolean afterDelete(boolean success)
After Delete- Overrides:
afterDelete
in classPO
- Parameters:
success
-- Returns:
- deleted
-
postDelete
protected boolean postDelete()
Description copied from class:PO
Executed after the Delete operation is committed in the database.- Overrides:
postDelete
in classPO
- Returns:
- true if post delete is a success
-
markImmutable
public MBPartner markImmutable()
Description copied from interface:ImmutablePOSupport
mark PO as immutable- Specified by:
markImmutable
in interfaceImmutablePOSupport
- Returns:
- PO
-
-