App icon indicating copy to clipboard operation
App copied to clipboard

[HIGH] Allow submitting reports which have smartscanning expenses on them

Open mountiny opened this issue 1 year ago • 8 comments

Problem

Coming from here cc @yuwenmemon

In OldDot world, we did not allow to submit a report which had an expense/ receipt still being smartscanned. This error is thrown here.

In NewDot, we are taking different approach for such expenses. For example in PayMoneyRequest, we move such transactions over to a new report. We would like to do the same when report is submitted.

Solution

Similarly to the PayMoneyRequest, if there are smartscanning receipts, move those expenses to a new Open/Processing report (depending on the policy settings), move over the report actions and push updates to the client.

These updates should provide:

  • new report
  • updated transactions
  • updated report actions
  • new report preview for the new report

In OldDot, per this comment from @trjExpensify, we should detect if any expenses are smartscanning in Web and show a confirmation modal if the user wants to wait with submission or proceed while creating a new report.

mountiny avatar Jan 26 '24 13:01 mountiny

Triggered auto assignment to @sonialiap (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details.

melvin-bot[bot] avatar Jan 26 '24 13:01 melvin-bot[bot]

So it looks like we hit the user with modal inception when they try to take this action:

image

Dismissing that reveals this:

image

So I'd vote we don't show the first one, and tweak that copy of the second one:

Not so fast! SmartScan still in progress. [Illustration]

The receipt will be moved to a different open report if you proceed with this action. You can otherwise wait for it finish, or manually edit the receipt by clicking on "Fill out the details".

[Tip: SmartScan your receipts at the register using our mobile app and they'll be done before you submit your report!]

[Submit] [Cancel]

trjExpensify avatar Jan 26 '24 13:01 trjExpensify

Interested in looking into this! @mountiny do you think this still needs to be a Weekly issue?

jasperhuangg avatar Feb 02 '24 01:02 jasperhuangg

cc ^ @greg-schroeder

jasperhuangg avatar Feb 02 '24 01:02 jasperhuangg

I think it could be a Daily!

mountiny avatar Feb 02 '24 01:02 mountiny

Updated

greg-schroeder avatar Feb 02 '24 05:02 greg-schroeder

@jasperhuangg you're working on this correct? If so can we remove the hot pick label?

blimpich avatar Feb 02 '24 22:02 blimpich

@jasperhuangg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar Feb 05 '24 15:02 melvin-bot[bot]

@jasperhuangg Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] avatar Feb 07 '24 15:02 melvin-bot[bot]

@jasperhuangg, confirming you're on this one?

trjExpensify avatar Feb 08 '24 02:02 trjExpensify

@trjExpensify yes! sorry, I've been prioritizing another HIGH priority issue I have and have also been looking into a fire. Looking to get started on this next week.

jasperhuangg avatar Feb 09 '24 02:02 jasperhuangg

Okay, sounds good!

trjExpensify avatar Feb 09 '24 11:02 trjExpensify

@jasperhuangg Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Feb 12 '24 15:02 melvin-bot[bot]

Looking into this today.

jasperhuangg avatar Feb 12 '24 18:02 jasperhuangg

I looked into the code and design docs a bit and sent this in Slack asking for some clarification on my plan for tackling this issue.

jasperhuangg avatar Feb 12 '24 20:02 jasperhuangg

Have some local changes, the changes are proving to be a bit more complex than I had imagined because we have to take into account updating the previousReportActionIDs of all the money request actions that are moved to the newly created expense report.

jasperhuangg avatar Feb 13 '24 00:02 jasperhuangg

It's been clarified here that the Auth changes aren't necessary anymore. We only need to make the Web-E changes outlined here

jasperhuangg avatar Feb 14 '24 04:02 jasperhuangg

@jasperhuangg Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] avatar Feb 19 '24 15:02 melvin-bot[bot]

We're still on HOLD for the changes in https://github.com/Expensify/Expensify/issues/359760

jasperhuangg avatar Feb 20 '24 20:02 jasperhuangg

Same ^

jasperhuangg avatar Feb 23 '24 20:02 jasperhuangg

Same ^^, it looks like the PR is almost ready for review

jasperhuangg avatar Feb 27 '24 04:02 jasperhuangg

@jasperhuangg Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Mar 01 '24 15:03 melvin-bot[bot]

^ Same

jasperhuangg avatar Mar 01 '24 18:03 jasperhuangg

Same ^

jasperhuangg avatar Mar 04 '24 18:03 jasperhuangg

Same ^

jasperhuangg avatar Mar 06 '24 21:03 jasperhuangg

Same ^, still on HOLD

jasperhuangg avatar Mar 12 '24 17:03 jasperhuangg

@jasperhuangg Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Mar 15 '24 19:03 melvin-bot[bot]

Still on HOLD ^

jasperhuangg avatar Mar 15 '24 19:03 jasperhuangg

Still on HOLD

jasperhuangg avatar Mar 18 '24 19:03 jasperhuangg

@jasperhuangg Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Mar 18 '24 19:03 melvin-bot[bot]