Skip to content
Code-Schnipsel Gruppen Projekte

Update 'next-3.x' with latest changes from 'main'

Zusammengeführt QUIQQER Stabilization requested to merge main into next-3.x
  1. 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
      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
Lade