[Figma]
[Predesign]
Feature Description
Implement a ‘Split by date’ flow that does the following:
- Adds a third split options at the top of the split table: Amount, Percentage, (these should already exist) and Date (this is the new one)
- When the user taps 'Date' in the split menu we'll change the view of the split table like so:
- Add a date picker for Start Date in the UI
- Add a date picker for End Date in the UI
- When the user confirms the dates, use the selected dates to overrwrite the existing splits in the table, creating one split for each day of the date range selected.
- Set the amounts of the individual splits to equal proportions of the original expense amount.
Important Notes:
- We'll maintain the logic and copy for our current warnings/errors on saving splits where the sum of the splits differs from the original transaction amounts.
- The 'Date' mode button will not be available when editing splits to avoid adding more logic to start
Enabling Date Mode
- User taps
More > Split
- User taps the
Date pill
Setting Dates and Generating Splits
- User taps
Split dates
- Date picker for start date launches
- User taps the preferred start date +
Save
- Date picker for the end date launches
- User taps the preferred end date +
Save
- User taps
Save to confirm their dates
- We generate a split per day, setting the amounts equally for all splits, adding to the original transaction amount
Editing Dates and Regenerating Splits
- User taps
Split dates field, with current dates and number of days shown.
- Split dates page shows, no date picker launches automatically
- User taps
End date
- User taps the preferred end date +
Save
- User taps
Save to confirm their dates
- We clear the existing splits and generate a split per day for the updated dates, setting the amounts equally for all splits, adding to the original transaction amount
Manual Test Steps
Enabling Date Mode:
- Submitter creates an expense for $200.
- Submitter taps 'Split' from the 'More' menu. Two even splits are created in the Split table, each for $100.
- Submitter taps the 'Date' pill
- Verify the pill is selected and the
Split dates field shows
Changing Dates:
- After step 3 above, tap on
Split dates
- Verify that the Split dates page opens
- Verify that the date picker opens to the month the original transaction date is in
- Set the start date as the 16th
- Verify that the date picker opens to the month the original transaction date is in
- Tap
Save
- Verify that the date picker opens to the month the original transaction date is in again for the end date
- Set the end date as the 18th and tap
Save
- Tap
Save in the Split dates page
- Verify three splits are created with equal amounts adding up to the original transaction amount
Automated Tests
Issue Owner
Current Issue Owner: @garrettmknight
Follow up to Expense Splitting in NewDot
[Figma]
[Predesign]
Feature Description
Implement a ‘Split by date’ flow that does the following:
Important Notes:
Enabling Date Mode
More>SplitDatepillSetting Dates and Generating Splits
Split datesSaveSaveSaveto confirm their datesEditing Dates and Regenerating Splits
Split datesfield, with current dates and number of days shown.End dateSaveSaveto confirm their datesManual Test Steps
Enabling Date Mode:
Split datesfield showsChanging Dates:
Split datesSaveSaveSavein the Split dates pageAutomated Tests
Issue Owner
Current Issue Owner: @garrettmknight