SalesPoint Framework v3.0

Hook: Define DataBasket Entry Grouping


Requirement

The entries of a DataBasket need to be grouped before displaying them.

For example, if a user removes 7 apples and later 5 more apples from a CountingStock, using the same DataBasket for both operations, the DataBasket might afterwards contain two entries, one describing the removal of 7 apples, the other one the removal of the 5 additional apples. When presenting the contents of the DataBasket, you might want to hide these details from the user and rather present one entry telling about 12 apples having been removed from the CountingStock. In this case you may have to group the DataBasket's entries before displaying them. This is an implementation of the hook.

Method of Adaptation
Enable Feature
Level of Support
Parameter Pattern  
HotSpot
Standard User Interaction for Data Management
Participants
DataBasketEntryGrouper, NewEntryGrouper

Changes

  1. implementation NewEntryGrouper of DataBasketEntryGrouper.
  2. NewEntryGrouper.canGroup implements DataBasketEntryGrouper.canGroup .
  3. NewEntryGrouper.group implements DataBasketEntryGrouper.group .

Constraints

Comments


SalesPoint Framework v3.0