Update 'next-3.x' with latest changes from 'main'
- Mär 24, 2025
-
-
verfasst von Henning Leutz
feat(Currency.js): get default currency See merge request !53
-
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
-
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.
-
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.
-
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.
-