Discount calculations per location #43

Open
opened 2020-02-25 19:37:58 +00:00 by midgard · 0 comments
midgard commented 2020-02-25 19:37:58 +00:00 (Migrated from git.zeus.gent)

Simpizza has the following discount logic for take-aways:

  • Per size:
    • Per three pizzas: give one for free
    • For the remaining pizzas: S €7.95, M €10.45, L €12.95

Implement discount blocks:

discount
    for size in "small", "medium", "large":
        pizzas = sum(1 for item in order if item choices.size == size)
        award_discount(...)
Simpizza has the following discount logic for take-aways: - Per size: - Per three pizzas: give one for free - For the remaining pizzas: S €7.95, M €10.45, L €12.95 Implement discount blocks: ``` discount for size in "small", "medium", "large": pizzas = sum(1 for item in order if item choices.size == size) award_discount(...) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Haldis/haldis#43
No description provided.