| java.lang.Object org.ofbiz.accounting.util.UtilAccounting
UtilAccounting | public class UtilAccounting (Code) | | |
getDefaultAccountId | public static String getDefaultAccountId(String glAccountTypeId, String organizationPartyId, GenericDelegator delegator) throws AccountingException(Code) | | As above, but explicitly looking for default account for given type and organization
Parameters: glAccountTypeId - The type of account Parameters: organizationPartyId - The organization of the account The default account ID (glAccountId) for this type throws: AccountingException - When the default is not configured |
getNetBalance | public static Double getNetBalance(GenericValue account, String debugModule)(Code) | | 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
Parameters: account - - GlAccountHistory or GlAccountAndHistory value balance - a Double |
getProductOrgGlAccountId | public static String getProductOrgGlAccountId(String productId, String glAccountTypeId, String organizationPartyId, GenericDelegator delegator) throws AccountingException(Code) | | Get the GL Account for a product or the default account type based on input. This replaces the simple-method service
getProductOrgGlAccount. First it will look in ProductGlAccount using the primary keys productId and
productGlAccountTypeId. If none is found, it will look up GlAccountTypeDefault to find the default account for
organizationPartyId with type glAccountTypeId.
Parameters: productId - When searching for ProductGlAccounts, specify the productId Parameters: glAccountTypeId - The default glAccountTypeId to look for if no ProductGlAccount is found Parameters: organizationPartyId - The organization party of the default account The account ID (glAccountId) found throws: AccountingException - When the no accounts found or an entity exception occurs |
isAccountClass | public static boolean isAccountClass(GenericValue glAccount, String glAccountClassId) throws GenericEntityException(Code) | | Checks if a GL account is of a specified GlAccountClass.glAccountClassId. Returns false if account is null. It's better to use the
more specific calls like isDebitAccount().
|
isAccountClassClass | public static boolean isAccountClassClass(GenericValue glAccountClass, String parentGlAccountClassId) throws GenericEntityException(Code) | | Determines if a glAccountClass is of a child of a certain parent glAccountClass.
|
isPaymentType | public static boolean isPaymentType(GenericValue payment, String inputTypeId) throws GenericEntityException(Code) | | Checks if a payment is of a specified PaymentType.paymentTypeId. Return false if payment is null. It's better to use the
more specific calls like isTaxPayment().
|
|
|