-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Feature 7] Design and Implement Bill Splitter. #11
Comments
TODO: #15 (review) |
I'm not sure if I understand how the bill splitter works. From my current thought, it works as one of the following examples: (1) A, B, C, and D had dinner together and A paid the bill altogether at first, being recorded as an entry in A's bill. Then, A, as a user, decided to split the bill, creating 3 split entries for B, C, and D respectively, and A's bill shows the information on these entries including the amount of money they should pay to A as well as whether they paid back. (2) A, B, C, and D had dinner together and A paid the bill altogether at first, being recorded as an entry in A's bill. Then, A, as a user, decided to split the bill, creating 3 split entries for B, C, and D respectively in a splitter bill from A, and the splitter bill shows the information on these entries including the amount of money they should pay to A as well as whether they paid back. If neither (QAQ), is there any example that helps me with this? |
For example, if you paid the bill and there are three people who need to pay some money back. You opened our software and first created a new entry in your main bill. The value should be the total amount of money you spent. Then, you double-clicked the splitter attribute of the entry you just created. A new splitter bill would be created. In the new splitter bill, you add 3 entries, each specifying which people should pay how much value back. |
Initiations
Design
Implementation Details
Database Specifications
Table Name:
bill_{bill_id}
Table Specifications:
entry_id
INT
date
TIMESTAMP
value
DECIMAL(16, 2)
value
to have 16 integer places and 2 decimal places.value
here is the amount of money that the payee needs to pay.currency
CHAR(3)
description
TEXT
from
TEXT
to
TEXT
location
TEXT
payee
TEXT
paid_back
BOOLEAN
Related Use Case and Details
BillUpdateUseCase
.currentBill
in the User class as this bill id.currentBill
to the bill id of the main bill of this user, and then callBillUpdateUseCase
.AbstractEntry
should have the same values as the parent entry. Inherited columns:date
,currency
,from
,to
,location
TODOs
UpdateBillUseCase
to this functionality.Use Case Update: Insert Entry Use Case
InsertEntryUseCase
#51If you are willing to participate in the development of this feature, please feel free to assign yourself as an assignee.
The text was updated successfully, but these errors were encountered: