Skip to content
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

Merged
merged 93 commits into from
Jun 15, 2022
Merged

Conversation

shreyanshss7
Copy link
Contributor

No description provided.

shreyanshs7 and others added 5 commits May 6, 2022 15:01
* 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>
Copy link
Contributor

@jatzz10 jatzz10 left a 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'
Copy link
Contributor

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'
Copy link
Contributor

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({})

Copy link
Contributor

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:

Copy link
Contributor

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

@jatzz10 jatzz10 changed the title Slack expense form flow Expense creation from Slack (both form as well as DE flow) Jun 15, 2022
@jatzz10 jatzz10 merged commit b769fc5 into master Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants