public class CRMBOPaymentBean extends CRMBOFinancialTransactionBean
Constructor and Description |
---|
CRMBOPaymentBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.crm.dataobject.financialtransactions.CRMDOPayment |
cancel(com.crm.dataobject.financialtransactions.CRMDOPayment payment)
Cancels a payment.
|
java.math.BigDecimal |
getAllocatedAmount(com.crm.dataobject.financialtransactions.CRMDOPayment payment)
Gets the allocated amount for a payment.
|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Gets the default association data objects of the payment.
|
java.util.HashSet<java.lang.String> |
getValidPaymentProducts(com.crm.dataobject.financialtransactions.CRMDOPayment payment)
Returns a set of valid products to add on a payment
|
java.lang.Boolean |
isCancelled(com.crm.dataobject.financialtransactions.CRMDOPayment payment)
Checks if a payment is cancelled or not
|
java.lang.Boolean |
isValidToAddPaymentProducts(com.crm.dataobject.financialtransactions.CRMDOPayment payment)
Checks if it is valid to add products to a payment
|
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,
com.crm.dataobject.financialtransactions.CRMDOPaymentMethod paymentMethod,
java.util.ArrayList<java.lang.String> assocations,
java.lang.String orderBy,
com.crm.dataobject.financialtransactions.FinancialTransactionLifeCycleState lifeCycleState)
Loads the payments based on an Accounts Receivable
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.jobs.CRMDOJob job)
Loads a list of payments related to a job.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.jobs.CRMDOJob job,
java.util.ArrayList<java.lang.String> associations)
Loads a list of payments related to a job.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
load(com.crm.dataobject.vouchers.CRMDOVoucher voucher)
Loads payment based on voucher.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
load(com.crm.dataobject.vouchers.CRMDOVoucher voucher,
java.util.ArrayList<java.lang.String> associations)
Loads payment based on voucher.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(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,
com.crm.dataobject.financialtransactions.CRMDOPaymentMethod paymentMethod,
java.util.ArrayList<java.lang.String> assocations,
java.lang.String orderBy,
com.crm.dataobject.financialtransactions.FinancialTransactionLifeCycleState lifeCycleState)
Loads the payments based on an Accounts Receivable
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(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,
com.crm.dataobject.financialtransactions.CRMDOPaymentMethod paymentMethod,
java.util.ArrayList<java.lang.String> assocations,
java.lang.String orderBy,
com.crm.dataobject.financialtransactions.FinancialTransactionLifeCycleState lifeCycleState,
com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation)
Loads the payments based on an Accounts Receivable
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(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,
com.crm.dataobject.financialtransactions.CRMDOPaymentMethod paymentMethod,
java.util.ArrayList<java.lang.String> assocations,
java.lang.String orderBy,
com.crm.dataobject.financialtransactions.FinancialTransactionLifeCycleState lifeCycleState,
com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation,
java.lang.Boolean relatedWithPaymentGateway)
Loads the payments based on an Accounts Receivable
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
loadByBackOfficeCode(java.lang.String backOfficeCode)
Loads a payment by a back office code.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
loadByBackOfficeCode(java.lang.String backOfficeCode,
java.util.ArrayList<java.lang.String> associations)
Loads a payment by a back office code.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
loadByNumber(java.lang.String number)
Loads a payment by a number.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
loadByNumber(java.lang.String number,
java.util.ArrayList<java.lang.String> associations)
Loads a payment by a number.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
loadByReferenceNumber(java.lang.String referenceNumber)
Loads a payment based on reference number.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
loadByReferenceNumber(java.lang.String referenceNumber,
java.util.ArrayList<java.lang.String> associations)
Loads a payment 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.CRMDOPayment |
post(com.crm.dataobject.financialtransactions.CRMDOPayment payment)
Posts payment.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
post(com.crm.dataobject.financialtransactions.CRMDOPayment payment,
com.crm.dataobject.platform.CRMDONumberScheme numberScheme)
Posts payment.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
post(com.crm.dataobject.financialtransactions.CRMDOPayment payment,
com.crm.dataobject.platform.CRMDONumberScheme numberScheme,
com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriod)
Posts payment.
|
com.crm.dataobject.financialtransactions.CRMDOFinancialTransaction |
reject(com.crm.dataobject.financialtransactions.CRMDOFinancialTransaction finTransaction,
com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionRejectionReason rejectionReason)
Rejects a financial transaction based on the parameters.
|
com.crm.dataobject.financialtransactions.CRMDOPayment |
roundTotalAmount(com.crm.dataobject.financialtransactions.CRMDOPayment payment)
Calculates rounded total amount.
|
void |
validateCheckDigitRules(com.crm.dataobject.financialtransactions.CRMDOPayment payment)
Validates the payment intentions of the given payment against the check digit rules
|
void |
validatePaymentMethodOnPosting(com.crm.dataobject.financialtransactions.CRMDOPayment payment)
Validates the payment method on post
|
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 void validateCheckDigitRules(com.crm.dataobject.financialtransactions.CRMDOPayment payment) throws java.lang.Exception
payment
- - the payment to validate its payment intentions against the check digit rulesjava.lang.Exception
public java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations
in class CRMBOFinancialTransactionBean
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, com.crm.dataobject.financialtransactions.CRMDOPaymentMethod paymentMethod, java.util.ArrayList<java.lang.String> assocations, java.lang.String orderBy, com.crm.dataobject.financialtransactions.FinancialTransactionLifeCycleState lifeCycleState) throws java.lang.Exception
accountReceivable
- an Accounts Receivable (required)type
- a financial transaction type (optional)category
- a financial transaction category (optional)paymentMethod
- a financial transaction payment method (optional)assocations
- the associate object you want to initialize(optional)lifeCycleState
- the life cycle state of the payment(optional)orderBy
- the order by field(optional)java.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(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, com.crm.dataobject.financialtransactions.CRMDOPaymentMethod paymentMethod, java.util.ArrayList<java.lang.String> assocations, java.lang.String orderBy, com.crm.dataobject.financialtransactions.FinancialTransactionLifeCycleState lifeCycleState) throws java.lang.Exception
accountReceivable
- an Accounts Receivable (required)type
- a financial transaction type (optional)category
- a financial transaction category (optional)paymentMethod
- a financial transaction payment method (optional)assocations
- the associate object you want to initialize(optional)lifeCycleState
- the life cycle state of the payment(optional)orderBy
- the order by field(optional)java.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(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, com.crm.dataobject.financialtransactions.CRMDOPaymentMethod paymentMethod, java.util.ArrayList<java.lang.String> assocations, java.lang.String orderBy, com.crm.dataobject.financialtransactions.FinancialTransactionLifeCycleState lifeCycleState, com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation) throws java.lang.Exception
accountReceivable
- an Accounts Receivable (required)type
- a financial transaction type (optional)category
- a financial transaction category (optional)paymentMethod
- a financial transaction payment method (optional)assocations
- the associate object you want to initialize(optional)lifeCycleState
- the life cycle state of the payment(optional)orderBy
- the order by field(optional)java.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(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, com.crm.dataobject.financialtransactions.CRMDOPaymentMethod paymentMethod, java.util.ArrayList<java.lang.String> assocations, java.lang.String orderBy, com.crm.dataobject.financialtransactions.FinancialTransactionLifeCycleState lifeCycleState, com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation, java.lang.Boolean relatedWithPaymentGateway) throws java.lang.Exception
accountReceivable
- an Accounts Receivable (required)type
- a financial transaction type (optional)category
- a financial transaction category (optional)paymentMethod
- a financial transaction payment method (optional)assocations
- the associate object you want to initialize(optional)lifeCycleState
- the life cycle state of the payment(optional)orderBy
- the order by field(optional)java.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment loadByNumber(java.lang.String number) throws java.lang.Exception
number
- a payment number (required)java.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment loadByNumber(java.lang.String number, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
number
- a payment number (required)associations
- the associate objects you want to initializejava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment loadByReferenceNumber(java.lang.String referenceNumber) throws java.lang.Exception
referenceNumber
- a payment reference number (required)java.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment loadByReferenceNumber(java.lang.String referenceNumber, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
referenceNumber
- a payment reference number (required)associations
- the associate objects you want to initializejava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment post(com.crm.dataobject.financialtransactions.CRMDOPayment payment) throws java.lang.Exception, com.crm.exception.financialtransactions.FTPostException
payment
- a payment (required)java.lang.Exception
com.crm.exception.financialtransactions.FTPostException
public com.crm.dataobject.financialtransactions.CRMDOPayment post(com.crm.dataobject.financialtransactions.CRMDOPayment payment, com.crm.dataobject.platform.CRMDONumberScheme numberScheme) throws java.lang.Exception, com.crm.exception.financialtransactions.FTPostException
payment
- a payment (required)numberScheme
- the number scheme of the payment(optional)java.lang.Exception
com.crm.exception.financialtransactions.FTPostException
public com.crm.dataobject.financialtransactions.CRMDOPayment post(com.crm.dataobject.financialtransactions.CRMDOPayment payment, com.crm.dataobject.platform.CRMDONumberScheme numberScheme, com.crm.dataobject.accounts.CRMDOAccountingPeriod accountingPeriod) throws java.lang.Exception, com.crm.exception.financialtransactions.FTPostException
payment
- a payment (required)numberScheme
- the number scheme of the payment(optional)accountingPeriod
- the open accounting periodcom.crm.exception.financialtransactions.FTPostException
java.lang.Exception
public void validatePaymentMethodOnPosting(com.crm.dataobject.financialtransactions.CRMDOPayment payment) throws java.lang.Exception, com.crm.exception.ActionNotAllowedByApplicationServerException, com.crm.exception.paymentgateway.NoEffectivePaymentGatewayProviderExistsException
payment
- - the payment to validatecom.crm.exception.paymentgateway.NoEffectivePaymentGatewayProviderExistsException
com.crm.exception.ActionNotAllowedByApplicationServerException
java.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment cancel(com.crm.dataobject.financialtransactions.CRMDOPayment payment) throws java.lang.Exception, com.crm.exception.financialtransactions.FTCancelException, com.crm.exception.financialtransactions.FTAlreadyCancelledException
payment
- a paymentcom.crm.exception.financialtransactions.FTCancelException
com.crm.exception.financialtransactions.FTAlreadyCancelledException
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
- the financial transaction to rejectrejectionReason
- financial transaction life cycle statejava.lang.Exception
com.crm.exception.financialtransactions.InvalidStateRejectionException
com.crm.exception.financialtransactions.FinTransactionRejectionException
public java.math.BigDecimal getAllocatedAmount(com.crm.dataobject.financialtransactions.CRMDOPayment payment) throws java.lang.Exception
payment
- a paymentjava.lang.Exception
public java.lang.Boolean isCancelled(com.crm.dataobject.financialtransactions.CRMDOPayment payment) throws java.lang.Exception
payment
- a paymentjava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment load(com.crm.dataobject.vouchers.CRMDOVoucher voucher) throws java.lang.Exception
voucher
- a voucherjava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment load(com.crm.dataobject.vouchers.CRMDOVoucher voucher, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
voucher
- a voucherassociations
- a list of associationsjava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment roundTotalAmount(com.crm.dataobject.financialtransactions.CRMDOPayment payment) throws java.lang.Exception
payment
- a paymentjava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment loadByBackOfficeCode(java.lang.String backOfficeCode) throws java.lang.Exception
backOfficeCode
- a back office codejava.lang.Exception
public com.crm.dataobject.financialtransactions.CRMDOPayment 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 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 java.lang.Boolean isValidToAddPaymentProducts(com.crm.dataobject.financialtransactions.CRMDOPayment payment) throws java.lang.Exception
payment
- -the payment to validatejava.lang.Exception
public java.util.HashSet<java.lang.String> getValidPaymentProducts(com.crm.dataobject.financialtransactions.CRMDOPayment payment) throws java.lang.Exception
payment
- -the payment to get the valid products forjava.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
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.jobs.CRMDOJob job) throws java.lang.Exception
job
- - the job to load the related payments forjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.jobs.CRMDOJob job, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
job
- - the job to load the related payments forassociations
- -java.lang.Exception