T - the b2b cost centerU - the customerpublic interface B2BCostCenterService<T,U extends UserModel>
B2BCostCenterModel.| Modifier and Type | Method and Description |
|---|---|
java.util.Set<CurrencyModel> |
findAvailableCurrencies(B2BUnitModel unit)
Deprecated.
As of hybris 4.4, replaced by
getAvailableCurrencies(B2BUnitModel) |
java.util.Set<CurrencyModel> |
findAvailableCurrencies(UserModel user)
Deprecated.
As of hybris 4.4, replaced by
getAvailableCurrencies(UserModel) |
T |
findByCode(java.lang.String code)
Deprecated.
As of hybris 4.4, replaced by
getCostCenterForCode(String) |
java.util.List<T> |
findCostCenters(B2BUnitModel unit,
CurrencyModel currency)
Deprecated.
As of hybris 4.4
|
java.util.List<T> |
findCostCentersForUnitBranch(B2BUnitModel unit,
CurrencyModel currency)
Deprecated.
As of hybris 4.4, replaced by
getCostCentersForUnitBranch(B2BUnitModel, CurrencyModel) |
java.util.List<T> |
findCostCentersForUnitBranch(U customer,
CurrencyModel currency)
Deprecated.
As of hybris 4.4, replaced by
getCostCentersForUnitBranch(UserModel, CurrencyModel) |
java.util.List<B2BCostCenterModel> |
getAllCostCenters()
Returns all B2B Cost Centers to which the caller has visibility
|
java.util.Set<CurrencyModel> |
getAvailableCurrencies(B2BUnitModel unit)
Get available currencies based on a unit and cost centers associated to the unit.
|
java.util.Set<CurrencyModel> |
getAvailableCurrencies(UserModel user)
Get available currencies based on a user
|
B2BBudgetModel |
getB2BBudgetForCode(java.lang.String code)
Deprecated.
Since 6.0. Use
B2BBudgetService.getB2BBudgetForCode(String) |
java.util.Set<B2BBudgetModel> |
getB2BBudgets()
Deprecated.
Since 6.0. Use
B2BBudgetService.getB2BBudgets() |
B2BCostCenterModel |
getB2BCostCenterForCode(java.lang.String code)
Deprecated.
Since 4.4. Use
getCostCenterForCode(String) Returns B2BCostCenterMode of specified
code. Returns null if none is found. |
java.util.Set<B2BCostCenterModel> |
getB2BCostCenters(java.util.List<AbstractOrderEntryModel> entries)
Collects all the cost centers linked to order entries into a single collection.
|
T |
getCostCenterForCode(java.lang.String code)
Get cost center for a code.
|
java.util.List<T> |
getCostCentersForUnitBranch(B2BUnitModel unit,
CurrencyModel currency)
Gets all cost centers for given currency by looking at each unit of the branch and their cost centers.
|
java.util.List<T> |
getCostCentersForUnitBranch(U customer,
CurrencyModel currency)
Gets all cost centers for given currency by looking at each unit of the branch and their cost centers.
|
java.util.Collection<B2BBudgetModel> |
getCurrentBudgets(T costCenter)
Deprecated.
Since 4.4. Use
B2BBudgetService.getCurrentBudgets(de.hybris.platform.b2b.model.B2BCostCenterModel) Gets
the current budgets that are active based on a cost center for the session currency |
java.lang.Double |
getTotalCost(T costCenter,
java.util.Date startDate,
java.util.Date endDate)
Calculates the total cost for a cost center with a data range
|
boolean |
isCostCenterExisting(java.lang.String code)
Checks whether the cost center exists regardless of visibility constraints
|
@Deprecated java.util.List<T> findCostCentersForUnitBranch(U customer, CurrencyModel currency)
getCostCentersForUnitBranch(UserModel, CurrencyModel)customer - The logged in b2b customercurrency - The sessions currencyjava.util.List<T> getCostCentersForUnitBranch(U customer, CurrencyModel currency)
customer - The logged in b2b customercurrency - The sessions currency@Deprecated java.util.List<T> findCostCentersForUnitBranch(B2BUnitModel unit, CurrencyModel currency)
getCostCentersForUnitBranch(B2BUnitModel, CurrencyModel)unit - A b2b unitcurrency - The sessions currencyjava.util.List<T> getCostCentersForUnitBranch(B2BUnitModel unit, CurrencyModel currency)
unit - A b2b unitcurrency - The sessions currency@Deprecated T findByCode(java.lang.String code)
getCostCenterForCode(String)code - the codeT getCostCenterForCode(java.lang.String code)
code - the code@Deprecated java.util.Set<CurrencyModel> findAvailableCurrencies(B2BUnitModel unit)
getAvailableCurrencies(B2BUnitModel)unit - the unitjava.util.Set<CurrencyModel> getAvailableCurrencies(B2BUnitModel unit)
unit - the unit@Deprecated java.util.Set<CurrencyModel> findAvailableCurrencies(UserModel user)
getAvailableCurrencies(UserModel)user - the session user.java.util.Set<CurrencyModel> getAvailableCurrencies(UserModel user)
user - the session user.@Deprecated java.util.Collection<B2BBudgetModel> getCurrentBudgets(T costCenter)
B2BBudgetService.getCurrentBudgets(de.hybris.platform.b2b.model.B2BCostCenterModel) Gets
the current budgets that are active based on a cost center for the session currencycostCenter - the cost centerjava.lang.Double getTotalCost(T costCenter, java.util.Date startDate, java.util.Date endDate)
costCenter - the cost centerstartDate - the start dateendDate - the end date@Deprecated java.util.List<T> findCostCenters(B2BUnitModel unit, CurrencyModel currency)
unit - the unitcurrency - the currency@Deprecated B2BCostCenterModel getB2BCostCenterForCode(java.lang.String code)
getCostCenterForCode(String) Returns B2BCostCenterMode of specified
code. Returns null if none is found.code - @Deprecated B2BBudgetModel getB2BBudgetForCode(java.lang.String code)
B2BBudgetService.getB2BBudgetForCode(String)B2BBudgetModel of specified code. Returns null if none found.code - the code@Deprecated java.util.Set<B2BBudgetModel> getB2BBudgets()
B2BBudgetService.getB2BBudgets()B2BBudgetModel all B2BBudgets to which the caller has visiblityboolean isCostCenterExisting(java.lang.String code)
code - java.util.Set<B2BCostCenterModel> getB2BCostCenters(java.util.List<AbstractOrderEntryModel> entries)
entries - Entries of an orderjava.util.List<B2BCostCenterModel> getAllCostCenters()
Copyright © 2018 SAP SE. All Rights Reserved.