Skip to content
Code-Schnipsel Gruppen Projekte

feat: runtime currency

Zusammengeführt Henning Leutz requested to merge next-2.x into main
  1. Mär 26, 2025
    • Henning Leutz's avatar
      style(phpcs): minor improvements in the ERP/Currency handlers · 2da3b38e
      verfasst von Henning Leutz
      This commit includes minor improvements in the EventHandler and Handler classes under ERP/Currency.
      Changes mainly involve adjustment of code indentation and removal of an unused import (is_array).
      This ensures that the code remains clean and efficient.
      2da3b38e
    • Henning Leutz's avatar
      feat: runtime currency · 1a8f1df5
      verfasst von Henning Leutz
      In this commit, we have made several changes to improve the handling of currencies within the
      application.
      
      - Added runtime currency support to the 'Handler' class in 'src/QUI/ERP/Currency/Handler.php'. This
      method provides the ability to get and set the currency during runtime.
      - Refactored the 'setUserCurrency' function in 'ajax/setUserCurrency.php'. Removed the use of
      namespace on every call to 'getAllowedCurrencies' and made it less complex.
      - Added a script to extend the header in 'src/QUI/ERP/Currency/EventHandler.php'. The script
      retrieves the default and runtime currencies.
      - Updated 'bin/controls/Switch.js'. Commented out the previous code and added a window location
      reload call after changing the currency.
      
      These changes ensure that the active user has the correct currency displayed throughout their
      session.
      1a8f1df5
Lade