nikensss/label-makeR

Set Minimum Order Quantity

Closed this issue · 1 comments

The roaster requires we set up a Minimum Order Quantity (MOQ). Thus, no user should be allowed to perform purchases of less than 30kg per unique item. To enforce this requirement, the UI of the selection page should include behaviour and cues that reflect this need, such as:

  • Develop internal logic that checks for such condition
  • Disable Next button until that condition is met
  • Display informative tooltips that inform the user of this requirement

For security, other checks should be made in later stages of the user flow. Namely, on purchase confirmation:

  • Purchase should be rejected if the order does not satisfy the MOQ

Clarification:
Any variation of existing products is considered a unique item itself. So Colombia 1kg is a different item from Colombia 250g, despite the only difference being the bag size. Consequently, 20Kg of Colombia 1kg and 20kg of Colombia 250g would not satisfy the MOQ requirement.

Consider defining a CoffeeOrigin class to manage each row's selection