Package de.hybris.platform.b2b.dao
Interface B2BBookingLineEntryDao
- All Known Implementing Classes:
DefaultB2BBookingLineEntryDao
public interface B2BBookingLineEntryDao
A dao around
B2BBookingLineEntryModel- Spring Bean ID:
- b2bBookingLineEntryDao
-
Method Summary
Modifier and TypeMethodDescriptionfindOpenBookingLineEntriesByCostCenterAndDate(List<B2BCostCenterModel> costCenters, Date bookingDate) Finds open booking linesfindTotalCostByCostCenterAndDate(B2BCostCenterModel costCenter, Date startDate, Date endDate) Gets the total cost of BookingLines between a particular date rangegetOpenBookingLineEntries(List<B2BCostCenterModel> costCenters, Date bookingDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4.getTotalCost(B2BCostCenterModel costCenter, Date startDate, Date endDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4.
-
Method Details
-
getTotalCost
@Deprecated(since="4.4", forRemoval=true) Double getTotalCost(B2BCostCenterModel costCenter, Date startDate, Date endDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4. UsefindTotalCostByCostCenterAndDate(B2BCostCenterModel,Date,Date)insteadGets the total cost of BookingLines between particular dates- Parameters:
costCenter- the costCenterstartDate- the startDate of the date rangeendDate- the endDate of the date range- Returns:
- amount of the total cost
-
findTotalCostByCostCenterAndDate
Double findTotalCostByCostCenterAndDate(B2BCostCenterModel costCenter, Date startDate, Date endDate) Gets the total cost of BookingLines between a particular date range- Parameters:
costCenter- the costCenterstartDate- the startDate of the date rangeendDate- the endDate of the date range- Returns:
- amount of the total cost
-
getOpenBookingLineEntries
@Deprecated(since="4.4", forRemoval=true) List<B2BBookingLineEntryModel> getOpenBookingLineEntries(List<B2BCostCenterModel> costCenters, Date bookingDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4. UsefindOpenBookingLineEntriesByCostCenterAndDate(List, Date)instead- Parameters:
costCenters-bookingDate-- Returns:
- a list of open bookings
-
findOpenBookingLineEntriesByCostCenterAndDate
List<B2BBookingLineEntryModel> findOpenBookingLineEntriesByCostCenterAndDate(List<B2BCostCenterModel> costCenters, Date bookingDate) Finds open booking lines- Parameters:
costCenters- the costCenterbookingDate- the booking date- Returns:
- a list of open bookings
-