All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
protected boolean |
alertSent(B2BCreditLimitModel creditLimit,
StandardDateRange creditLimitDateRange) |
To determine if credit limit alert is already sent for current date range period
|
java.util.Set<B2BMerchantCheckResultModel> |
evaluate(AbstractOrderModel order,
B2BCustomerModel customer) |
Evaluate.
|
B2BCostCenterService |
getB2bCostCenterService() |
|
protected B2BCurrencyConversionService |
getB2bCurrencyConversionService() |
|
protected B2BDateUtils |
getB2bDateUtils() |
|
protected B2BOrderDao |
getB2bOrderDao() |
|
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> |
getB2bUnitService() |
|
protected java.util.List<B2BCostCenterModel> |
getCostCentersForUnitWithCreditLimit(B2BUnitModel unit,
CurrencyModel currency) |
|
protected B2BCreditLimitModel |
getCreditLimitForCostCenter(B2BCostCenterModel costCenter,
CurrencyModel currency) |
|
protected StandardDateRange |
getDateRangeForCreditLimit(B2BCreditLimitModel creditLimit) |
|
protected java.math.BigDecimal |
getOrderEntryTotal(AbstractOrderEntryModel entry) |
|
protected java.lang.Double |
getTotalCost(java.util.List<B2BCostCenterModel> costCenters,
StandardDateRange standardDateRange) |
|
protected java.math.BigDecimal |
getTotalOfEntriesWithCostCenter(B2BCostCenterModel costCenter,
java.util.List<AbstractOrderEntryModel> entries) |
|
protected java.math.BigDecimal |
getTotalTax(AbstractOrderEntryModel orderEntry) |
|
java.util.Set<B2BCreditLimitModel> |
getTypesToEvaluate(B2BCustomerModel customer,
AbstractOrderModel order) |
|
void |
setB2bCostCenterService(B2BCostCenterService b2bCostCenterService) |
|
void |
setB2bCurrencyConversionService(B2BCurrencyConversionService b2bCurrencyConversionService) |
|
void |
setB2bDateUtils(B2BDateUtils b2bDateUtils) |
|
void |
setB2bOrderDao(B2BOrderDao b2bOrderDao) |
|
void |
setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService) |
|
protected boolean |
shouldCreditLimitTriggerAlert(java.math.BigDecimal orderTotals,
B2BCreditLimitModel creditLimit,
StandardDateRange creditLimitDateRange) |
To determine if an alert is to be sent to the B2BCustomer based on exceeding a limit and alertSentDate and update
alertSentDate
|
protected java.math.BigDecimal |
toMoney(java.lang.Double orderTotal) |
|