bill-split

bill-split Used AI

5 devlogs
7h 7m
•  Ship certified
Created by Elliot Zhang

Split the bill! Haggling over cash transfers after a group vacation? Make things easy, with no more than 6 money transfers! (Only up to 4 people though for now.)

Timeline

Ship 2

1 payout of shell 12.0 shells

Elliot Zhang

23 days ago

Elliot Zhang Covers 1 devlog and 1h 10m

I just pushed another major update. I invented usernames for the 4 users, and made the display update live for name changes. Also forms have color stripes for readability. Tweaked logic for better user flow - clicking submit payment now pops up printout immediately avoiding confusion

Update attachment

Ship 1

1 payout of shell 71.0 shells

Elliot Zhang

about 1 month ago

Elliot Zhang Covers 4 devlogs and 5h 57m

Friends! The glorious march towards ship continues. Myriad of QoL and misc improvements.

Update attachment

LOGIC OVERVIEW for the interested:
- input info comes from the form - amount paid by the payer, the ID of the person who paid the bill, the ID of the people receiving the food (or whatever item it is).
- this data is put into the newPay function, which splits amount into the amt owed by each recipient of the good. newPay() also checks the payer and receiver IDs in order to find the correct index (one of six values in an array) to modify, as well as whether to add or subtract this individual payment amount. This system means that cash transfers between 1-2 and 2-1 will cancel out into a single transfer (or even none if they perfectly cancel out).
The final output is handled again separately, printing out each channel and the value owed. Inversion occurs if it's negative (e.g. it says 2 owes 1 $5, not 1 owes 2 $-5)

Update attachment

Mockup UI updated! green color to symbolize money, nicer divs, banner and all that. Currently working on form functionality; good progress; stay tuned.

Update attachment

Hi! I'm making a system to help split and simplify payments between up to 4 people.
So far:
- basic code functionality is there in JS
- HTML form skeleton exists
Next steps:
- connect form input to the code, somehow
- success/error messages
- final result print out
- better css and web design

Update attachment