Implemented uploading xml files on expense import page #1982
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@beganovich @turbo124 The PR includes the implementation of XML file uploading for expenses. The functionality includes accepting only
.xml
files along withCHECKING
the length of lines that the file is made of. If the file has only one line, we will display a message in the toaster from thexml_lines_length
keyword (we are missing this keyword from the files, if you agree, please just add it there). The payload is constructed from theimport_type: expense
andfiles as binary type
. There is also functionality forREMOVING
files after they are uploaded. For the final import of files I used/api/v1/edocument/upload
POST route. Screenshots:Note
: We miss "xml_file" translation keyword, if you would agree, please just add it into files.Closes: #1904
Let me know your thoughts.