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

fix: Added a message to enable appointment booking if disabled #26233

Merged
merged 7 commits into from
Jul 2, 2021

Conversation

mohammedyusufshaikh
Copy link
Contributor

Initially If the appointment scheduling was disabled it use to route to 404 page but after the fix it shows a message to the user to enable the appointment booking scheduling from appointment booking settings
Screenshot 2021-06-28 at 2 26 48 PM

Resolves Issue #25965

@ruchamahabal
Copy link
Member

Congratulations on your first contribution 🥳

@ruchamahabal ruchamahabal merged commit 86f4183 into frappe:develop Jul 2, 2021
@ruchamahabal
Copy link
Member

@mohammedyusufshaikh please backport the same for version-13-hotfix branch too

@mohammedyusufshaikh
Copy link
Contributor Author

ok

@chrisdent
Copy link

If appointment scheduling is disabled the link for appointment booking in the portal for customer/supplier shouldn't appear? Just as a better experience for customer/supplier?

@ruchamahabal
Copy link
Member

@chrisdent Yes, that's always better but currently the standard portal menu items are hardcoded in hooks.py hence we cannot hide/show it programmatically.

{"title": _("Appointment Booking"), "route": "/book_appointment"},

The framework allows you to create your own website sidebar to override this.

asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
…e#26233)

* fix: Added a message to enable appointment booking if disabled

* refactor: added translation for the message

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>

* fix: added missing import

* fix: minor identation and space fix

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
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.

None yet

3 participants