|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.accounting.util.UtilAccounting
public class UtilAccounting
| Field Summary | |
|---|---|
static java.lang.String |
module
|
| Constructor Summary | |
|---|---|
UtilAccounting()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getDefaultAccountId(java.lang.String glAccountTypeId,
java.lang.String organizationPartyId,
Delegator delegator)
As above, but explicitly looking for default account for given type and organization |
static java.util.List<java.lang.String> |
getDescendantGlAccountClassIds(GenericValue glAccountClass)
|
static java.math.BigDecimal |
getNetBalance(GenericValue account)
|
static java.math.BigDecimal |
getNetBalance(GenericValue account,
java.lang.String debugModule)
Little method to figure out the net or ending balance of a GlAccountHistory or GlAccountAndHistory value, based on what kind of account (DEBIT or CREDIT) it is |
static java.lang.String |
getProductOrgGlAccountId(java.lang.String productId,
java.lang.String glAccountTypeId,
java.lang.String organizationPartyId,
Delegator delegator)
Get the GL Account for a product or the default account type based on input. |
static boolean |
isAccountClass(GenericValue glAccount,
java.lang.String glAccountClassId)
Checks if a GL account is of a specified GlAccountClass.glAccountClassId. |
static boolean |
isAccountClassClass(GenericValue glAccountClass,
java.lang.String parentGlAccountClassId)
Determines if a glAccountClass is of a child of a certain parent glAccountClass. |
static boolean |
isAssetAccount(GenericValue account)
|
static boolean |
isCreditAccount(GenericValue account)
|
static boolean |
isDebitAccount(GenericValue account)
|
static boolean |
isDisbursement(GenericValue payment)
|
static boolean |
isEquityAccount(GenericValue account)
|
static boolean |
isExpenseAccount(GenericValue account)
|
static boolean |
isIncomeAccount(GenericValue account)
|
static boolean |
isInvoiceType(GenericValue invoice,
java.lang.String inputTypeId)
Checks if a invoice is of a specified InvoiceType.invoiceTypeId. |
static boolean |
isLiabilityAccount(GenericValue account)
|
static boolean |
isPaymentType(GenericValue payment,
java.lang.String inputTypeId)
Checks if a payment is of a specified PaymentType.paymentTypeId. |
static boolean |
isPurchaseInvoice(GenericValue invoice)
|
static boolean |
isReceipt(GenericValue payment)
|
static boolean |
isRevenueAccount(GenericValue account)
|
static boolean |
isSalesInvoice(GenericValue invoice)
|
static boolean |
isTaxPayment(GenericValue payment)
|
static boolean |
isTemplate(GenericValue invoice)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String module
| Constructor Detail |
|---|
public UtilAccounting()
| Method Detail |
|---|
public static java.lang.String getProductOrgGlAccountId(java.lang.String productId,
java.lang.String glAccountTypeId,
java.lang.String organizationPartyId,
Delegator delegator)
throws AccountingException
productId - When searching for ProductGlAccounts, specify the productIdglAccountTypeId - The default glAccountTypeId to look for if no ProductGlAccount is foundorganizationPartyId - The organization party of the default account
AccountingException - When the no accounts found or an entity exception occurs
public static java.lang.String getDefaultAccountId(java.lang.String glAccountTypeId,
java.lang.String organizationPartyId,
Delegator delegator)
throws AccountingException
glAccountTypeId - The type of accountorganizationPartyId - The organization of the account
AccountingException - When the default is not configured
public static java.math.BigDecimal getNetBalance(GenericValue account,
java.lang.String debugModule)
account - - GlAccountHistory or GlAccountAndHistory value
public static java.math.BigDecimal getNetBalance(GenericValue account)
throws GenericEntityException
GenericEntityException
public static java.util.List<java.lang.String> getDescendantGlAccountClassIds(GenericValue glAccountClass)
throws GenericEntityException
GenericEntityException
public static boolean isPaymentType(GenericValue payment,
java.lang.String inputTypeId)
throws GenericEntityException
GenericEntityException
public static boolean isTaxPayment(GenericValue payment)
throws GenericEntityException
GenericEntityException
public static boolean isDisbursement(GenericValue payment)
throws GenericEntityException
GenericEntityException
public static boolean isReceipt(GenericValue payment)
throws GenericEntityException
GenericEntityException
public static boolean isAccountClassClass(GenericValue glAccountClass,
java.lang.String parentGlAccountClassId)
throws GenericEntityException
GenericEntityException
public static boolean isAccountClass(GenericValue glAccount,
java.lang.String glAccountClassId)
throws GenericEntityException
GenericEntityException
public static boolean isDebitAccount(GenericValue account)
throws GenericEntityException
GenericEntityException
public static boolean isCreditAccount(GenericValue account)
throws GenericEntityException
GenericEntityException
public static boolean isAssetAccount(GenericValue account)
throws GenericEntityException
GenericEntityException
public static boolean isLiabilityAccount(GenericValue account)
throws GenericEntityException
GenericEntityException
public static boolean isEquityAccount(GenericValue account)
throws GenericEntityException
GenericEntityException
public static boolean isIncomeAccount(GenericValue account)
throws GenericEntityException
GenericEntityException
public static boolean isRevenueAccount(GenericValue account)
throws GenericEntityException
GenericEntityException
public static boolean isExpenseAccount(GenericValue account)
throws GenericEntityException
GenericEntityException
public static boolean isInvoiceType(GenericValue invoice,
java.lang.String inputTypeId)
throws GenericEntityException
GenericEntityException
public static boolean isPurchaseInvoice(GenericValue invoice)
throws GenericEntityException
GenericEntityException
public static boolean isSalesInvoice(GenericValue invoice)
throws GenericEntityException
GenericEntityException
public static boolean isTemplate(GenericValue invoice)
throws GenericEntityException
GenericEntityException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||