Package org.openbravo.erpCommon
Class ReportsUtility
- java.lang.Object
-
- org.openbravo.erpCommon.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 Schemastatic 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 Schemastatic 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
-
-
-
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 retrievedacctSchemaId
- Id of an Accounting Schema for which the Initial Balance would be retrievedbpartnerId
- If of the Business Parter for which the Initial Balance would be retrieveddateFrom
- 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 retrievedacctSchemaId
- Id of an Accounting Schema for which the Initial Balance would be retrievedbpartnerId
- If of the Business Parter for which the Initial Balance would be retrieveddateFrom
- Starting Date from which the Initial Balance should be calculatedisCustomer
- 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 retrievedacctSchemaId
- Id of an Accounting Schema for which the Initial Balance would be retrievedbpartnerId
- If of the Business Parter for which the Initial Balance would be retrieveddateFrom
- Starting Date from which the Initial Balance should be calculatedisCustomer
- If true, the Business Partner is considered a Customer, if not, it is considered a Vendorcurrency
- 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
-
-