-
Notifications
You must be signed in to change notification settings - Fork 270
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
Split bill by amount or percentage. #471
Comments
Hi, thanks for opening a discussion here ! Do you have a copy of the UX these projects use to accomplish this? |
Okay, thanks for the info. I wonder if we want to do this, I fear it will clutter a bit the UI. What do other involved contributors think ? (cc @eMerzh @0livd @JocelynDelalande) |
and @Glandos, of course! |
I would clearly not do this by default (like not in the main path...) But maybe behind an advance option or smth.... |
UI-wise : for that king of needs, on the add bill popup, we could have two tabs :
note: it would have to play nice with user weights. The impact on db would be quite important also. |
For me, this is one of the main aspects we should consider. Supporting this scenario means that the API will change quite a bit, and I'm a bit reluctant to this. Also, UI-wise, IHM always has been as simple as can be, and I believe it's the wise path. Any other input would be useful :-) |
I'm mostly leaning towards the "we should not go that way", because it seems to be a complex use case that I'm not sure will be useful to the vast majority of users. So unless we have other inputs, I'm thinking about rejecting the idea. |
Closing as a wontfix. Feel free to re-open if you want to discuss further. |
I'm surprised this is considered a complex and rare use case. In my experience, the vast majority of expenses need to be split in a personalized way. The lack of this feature in open source/free solutions is why some people (including me) are stuck with Tricount. |
@2lafru To be honest, I had the use case a couple days ago where we had to split a restaurant bill and one person haven't had drinks. The way I did it was to create two bills:
I think we could have a wizard that allow to create a split bills with custom amount per people and then create multiple bills accordingly, those we could keep the API simple and handle this use case for some people. |
It's my experience : I've been using the app since its conception and i never did miss this feature, so considering this as an "urgent" use case or something that we should "absolutely" doesn't seem right. That being said, allowing this use case via a different UI might be acceptable. We should take extra care about not making the UX more complex that it already is. |
I plan on implementing this feature. The first step is to refactor the code so that the api can diverge. |
I am really curious on this :) |
@Glandos @almet @Natim @2lafru If you guys would like to make an attempt the tree I'm working on is here: New additional weight fields in the add bill screen. Amount due changes dynamically, when the weights are changed. |
@DavidRThrashJr I have created a demo project with 2 participants and 1 bill. Then switch to your branch, and I got this:
I don't know how you managed to reach your screenshot. |
@Glandos Try again with my latest commit. |
Hi, as I was looking for a self-hosted tricount alternative, I found out about this project, not being able to distribute a bill unevenly almost ruled it out for me (and luckily I dug up this issue). UI doesn't have to be sacrificed either, here is how it looks in tricount, which is pretty much what @JocelynDelalande proposes. Thanks @DavidRThrashJr for pushing this :) |
The UI is not the only thing, but clearly, the Tricount design shows that it is easier for a user to enter an amount instead of a weight. |
@Glandos @indatwood |
The advanced toggle switch is enabled for all projects. You can set the project to be in the advanced mode by default, for those who always use the advanced mode it saves a button press. Please note that currently, you can specify the weights for each person at the project level. It doesn't make sense to have weights at the project level and the bill level. My proposal is to allow users to still be able to set the weights for each person at the project level. What will happen is, if the weights for each person at the project level is not set to 1 (default). Then when creating a new bill, the form will automatically populate with the weights that are set at the project level. @Glandos @indatwood @almet |
I'm currently using weights for a full project, so I'll be glad if it's still working. |
There wouldn't be a clean transition to what I proposed. The function to calculate what is owed won't use the project level weights anymore. Only the weights on the bill level will be used to calculate what is owed. I could write a transition script to set the bill level to be what is set at the project level during the upgrade to the new version.
No it would not change those weights. If the user wants to modify the "default" weight they would have to go back to the project level settings and modify the setting there. The easiest solution would be to only have the advanced toggle switch show up if the user wants the advanced mode. Basically you get one or the other you can't have both project level weights and bill level weights. |
Thanks for working on this :-) At first, I found it weird to use weights rather than direct amounts, but I now understand this is due to the naming. Especially if we are using weights on the project, then I think we shouldn't name the two concepts the same way. What about percentage? I think it betters explains what it does. Also, would it be complicated to add the direct amounts? |
@DavidRThrashJr Both weighting mechanisms could be used in combination to ease the transition, I think it's fine as long as it's clear what the effect is:
¹ editable in the bill form I even think it's even preferable like this, because the calculations are everywhere consistent (and not dependent on set preferences). |
@indatwood : what do you do with/how do you name "percentages" whose sum isn't bound to equal 100? |
Thanks for the feedback, You can test and use the demo project I have hosted here: If we go this route, a migration script has to be made moving whatever is in the project level weights into the newly created weight column in the billowers table. Would someone else be willing to take a stab at this? I need to start developing api v2. |
Thanks @DavidRThrashJr ; this is an hard design exercise. Just tested quickly, a few remarks : why advanced mode is enabled by default ?bill weights vs bill ammount stuff
That is a very mathematics approach, hard to understand for end-user. I think we have to implement @Glandos suggestion : fully showing in UI, that amounts are expected. Manually using weights at bill-level stuff should be IMHO an extra-feature, to be added as a separate feature/UI. In backend, it could remain handled as weights : it will ease to expose that bill-level-weight as-is as another mode later, and helps answering the « what happens when the bill amount is updated ». using person weights as template rather than variable kills original weights use caseWhen changing a person weight, the fact it does not impact the whole project but rather become a default kills my whole usecase for person-level weights I explain : I spend a couple of days with a group. The group is not stable : we shop and cook and share meals together. But not everyone attend to every meal. At the end of those days, to account how many meals each person owe, we set weights afterwards, with the final meals counts. I implemented the weights feature for that exact use case, and I might not be the only person using it that way, so I will be very careful that it do not gets unusable :-. One approach could be, for person weights :
Maybe to ease tracking of bills with overriden split, we could keep a
What is the URL stuff ?It seems not any related with bill splittig. |
@DavidRThrashJr I think I found a bug with http://23.95.228.117:5000/demo , or there is something I don't understand:
I think this complements Jocelyn's analysis that the original "weight" feature has a different semantic than this proposed feature, and mixing the two concepts may be really confusing. |
@JocelynDelalande
Saves you an extra button click, if you use the advanced mode a lot.
I'm going to stand my ground on this one as it passed the "wife usability check" ;) On another note, do you guys mind if I remove the "For whom?" label on the bill creation screen. It's not mobile friendly, while in "advanced mode". As in the Due column doesn't fit on screen. |
Thanks for your work on this! I'm sorry to jump on this, but "wife usability test", seems inappropriate to me : we don't know your wife nor her experience with computers, and it seems to rely on the false premise that "women are bad at tech". On the topic, I think we should decide together what the ux should be here if possible. My stake on this is I that using amounts seem to cover better the use case I have in mind : we went to the restaurant, and we split things unevenly. We have the bill so we know what the amounts are. Why not using weights for this but, what's your use case? |
Not what I meant. She's my most important customer, so her opinions have an impact on the product.
The way I have it now, this use case and others can be satisfied. A use case that involves percentages is: |
In the current demo, we can only set weight, and it updates amount. |
Actually, with the current demo, you are free to put an amount in the (unlabeled) "weight" field. It's just a bit weird because the "Due" column becomes useless for this use-case. |
I am new to the project, I just finished the Spanish translation. I like the "keep it simple" approach. I tried the demo server and it looks good. I'd like to suggest automatically adjusting the remaining amount when the first weight is changed in an bill. For example, there is a 2000$/month fill for rental, in a 5 member project I assign 1000 weight to the first member. The other 4 members would be adjusted to 250 equally. This would ensure the bill is fully accounted for. Does this make sense ? Should it be a manual option/button ("mainly paid by..") ? |
I found a few missing pieces when testing this at http://23.95.228.117:5000 <- invitation link to my test project :
|
This could be something we could add later, but let's get the main functionality merged first.
Yes, I was delaying the decision on how to handle this. Should we just hide the split amounts? Or replace it with "Custom Allocation"?
Two decimals will show if it's non-zero. i.e. 123.45
Yeah sorry this bug is know still need to fix it. If you enable "advanced" mode in the project settings it shows the correct amount. |
I am not sure what you mean here. I think it should behave the same as when first entering a new bill, I was expecting that.
If it's currency, I would expect to always see 2 decimals and the appropriate symbol ($, euro, etc.). Otherwise it doesn't feel consistent and can lead to think it's accepted in the project, lowering trust in its accuracy. |
I have just found this project and am considering using it for sharing expenses among a household. We'd rather not use Splitwise but I like that it offers 5 ways of splitting a bill:
To me, each of these methods is quite intuitive and I can imagine real world scenarios where I would use them. In my mind , each would be easy to implement in terms of another one with "exact amounts" being the parent of this tree of implementations. In any case, the logic isn't complicated. I haven't had a chance to look at the API yet, but once I do I will see what I can contribute and if it falls in line with the maintainers' vision for the UX. From a quick read of this thread, I'm not sure what is meant by "weights". If this is the same behavior as shares, then it is very important to me, probably the most important use case other than an equal split. |
@jimbo2106 did you give up on your changes? Should we start from scratch? For reference, this is how it looks like with a recent version of Tricount. One can set fixed amounts, and the rest is split between the others with the coefficients given. I rarely use fixed amounts, but the coefficients are quite useful. |
I personally am using Tricount. We never came to consensus on how to move forward. The project level weights are contentious with the bill level weights. My fork still works if you'd like to try it out. @hiqua |
Hi, if you want to have this merged here, (and that would be great), then you need to be open to discussion with the team who will be maintaining the project in the long term. My understanding is that we should input amounts here rather than weights, or at least make it possible to have both and have something easy to use. cf what @Glandos said :
Could you please recap what is blocking this to be merged? Thanks :-) |
I am interested to help with this feature, this is dearly wanted at home :) To make echo to the past discussion, we are 6, including 3 people totally uncomfortable with tech.
My 2 cents: this really depends on the situation but there are examples where percentages are hard to compute and don't really make sense. For instance, 6 people go in vacation together during a week and they rent a house. They all come and go at different times. They want to split the bills by the number of days passed in the house.
I am interested in reopening the discussion before spending time in the code. Sadly Jimbo's branch is too outdated now to be testable out-of-the-box but at least the code is still there. @Glandos would you have a bit of time to talk about this and summarize your thoughts 🙏? Maybe we can open a new ticket too to clean all the history. |
I agree with @azmeuk in my case I often use weight too. |
Having a way to split the bills with weights on a per-bill basis makes sense to me, and I believe is filling a different gap than per-project weights. +1 to opening a new conversation and making this clearer, hoping this time we will make it trough. |
Any progress being made here? It's the only feature stopping me from using this app. |
After a discussion with @zorun, we're leaning towards having two mechanisms for the weights:
When a change occurs in the default per-project weights, all bills without a specific weight defined would now use the new weights. |
To me, the way a bill is split between members is up to the participants. It could be easy or complex, the duty of the participants is to decide based on their split criteria. I hope this can be developed, |
Just to let you know, spliit (FOSS) does implement this feature. |
Certain applications like Kittysplit and GroupTabs allow for splitting a bill unequally. This is useful in situations like a restaurant where one person may pay for multiple people's meals.
This can be emulated by separate bills for each check, but really the bills should be grouped together logically and the alternative is tedious.
The text was updated successfully, but these errors were encountered: