Class ReportsUtility


  • public class ReportsUtility
    extends Object
    This class provides methods to retrieve the Initial Balance of a customer for a given date and Accounting Schema
    • Method Detail

      • getBeginningBalance

        public static BigDecimal getBeginningBalance​(String orgId,
                                                     String acctSchemaId,
                                                     String bpartnerId,
                                                     String dateFrom)
        Return the Initial Balance of a Customer for the given date, Organization and Accounting Schema
        Parameters:
        orgId - Id of the Organization for which the Initial Balance would be retrieved
        acctSchemaId - Id of an Accounting Schema for which the Initial Balance would be retrieved
        bpartnerId - If of the Business Parter for which the Initial Balance would be retrieved
        dateFrom - Starting Date from which the Initial Balance should be calculated
        Returns:
        A BigDecimal that represents the Initial balance at that date, for the Business Partner
      • getBeginningBalance

        public static BigDecimal getBeginningBalance​(String orgId,
                                                     String acctSchemaId,
                                                     String bpartnerId,
                                                     String dateFrom,
                                                     boolean isCustomer)
        Return the Initial Balance of a Customer or Vendor for the given date, Organization and Accounting Schema
        Parameters:
        orgId - Id of the Organization for which the Initial Balance would be retrieved
        acctSchemaId - Id of an Accounting Schema for which the Initial Balance would be retrieved
        bpartnerId - If of the Business Parter for which the Initial Balance would be retrieved
        dateFrom - Starting Date from which the Initial Balance should be calculated
        isCustomer - If true, the Business Partner is considered a Customer, if not, it is considered a Vendor
        Returns:
        A BigDecimal that represents the Initial balance at that date, for the Business Partner
      • getBeginningBalance

        public static BigDecimal getBeginningBalance​(String orgId,
                                                     String acctSchemaId,
                                                     String bpartnerId,
                                                     String dateFrom,
                                                     boolean isCustomer,
                                                     String currency)
        Return the Initial Balance of a Customer or Vendor for the given date, Organization, Accounting Schema and Currency
        Parameters:
        orgId - Id of the Organization for which the Initial Balance would be retrieved
        acctSchemaId - Id of an Accounting Schema for which the Initial Balance would be retrieved
        bpartnerId - If of the Business Parter for which the Initial Balance would be retrieved
        dateFrom - Starting Date from which the Initial Balance should be calculated
        isCustomer - If true, the Business Partner is considered a Customer, if not, it is considered a Vendor
        currency - The Currency for which the Initial Balance will be calculated
        Returns:
        A BigDecimal that represents the Initial balance at that date, for the Business Partner