public class CRMBORefundBean extends CRMBOFinancialTransactionBean
Constructor and Description |
---|
CRMBORefundBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Gets the default association data objects of the refund.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionType type,
com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionCategory category,
java.util.ArrayList<java.lang.String> assocations)
Loads the refund based on an Accounts Receivable
|
com.crm.dataobject.financialtransactions.CRMDORefund |
load(com.crm.dataobject.vouchers.CRMDOVoucher voucher)
Loads a refund based on the given voucher.
|
com.crm.dataobject.financialtransactions.CRMDORefund |
load(com.crm.dataobject.vouchers.CRMDOVoucher voucher,
java.util.ArrayList<java.lang.String> associations)
Loads a refund based on the given voucher.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(java.lang.String orderBy,
java.lang.Integer numberOfResults,
java.lang.Integer offset,
com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionType type,
com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionCategory category,
java.util.ArrayList<java.lang.String> assocations)
Loads the refund based on an Accounts Receivable
|
com.crm.dataobject.financialtransactions.CRMDORefund |
loadByBackOfficeCode(java.lang.String backOfficeCode)
Loads a refund by a back office code.
|
com.crm.dataobject.financialtransactions.CRMDORefund |
loadByBackOfficeCode(java.lang.String backOfficeCode,
java.util.ArrayList<java.lang.String> associations)
Loads a refund by a back office code.
|
com.crm.dataobject.financialtransactions.CRMDORefund |
loadByNumber(java.lang.String number)
Loads a refund by a number.
|
com.crm.dataobject.financialtransactions.CRMDORefund |
loadByNumber(java.lang.String number,
java.util.ArrayList<java.lang.String> associations)
Loads a refund by a number.
|
com.crm.dataobject.financialtransactions.CRMDORefund |
loadByReferenceNumber(java.lang.String refernceNumber)
Loads a refund based on reference number.
|
com.crm.dataobject.financialtransactions.CRMDORefund |
loadByReferenceNumber(java.lang.String refernceNumber,
java.util.ArrayList<java.lang.String> associations)
Loads a refund based on reference number.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadPending(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation,
java.util.ArrayList<java.lang.String> associations)
Find all financial transactions which:
- in Draft or Pending Verification state
|
com.crm.dataobject.financialtransactions.CRMDORefund |
post(com.crm.dataobject.financialtransactions.CRMDORefund refund)
Posts refund.
|
com.crm.dataobject.financialtransactions.CRMDORefund |
post(com.crm.dataobject.financialtransactions.CRMDORefund refund,
com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriod)
Posts refund.
|
com.crm.dataobject.financialtransactions.CRMDOFinancialTransaction |
reject(com.crm.dataobject.financialtransactions.CRMDOFinancialTransaction finTransaction,
com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionRejectionReason rejectionReason)
Rejects a draft financial transaction.
|
void |
validatePosting(com.crm.dataobject.financialtransactions.CRMDOFinancialTransaction financialTransaction,
java.util.Date postedDate,
com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriod)
Validates if financial transaction can be posted
|
anonymizeContactFT, calculateAmounts, calculateAmounts, calculateAmountsFromTotals, calculateAmountsFromTotals, construct, getMinimumPostedDate, load, load, load, loadNonPosted, loadNonPostedTransactionsWithAccountPeriod, loadPostedTransactionsWithoutAccountPeriod, loadTransactionsWithInvalidAccountPeriod, setTaxPercentage, setVaPercentage, setVaPercentage, setVatInformation, setVatInformation
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 java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations
in class CRMBOFinancialTransactionBean
public com.crm.dataobject.financialtransactions.CRMDORefund post(com.crm.dataobject.financialtransactions.CRMDORefund refund) throws java.lang.Exception, com.crm.exception.financialtransactions.FTPostException, com.crm.exception.financialtransactions.CannotRefundException
refund
- a refundjava.lang.Exception
com.crm.exception.financialtransactions.FTPostException
com.crm.exception.financialtransactions.CannotRefundException
public com.crm.dataobject.financialtransactions.CRMDORefund post(com.crm.dataobject.financialtransactions.CRMDORefund refund, com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriod) throws java.lang.Exception, com.crm.exception.financialtransactions.FTPostException, com.crm.exception.financialtransactions.CannotRefundException
refund
- a refundaccountingPeriod
- the open accounting periodjava.lang.Exception
com.crm.exception.financialtransactions.FTPostException
com.crm.exception.financialtransactions.CannotRefundException
public void validatePosting(com.crm.dataobject.financialtransactions.CRMDOFinancialTransaction financialTransaction, java.util.Date postedDate, com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriod) throws java.lang.Exception, com.crm.exception.financialtransactions.InvalidAccountStateException
validatePosting
in class CRMBOFinancialTransactionBean
financialTransaction
- - the financial transaction to validate id it can be postedpostedDate
- - the posted date of the financial transactionaccountingPeriod
- - the open accounting period data objectcom.crm.exception.financialtransactions.InvalidAccountStateException
java.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOFinancialTransaction reject(com.crm.dataobject.financialtransactions.CRMDOFinancialTransaction finTransaction, com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionRejectionReason rejectionReason) throws java.lang.Exception, com.crm.exception.financialtransactions.InvalidStateRejectionException, com.crm.exception.financialtransactions.FinTransactionRejectionException
reject
in class CRMBOFinancialTransactionBean
finTransaction
- a financial transaction (required)rejectionReason
- a rejection reason (required)java.lang.Exception
com.crm.exception.financialtransactions.InvalidStateRejectionException
com.crm.exception.financialtransactions.FinTransactionRejectionException
public com.crm.dataobject.financialtransactions.CRMDORefund loadByNumber(java.lang.String number) throws java.lang.Exception
number
- a refund number (required)java.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDORefund loadByNumber(java.lang.String number, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
number
- a refund number (required)associations
- the associate objects you want to initializejava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDORefund loadByReferenceNumber(java.lang.String refernceNumber) throws java.lang.Exception
refernceNumber
- a refund reference number (required)java.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDORefund loadByReferenceNumber(java.lang.String refernceNumber, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
refernceNumber
- a refund reference number (required)associations
- the associate objects you want to initializejava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionType type, com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionCategory category, java.util.ArrayList<java.lang.String> assocations) throws java.lang.Exception
accountReceivable
- a financial account (required)type
- a financial transaction type (optional)category
- a financial transaction category (optional)assocations
- the associate object you want to initialize(optional)java.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(java.lang.String orderBy, java.lang.Integer numberOfResults, java.lang.Integer offset, com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionType type, com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionCategory category, java.util.ArrayList<java.lang.String> assocations) throws java.lang.Exception
numberOfResults
- The number of results that can be retrievedorderBy
- The ordering fieldoffset
- It defines the number of entities that should be skipped from the resultsaccountReceivable
- a financial account (required)type
- a financial transaction type (optional)category
- a financial transaction category (optional)assocations
- the associate object you want to initialize(optional)java.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDORefund loadByBackOfficeCode(java.lang.String backOfficeCode) throws java.lang.Exception
backOfficeCode
- a back office codejava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDORefund loadByBackOfficeCode(java.lang.String backOfficeCode, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
backOfficeCode
- a back office codeassociations
- a list of associationsjava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDORefund load(com.crm.dataobject.vouchers.CRMDOVoucher voucher) throws java.lang.Exception
voucher
- - a voucher to load the refund forjava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDORefund load(com.crm.dataobject.vouchers.CRMDOVoucher voucher, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
voucher
- - a voucher to load the refund forassociations
- - a list of associationsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadPending(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
java.lang.Exception