julien-nc / cospend-nc

💰 💲hared budget manager Nextcloud app
GNU Affero General Public License v3.0
236 stars 29 forks source link

Custom split amounts: total bill amount is silently dismissed #253

Open Freeedim opened 10 months ago

Freeedim commented 10 months ago

When selecting the custom split amounts option, the entered amounts are not reconciled with the total bill amount.

We can therefore have a total amount of 20 for three participants with their individual amounts being 10, 11 and 13, which results in a total of 34.

I realise making the custom individual amounts prevail over the total amount or not is a matter of personal preference and convenience (both in UI/UX and development) and I am fine with it.

However, I think there should be an indication that the total amount entered above in the form is disregarded as soon as the custom split amounts option is selected. It could be with a popup message and/or greying the total amount.

An alternative functioning I can think of would be:

blipp commented 2 months ago

@Freeedim do you still have this problem in Cospend App version 1.6.1?

For me, when I select the option “custom owed amount per member”, the “How much?” field gets greyed out. Then, whenever I update a custom individual amount, the total amount in the “How much?” field gets updated. Even if I entered an amount into the “How much?” field before selecting “custom owed amount per member”, this value then gets updated/overridden. So, it seems to me that I cannot produce a mismatch between the total and the sum of the custom individual amounts.