Skip to content
Code-Schnipsel Gruppen Projekte
  1. Mär 27, 2025
  2. Mär 26, 2025
    • Henning Leutz's avatar
      fix: runtime currency - session closed · 7b43b05b
      verfasst von Henning Leutz
      This commit changes the retrieval of Runtime Currency in the front-end of the application inside
      the Handler class. Previously, the User's Currency was directly assigned to the Runtime Currency.
      However, there was no null check to ensure the User's Currency was valid before assignment. This
      commit adds a check, ensuring the Runtime Currency is only updated if the User's Currency is not
      null.
      7b43b05b
    • Henning Leutz's avatar
      Merge branch 'next-2.x' into 'main' · 1ae31f35
      verfasst von Henning Leutz
      feat: runtime currency
      
      See merge request !55
      2.2.0
      1ae31f35
    • 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
  3. Mär 24, 2025
    • Henning Leutz's avatar
      Merge branch 'next-2.x' into 'main' · 064efcd7
      verfasst von Henning Leutz
      feat(Currency.js): get default currency
      
      See merge request !53
      2.1.0
      064efcd7
    • Henning Leutz's avatar
      fix(phpstan): update phive and refactor ERP Currency Handler · cf368687
      verfasst von Henning Leutz
      - Updated the version of phive to ^2.0.4 in the phars.xml file
      - Refactored the ERP Currency Handler in the following ways:
        - Rearranged the argument order and types in createCurrency function
        - Removed unused languageData in createCurrency function
        - Updated createCurrency, deleteCurrency, updateCurrency to return void
        - Updated getDefaultCurrency to return Currency|null
        - Fixed getCurrency to handle `isset($currency['code'])`
        - Updated getCurrencies to handle `null | QUI\\Locale`
        - Standardized exception catch statements to `QUI\\Exception` without variable
        - Minor cleanups and formatting for increased readability
      cf368687
    • Henning Leutz's avatar
      refactor: improve code readability by formatting type declarations · c23a81e7
      verfasst von Henning Leutz
      In this commit, we've made minor changes to various PHP files in the project in order to improve
      code readability. We've standardized the formatting for type declarations (bool, float, int,
      string, array) to be separated by a whitespace character on either side of the `|` symbol where
      more than one type is possible. No functionality has changed in this commit - this is purely for
      ease of reading and maintaining the code base.
      c23a81e7
    • Henning Leutz's avatar
      style: correct spacing and indentation in currency-related scripts · a9242ad2
      verfasst von Henning Leutz
      Changed the formatting in several scripts related to handling currency, specifically in
      Currency.js, Select.js, SelectItem.js, Search.js, Window.js, AccountingCurrencyDiffers.js,
      AllowedCurrencies.js, CurrencyList.js, CurrencyWindow.js, and Import.js. This ensures improved
      readability and consistency in the code structure. These changes involved adjustments to the
      spacing and indentation used.
      a9242ad2
    • Henning Leutz's avatar
      feat(Currency.js): get default currency · d5a90219
      verfasst von Henning Leutz
      This commit introduces several changes in bin/Currency.js to make the code more readable and
      consistent:
      
      1. Improved function declaration style: Rather than using `function(arg1, arg2) { .. }`, we now use
      `function (arg1, arg2) { .. }` for better style consistency.
      2. Cleaned up unnecessary whitespace: Removed redundant lines to make the code cleaner and more
      readable.
      3. Added a new function: Introduced a new function `getDefaultCurrency()` for fetching the default
      system currency. This asynchronous function returns a Promise that resolves to the code of the
      default currency.
      d5a90219
  4. Feb 05, 2025
    • Henning Leutz's avatar
      Merge branch 'next-2.x' into 'main' · 676b0a9d
      verfasst von Henning Leutz
      fix(phpstan): update function parameter data types
      
      See merge request !51
      2.0.3
      676b0a9d
    • Henning Leutz's avatar
      fix: convertWithSign.php: add class existence check · ae339c05
      verfasst von Henning Leutz
      Added a condition to check if the class 'QUI\\ERP\\Money\\Price' exists before executing the rest
      of the code in the convertWithSign.php file in the ajax directory. This fix prevents potential
      errors and improves code stability.
      
      Related: #9
      ae339c05
    • Henning Leutz's avatar
      fix(phpstan): update function parameter data types · 700ca442
      verfasst von Henning Leutz
      This commit changes the data type of the function parameters across various files. The
      modifications are made in the 'phpstan-baseline.neon', 'AbstractCurrency.php',
      'CurrencyInterface.php', and 'Handler.php' files. Certain function parameters which could have been
      null are now specifically marked as available for null input. Improving the type hinting of these
      functions enhances code readability, allows for better static analysis and reduces the scope for
      bugs in the future.
      
      Related: #9
      700ca442
  5. Aug 05, 2024
  6. Aug 01, 2024
  7. Jul 30, 2024
  8. Jul 23, 2024
  9. Mai 08, 2024
  10. Mai 07, 2024
  11. Mai 06, 2024
  12. Mai 01, 2024
  13. Apr 29, 2024
    • Henning Leutz's avatar
      feat!: quiqqer v2 · 84127614
      verfasst von Henning Leutz
      BREAKING CHANGE: quiqqer v2 has been renamed to quiqqer/core. a new major version will be created here so that we can still develop for both versions.
  14. Apr 18, 2024