Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share the order by the proportion of each person's payment #5

Open
turboza opened this issue Jan 8, 2020 · 4 comments
Open

Share the order by the proportion of each person's payment #5

turboza opened this issue Jan 8, 2020 · 4 comments

Comments

@turboza
Copy link
Member

turboza commented Jan 8, 2020

Why?

Sometime, we want to split the share dish by the ratio of payment.
The one who pay more will get the share more.
And this can apply to the discount as well.

Use Case

See the comment #5 (comment)

What's the idea?

Introducing share% as a order name.

Example 1.

Split a 100 b 200 share% 30
a 110
b 220

Example 2.

Split a 100 b 200 share% -30
a 90
b 180

Example 3.
While if we use normal share, it will be split equally.

Split a 100 b 200 share -30
a 115
b 215

Thanks Ant for an idea.

@turboza
Copy link
Member Author

turboza commented Jan 8, 2020

Not sure, if we have share and share% together, which should be applied first?

@neofelisho
Copy link

Not sure, if we have share and share% together, which should be applied first?

IMO share should be applied first. Equally share the dish would be more common.

@turboza
Copy link
Member Author

turboza commented Jan 17, 2020

@neofelisho that makes sense. thanks for the opinion!

@turboza
Copy link
Member Author

turboza commented Jan 24, 2020

There are more use cases for this on tipping, (esp. in US restaurants).

Ex. when the total order value is $33 and we give a tip of $7. ($7 because it rounds to $40)
Then we want to split to all people by proportion rather than equal split.

Thanks to @natkus34cp36 for the suggestion.

@turboza turboza changed the title Share the order amount by the ratio of each person's payment Share the order by the proportion of each person's payment Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants