public class CRMBOAccountingPeriodBean extends CRMBOConfigurationEntity
Constructor and Description |
---|
CRMBOAccountingPeriodBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.crm.dataobject.accounts.CRMDOAccountingPeriod |
close(com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriod,
com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriodBeingClosed,
java.util.Date closedDate)
Close the currently open period
|
com.crm.dataobject.accounts.CRMDOAccountingPeriod |
construct(com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriodBeingClosed,
com.crm.dataobject.accounts.CRMDOAccountingPeriodSetting accountingPeriodSetting)
Constructs the new accounting period based on the accounting period setting and currently open accounting period
|
void |
constructFirstAccountingPeriod(com.crm.dataobject.accounts.CRMDOAccountingPeriodSetting accountingPeriodSetting)
Constructs the first accounting period based on the accounting period setting
|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Returns the default associated data objects of an accounting period.
|
com.crm.dataobject.accounts.CRMDOAccountingPeriod |
loadByName(java.lang.String name,
java.util.ArrayList<java.lang.String> associations)
Loads an accounting period by a name.
|
com.crm.dataobject.accounts.CRMDOAccountingPeriod |
loadByNumber(java.lang.String number,
java.util.ArrayList<java.lang.String> associations)
Loads an accounting period by a number.
|
com.crm.dataobject.accounts.CRMDOAccountingPeriod |
loadLatestClosed()
Loads the latest closed period
|
com.crm.dataobject.accounts.CRMDOAccountingPeriod |
loadLatestClosed(java.util.ArrayList<java.lang.String> associations)
Loads the latest closed period
|
com.crm.dataobject.accounts.CRMDOAccountingPeriod |
loadOpen()
Loads the open accounting period
|
com.crm.dataobject.accounts.CRMDOAccountingPeriod |
loadOpen(java.util.ArrayList<java.lang.String> associations)
Loads the open accounting period
|
isDefault, loadDefault, setDefault
construct, construct, construct, construct, construct, construct, construct, construct, construct, createAndUpdate, delete, delete, delete, getDOName, getDOName, getNextSequenceNumber, getNextSequenceNumber, getNumberScheme, isAssignable, load, load, load, load, load, load, load, load, load, load, load, load, load, load, loadAll, loadAll, loadAll, loadAllEntityStatusDO, loadAllEntityStatusDO, loadDataObject, loadDataObject, loadDataObject, loadDataObjects, loadDataObjects, loadEntityCategoryDO, loadEntityCategoryDO, loadEntityDO, loadEntityDO, loadEntityStatusDO, loadEntityStatusDO, parseAssociations, parseAssociations, parseAssociations, save, save, save, saveCRMDOCollection, saveImages, setMandatoryFields, setNumberScheme, validateAndDelete, validateAndSave, validateAndSave, validateAndSave, validateApprovalRequestEntity, validateFormatSettings, validateFormatSettings, validateOnDelete, validateOnDelete, validateOnDelete, validateOnSave, validateOnSave, validateOnSave
deepCopy, dispatch, getCRMSession, getCRMSessionHandle, getCurrentDate, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, setCRMSessionHandle, setInitialContext, setSessionContext
public CRMBOAccountingPeriodBean()
public com.crm.dataobject.accounts.CRMDOAccountingPeriod construct(com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriodBeingClosed, com.crm.dataobject.accounts.CRMDOAccountingPeriodSetting accountingPeriodSetting) throws java.lang.Exception
accountingPeriodBeingClosed
- - the accounting period which is currently open and will closeaccountingPeriodSetting
- - the accounting period settingjava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountingPeriod close(com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriod, com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriodBeingClosed, java.util.Date closedDate) throws java.lang.Exception
accountingPeriod
- - the accounting period that will close the currently open periodaccountingPeriodBeingClosed
- - the accounting period which is currently open and will closeclosedDate
- - the closed datejava.lang.Exception
public void constructFirstAccountingPeriod(com.crm.dataobject.accounts.CRMDOAccountingPeriodSetting accountingPeriodSetting) throws java.lang.Exception
accountingPeriodSetting
- - the accounting period settingjava.lang.Exception
public java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations
in class CRMBOConfigurationEntity
public com.crm.dataobject.accounts.CRMDOAccountingPeriod loadByNumber(java.lang.String number, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
number
- - a numberassociations
- - a list of associated data objectsjava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountingPeriod loadByName(java.lang.String name, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
name
- - a nameassociations
- - a list of associated data objectsjava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountingPeriod loadOpen() throws java.lang.Exception
java.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountingPeriod loadOpen(java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
associations
- - a list of associated data objectsjava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountingPeriod loadLatestClosed() throws java.lang.Exception
java.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountingPeriod loadLatestClosed(java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
associations
- - a list of associated data objectsjava.lang.Exception