Skip to content
Code-Schnipsel Gruppen Projekte
  1. Mär 26, 2025
    • 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
  2. Apr 18, 2024
  3. Mär 22, 2019
Lade