public class CRMBOBillBean extends CRMBO
Constructor and Description |
---|
CRMBOBillBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.crm.dataobject.billing.CRMDOBill |
construct(com.crm.dataobject.billing.CRMDOBillingRun billingRun,
com.crm.dataobject.accounts.CRMDOAccountReceivable account,
java.util.ArrayList<com.crm.dataobject.billing.CRMDOBillingRunTransaction> billingRunTransactions)
Constructs a bill of a billing run and an account.
|
com.crm.dataobject.billing.CRMDOBill |
construct(com.crm.dataobject.billing.CRMDOBillingRun billingRun,
com.crm.dataobject.accounts.CRMDOAccountReceivable account,
java.util.ArrayList<com.crm.dataobject.billing.CRMDOBillingRunTransaction> billingRunTransactions,
com.crm.dataobject.billing.CRMDOBillingRunDefinition activeDefinition)
Constructs a bill of a billing run and an account of the active definition.
|
com.crm.dataobject.billing.CRMDOBill |
createRoundingAdjustments(com.crm.dataobject.billing.CRMDOBill bill,
com.crm.dataobject.billing.CRMDOBillingRunDefinition billingRunDefinition)
Calculates the rounding adjustments of a bill.
|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Returns the default associated data objects of a bill.
|
java.util.Date |
getDueDate(com.crm.dataobject.billing.CRMDOBill bill)
Returns the due date of a bill.
|
java.util.Date |
getDueDate(java.lang.String billID)
Returns the due date of a bill by an id.
|
java.lang.Integer |
getNumberOfCreditNotes(com.crm.dataobject.billing.CRMDOBill bill)
Returns the number of credit notes of a bill.
|
java.lang.Integer |
getNumberOfCreditNotes(java.lang.String billID)
Returns the number of credit notes of a bill by an id.
|
java.lang.Integer |
getNumberOfInvoices(com.crm.dataobject.billing.CRMDOBill bill)
Returns the number of invoices of a bill.
|
java.lang.Integer |
getNumberOfInvoices(java.lang.String billID)
Returns the number of invoices of a bill by an id.
|
java.math.BigDecimal |
getOutstandingAmount(com.crm.dataobject.billing.CRMDOBill bill)
Returns the outstanding amount of a bill.
|
java.math.BigDecimal |
getOutstandingAmount(com.crm.dataobject.billing.CRMDOBill bill,
java.util.Date asOfDate)
Returns the outstanding amount of a bill.
|
java.math.BigDecimal |
getOutstandingAmount(java.lang.String billID,
java.util.Date asOfDate)
Returns the outstanding amount of a bill by an id.
|
com.crm.dataobject.billing.BillStatus |
getStatus(com.crm.dataobject.billing.CRMDOBill bill)
Returns the status of a bill.
|
com.crm.dataobject.billing.BillStatus |
getStatus(java.lang.String billID)
Returns the status of a bill by an id.
|
java.math.BigDecimal |
getTotalCreditAmount(com.crm.dataobject.billing.CRMDOBill bill)
Returns the total credit amount of a bill.
|
java.math.BigDecimal |
getTotalCreditAmount(java.lang.String billID)
Returns the total credit amount of a bill by an id.
|
java.math.BigDecimal |
getTotalDebitAmount(com.crm.dataobject.billing.CRMDOBill bill)
Returns the total debit amount of a bill.
|
java.math.BigDecimal |
getTotalDebitAmount(java.lang.String billID)
Returns the total debit amount of a bill by an id.
|
java.math.BigDecimal |
getUnsettledAmount(com.crm.dataobject.billing.CRMDOBill bill)
Returns the unsettled amount of a bill.
|
java.math.BigDecimal |
getUnsettledAmount(java.lang.String billID)
Returns the unsettled amount of a bill by an id.
|
java.lang.Boolean |
invoiceAllocationExists(java.lang.String billID)
Checks if a bill has a settled invoice by an id.
|
java.lang.Boolean |
isUsedByDraftCommunication(com.crm.dataobject.billing.CRMDOBill bill)
Checks if the bill is used by a draft communication.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.accounts.CRMDOAccountReceivable account)
Loads a list of bills of an account.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.accounts.CRMDOAccountReceivable account,
java.util.ArrayList<java.lang.String> associations,
java.lang.String orderBy,
java.lang.Integer maxRows)
Loads a list of bills of an account.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.accounts.CRMDOAccountReceivable account,
com.crm.dataobject.subscriptions.CRMDOSubscription subscription,
com.crm.dataobject.jobs.CRMDOJob job,
com.crm.dataobject.billing.BillStatus status,
java.util.ArrayList<java.lang.String> associations,
java.lang.String orderBy,
java.lang.Integer maxRows)
Loads a list of bills of an account by a bill status.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.billing.CRMDOBillingRun billingRun)
Loads a list of bills of a billing run.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.jobs.CRMDOJob job)
Loads a list of bills of a job.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.subscriptions.CRMDOSubscription subscription)
Loads a list of bills of subscription.
|
com.crm.dataobject.billing.CRMDOBill |
loadAdditionalInformation(com.crm.dataobject.billing.CRMDOBill bill)
Loads the additional information of a bill.
|
com.crm.dataobject.billing.CRMDOBill |
loadByNumber(java.lang.String billNumber)
Loads a bill by a number.
|
com.crm.dataobject.billing.CRMDOBill |
loadByNumber(java.lang.String billNumber,
java.util.ArrayList<java.lang.String> associations)
Loads a bill by a number.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadPartiallySettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account)
Loads a list of partially settled bills of an account.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadPartiallySettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account,
java.util.ArrayList<java.lang.String> associations)
Loads a list of partially settled bills of an account.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadSettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account)
Loads a list of settled bills of an account.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadSettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account,
java.util.ArrayList<java.lang.String> associations)
Loads a list of settled bills of an account.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadUnsettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account)
Loads a list of unsettled bills of an account.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadUnsettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account,
java.util.ArrayList<java.lang.String> associations)
Loads a list of unsettled bills of an account.
|
com.crm.dataobject.billing.CRMDOBill |
present(com.crm.dataobject.billing.CRMDOBill bill)
Presents a bill.
|
com.crm.dataobject.billing.CRMDOBill |
presentAndConfirm(com.crm.dataobject.billing.CRMDOBill bill)
Presents and confirms a bill.
|
com.crm.dataobject.billing.CRMDOBill |
presentAndReject(com.crm.dataobject.billing.CRMDOBill bill)
Presents and rejects a bill.
|
com.crm.dataobject.billing.CRMDOBill |
setBillClassification(com.crm.dataobject.billing.CRMDOBill bill,
com.crm.dataobject.accounts.CRMDOAccountReceivable account)
Classify a bill based on account and billing Run Definition.
|
com.crm.dataobject.billing.CRMDOBill |
setBillClassification(com.crm.dataobject.billing.CRMDOBill bill,
com.crm.dataobject.accounts.CRMDOAccountReceivable account,
com.crm.dataobject.billing.CRMDOBillingRunDefinition billingRunDefinition)
Classify a bill based on account and billing Run Definition.
|
construct, construct, construct, construct, construct, construct, construct, construct, createAndUpdate, delete, delete, delete, getDOName, getDOName, getNextSequenceNumber, getNextSequenceNumber, getNumberScheme, load, load, load, load, load, load, load, load, loadAll, loadAll, loadAll, parseAssociations, save, save, save, saveCRMDOCollection, saveImages, setMandatoryFields, setNumberScheme, validateAndDelete, validateAndSave, validateAndSave, validateAndSave, validateOnDelete, validateOnDelete, validateOnDelete, validateOnSave, validateOnSave, validateOnSave
dispatch, getCRMSession, getCRMSessionHandle, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, setCRMSessionHandle, setInitialContext, setSessionContext
public java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations
in class CRMBO
public com.crm.dataobject.billing.CRMDOBill present(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to presentjava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill presentAndConfirm(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to present and confirmjava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill presentAndReject(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to present and rejectjava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill loadByNumber(java.lang.String billNumber) throws java.lang.Exception
billNumber
- - the bill number to load forjava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill loadByNumber(java.lang.String billNumber, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
billNumber
- - the bill number to load forassociations
- - a list of associated data objectsjava.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 bills forjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.subscriptions.CRMDOSubscription subscription) throws java.lang.Exception
subscription
- - the subscription to load the bills forjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.accounts.CRMDOAccountReceivable account) throws java.lang.Exception
account
- - the account to load the bills forjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.accounts.CRMDOAccountReceivable account, java.util.ArrayList<java.lang.String> associations, java.lang.String orderBy, java.lang.Integer maxRows) throws java.lang.Exception
account
- - the account to load the bills forassociations
- - a list of associated data objectsorderBy
- - the column to order bymaxRows
- - the maximum number of bills to returnjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadUnsettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account) throws java.lang.Exception
account
- - the account to load the unsettled bills forjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadUnsettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
account
- - the account to load the unsettled bills forassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadSettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account) throws java.lang.Exception
account
- - the account to load the settled bills forjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadSettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
account
- - the account to load the settled bills forassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadPartiallySettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account) throws java.lang.Exception
account
- - the account to load the partially settled bills forjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadPartiallySettledBills(com.crm.dataobject.accounts.CRMDOAccountReceivable account, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
account
- - the account to load the partially settled bills forassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.accounts.CRMDOAccountReceivable account, com.crm.dataobject.subscriptions.CRMDOSubscription subscription, com.crm.dataobject.jobs.CRMDOJob job, com.crm.dataobject.billing.BillStatus status, java.util.ArrayList<java.lang.String> associations, java.lang.String orderBy, java.lang.Integer maxRows) throws java.lang.Exception
account
- - the account to load the bills ofstatus
- - the status of the billsassociations
- - a list of associated data objectsorderBy
- - the column to order bymaxRows
- - the maximum number of bills to returnjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.billing.CRMDOBillingRun billingRun) throws java.lang.Exception
billingRun
- - the billing run to load the bills forjava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill construct(com.crm.dataobject.billing.CRMDOBillingRun billingRun, com.crm.dataobject.accounts.CRMDOAccountReceivable account, java.util.ArrayList<com.crm.dataobject.billing.CRMDOBillingRunTransaction> billingRunTransactions) throws java.lang.Exception
billingRun
- - the billing run to useaccount
- - the account to usebillingRunTransactions
- - a list of billing run transactionsjava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill construct(com.crm.dataobject.billing.CRMDOBillingRun billingRun, com.crm.dataobject.accounts.CRMDOAccountReceivable account, java.util.ArrayList<com.crm.dataobject.billing.CRMDOBillingRunTransaction> billingRunTransactions, com.crm.dataobject.billing.CRMDOBillingRunDefinition activeDefinition) throws java.lang.Exception
billingRun
- - the billing run to useaccount
- - the account to usebillingRunTransactions
- - a list of billing run transactionsactiveDefinition
- - the active definitionjava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill createRoundingAdjustments(com.crm.dataobject.billing.CRMDOBill bill, com.crm.dataobject.billing.CRMDOBillingRunDefinition billingRunDefinition) throws java.lang.Exception
bill
- - the bill to calculate the rounding adjustments forbillingRunDefinition
- - the billing run definition to usejava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill setBillClassification(com.crm.dataobject.billing.CRMDOBill bill, com.crm.dataobject.accounts.CRMDOAccountReceivable account) throws java.lang.Exception
bill
- - the bill to useaccount
- - the account to usejava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill setBillClassification(com.crm.dataobject.billing.CRMDOBill bill, com.crm.dataobject.accounts.CRMDOAccountReceivable account, com.crm.dataobject.billing.CRMDOBillingRunDefinition billingRunDefinition) throws java.lang.Exception
bill
- - the bill to useaccount
- - the account to usebillingRunDefinition
- - the billing run definition to usejava.lang.Exception
public java.lang.Integer getNumberOfInvoices(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to return the number of invoices forjava.lang.Exception
public java.lang.Integer getNumberOfInvoices(java.lang.String billID) throws java.lang.Exception
billID
- - the id of the bill to return the number of invoices forjava.lang.Exception
public java.lang.Integer getNumberOfCreditNotes(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to return the number of credit notes forjava.lang.Exception
public java.lang.Integer getNumberOfCreditNotes(java.lang.String billID) throws java.lang.Exception
billID
- - the id of the bill to return the number of credit notes forjava.lang.Exception
public java.math.BigDecimal getTotalDebitAmount(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to return the total debit amount forjava.lang.Exception
public java.math.BigDecimal getTotalDebitAmount(java.lang.String billID) throws java.lang.Exception
billID
- - the id of the bill to return the total debit amount forjava.lang.Exception
public java.math.BigDecimal getTotalCreditAmount(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to return the total credit amount forjava.lang.Exception
public java.math.BigDecimal getTotalCreditAmount(java.lang.String billID) throws java.lang.Exception
billID
- - the id of the bill to return the total credit amount forjava.lang.Exception
public java.util.Date getDueDate(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to return the due date forjava.lang.Exception
public java.util.Date getDueDate(java.lang.String billID) throws java.lang.Exception
billID
- - the id of the bill to return the due date forjava.lang.Exception
public java.math.BigDecimal getOutstandingAmount(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to return the outstanding amount forjava.lang.Exception
public java.math.BigDecimal getOutstandingAmount(com.crm.dataobject.billing.CRMDOBill bill, java.util.Date asOfDate) throws java.lang.Exception
bill
- - the bill to return the outstanding amount forasOfDate
- - the date to calculate the outstanding amountjava.lang.Exception
public java.math.BigDecimal getOutstandingAmount(java.lang.String billID, java.util.Date asOfDate) throws java.lang.Exception
billID
- - the id of the bill to return the outstanding amount forasOfDate
- - the date to calculate the outstanding amountjava.lang.Exception
public java.math.BigDecimal getUnsettledAmount(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to return the unsettled amount forjava.lang.Exception
public java.math.BigDecimal getUnsettledAmount(java.lang.String billID) throws java.lang.Exception
billID
- - the id of the bill to return the unsettled amount forjava.lang.Exception
public java.lang.Boolean invoiceAllocationExists(java.lang.String billID) throws java.lang.Exception
billID
- - the id of the bill to checkjava.lang.Exception
public com.crm.dataobject.billing.BillStatus getStatus(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to return the status ofjava.lang.Exception
public com.crm.dataobject.billing.BillStatus getStatus(java.lang.String billID) throws java.lang.Exception
billID
- - the id of the bill to return the status ofjava.lang.Exception
public com.crm.dataobject.billing.CRMDOBill loadAdditionalInformation(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to load the additional information ofjava.lang.Exception
public java.lang.Boolean isUsedByDraftCommunication(com.crm.dataobject.billing.CRMDOBill bill) throws java.lang.Exception
bill
- - the bill to checkjava.lang.Exception