Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Payment History modal receipt filenames should handle multiple same-day transaction edge case #4605

Closed
willy-b opened this issue Oct 7, 2016 · 3 comments · Fixed by #4632

Comments

@willy-b
Copy link
Contributor

willy-b commented Oct 7, 2016

Did you search for similar issues before submitting this one?

Yes. This is in response to comments from @alexwykoff and @mrose17 in #4332:
#4332 (comment)

Describe the issue you encountered:
Quoting @alexwykoff:
"what about the edge case of multiple transactions on the same day? should there be a differentiator for the file name? otherwise the user is likely to overwrite their own file on export."

Currently, if a developer manually triggers mutliple reconciliations in a single day, the receipt CSVs will have the same suggested/displayed filename, e.g. brave_ledger10-7-2016.csv, as the filename is based on the date at day resolution.

Expected behavior:

When a given day has multiple transactions/reconciliations, the receipt filenames after the first should take on a suffix to distinguish them, e.g. brave_ledger10-7-2016.csv for the 1st transaction and brave_ledger10-7-2016_2.csv for the 2nd.

@mrose17
Copy link
Member

mrose17 commented Oct 10, 2016

@willy-b - can you submit a PR for this? thanks!

@willy-b
Copy link
Contributor Author

willy-b commented Oct 10, 2016

you got it: ~~~#4605~~~ (EDIT: #4632 ) fixes this.

@mrose17
Copy link
Member

mrose17 commented Oct 10, 2016

i think that's #4632

thanks!

@diracdeltas - could you review? thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants