Files
TimeTracker/app/utils
Dries Peeters eeb3aeddf2 Fix BuildError when payment_gateways blueprint is not registered
Add has_endpoint() helper to check if a Flask endpoint exists before
rendering navigation links. When stripe is not installed, the
payment_gateways blueprint fails to register but is_module_enabled()
can still return true, causing url_for('payment_gateways.list_gateways')
to raise BuildError when rendering base.html.

Only show the Payment Gateways nav link when the endpoint is actually
registered. This fixes inventory route tests that failed when following
redirects to the movements list page in environments without stripe.

Related to issue #385 (stock item devaluation).
2026-02-16 06:58:19 +01:00
..