-
Notifications
You must be signed in to change notification settings - Fork 2
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
Expense creation from Slack (both form as well as DE flow) #40
Conversation
…efault fields are mandatory
* Initial expense api fixes * Using foreign currency and amount from form metadata * Initial working expense via slack * Changed amount -> claim_amount * Added locations support * Moved upsert expense to background task * Fixed edit expense * Fixed update expense issue * fixed project change issue and project clear selection * Caching project before bg task * Caching expense id and msg ts for edit expense * minor * Refactored expense payload creation function * Merged receipt attach flow Co-authored-by: shreyanshs7 <shreyanshss7@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shreyanshs7 added few minor comments - can you those once?
|
||
fyle_expense = FyleExpense(user) | ||
|
||
expense_id = 'txCCVGvNpDMM' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shreyanshs7 please remove hard coded stuff
|
||
slack_client = get_slack_client(team_id) | ||
|
||
expense_id = 'txCCVGvNpDMM' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well
) | ||
|
||
return JsonResponse({}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can add one more line space
|
||
|
||
def handle_add_expense_to_report(self, slack_payload: Dict, user_id: str, team_id: str) -> JsonResponse: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove extra line space
* added expense de flow * Added try except block * Minor * Minor * Minor Co-authored-by: shreyanshs7 <shreyanshss7@gmail.com>
* Fix edit expense form modal bug * Minor change * More minor changes * Fix all the bugs
* Add trackers for expense creation from slack * Minor changes
No description provided.