davidkopp / flying-dutchman

2 stars 0 forks source link

Splitting the bill #8

Open davidkopp opened 2 years ago

davidkopp commented 2 years ago

Requirement specification:

Bartender, Waiter and Waitress should be able to: Get order for certain table a. Change items on order b. Allow for splitting the bill

Idea for the view for guests:

davidkopp commented 2 years ago

Proposal for a model structure for bills:

[
    {
        "id": "1",
        "type": "single", // single, split
        "vipAccount": false,
        "timestamp": "2022-02-18T12:46:13Z",
        "amountSEK": "160"
    },
    {
        "id": "2",
        "type": "split", // single, split
        "split": "4", // amount will be split equally by 4
        "vipAccount": false,
        "timestamp": "2022-02-18T12:46:13Z",
        "amountSEK": "160"
    }
]