- Mär 11, 2025
-
-
verfasst von Henning Leutz
This commit involves refactoring code in Products.js by updating 'var' to 'let' or 'const' for proper scoping and better readability. It also introduces a new variable 'inAdministration' to handle specific conditions for QUIQQER's administrative state and modifies the condition for using cached data, considering 'inAdministration'. Expect no changes in functionality or behavior of the software with these changes.
-
- Mär 03, 2025
-
-
verfasst von Henning Leutz
The commit makes a precautionary check and sets the value of the 'selected' key of the 'option' array as false, if not previously set in the AttributeGroupFrontendView.php. This prevents potential undefined index errors on subsequent checks using this key.
-
- Feb 28, 2025
-
-
verfasst von Henning Leutz
Updated the getFieldValue and getFieldValueByLocale methods' return type in src/QUI/ERP/Products/Product/Model.php. Now these methods can return int, float, string, array, or null. Also simplified the exception statements.
-
- Feb 20, 2025
-
-
verfasst von Henning Leutz
The version of the "quiqqer/productsearch" dependency in `composer.json` was updated from "^1.1" to "^2" in order to match with the latest stable release of the library. This will help in making sure that the application stays up-to-date with the latest improvements and bug fixes.
-
verfasst von Henning Leutz
Adjusted the ignoreErrors parameter in the phpstan-baseline.neon file. Updated the referenced files under this setting to maintain code quality and standards. Further, added a newline at the end of the file for adherence to best practices.
-
verfasst von Henning Leutz
Update `phpstan-baseline.neon` to ignore specific errors related to invalid types, method calls, and properties in various parts of the project. This includes errors in `EventHandling.php` and `ProductList.php` related to the `AbstractOrder` class.
-
- Feb 19, 2025
-
-
verfasst von Henning Leutz
This commit ensures proper order operations in the Calc.php file by adding a class_exists check before proceeding. Its main purpose is to prevent errors if a requisite class, 'QUI\\ERP\\Order\\AbstractOrder', is not available.
-
verfasst von Henning Leutz
This commit includes cleaning up the code in several files directly and indirectly related to the product category and variant creation. Specific changes include the removal of unnecessary empty lines and import statements across three files: 'createProjectSite.php', 'Categories.php', and 'VariantParent.php'. No logic has been altered, only code clarity and cleanliness have been improved.
-
verfasst von Henning Leutz
- Added method_exists checks before method invocations in categories, fields and products modules to prevent potential crashes due to method absence. - Improved sorting operations in categories, fields and products modules by changing the comparison operator '>' to 'strcmp'. - Refined exception handling in categories update and products/frontend/getVariant, adding the ability to properly handle and log unexpected exceptions. - Fixed a minor issue in getInstalledProductPackages that didn't correctly traverse the package array. Related: #397
-
verfasst von Henning Leutz
- Added spaces in typehints for readability - Added `@phpstan-ignore-line` for DEVELOPMENT condition in `setFieldsToAllProducts()` to mitigate stan error - Cast `max_execution_time` to int before calling `set_time_limit` - Typecast integer variables to string in `str_pad` in `execute()` in GenerateProductCache.php for PHP compatibility - Added a check for `getCustomDataEntry` method existence before using it in `updateProductPrices` in UpdatePrices.php for run-time safety. Related: #397
-
verfasst von Henning Leutz
- Replaced multiple bool|int syntax with bool | int for PSR-12 compliance. - Added method_exists checks in some conditionals to avoid errors. - Replaced string comparison in `isActive` checks with strict `===`. - Cast `ini get` result to integer to match `set_time_limit` syntax. - Improved syntax for long conditional statements with multiple && conditions. - Fixed passing variable by reference in foreach. - Changed variable type passed to string from int in setDefaultVariantFields. - Used mb_strlen for string length calculation to prevent datatype error. - Improved error handling by adding @phpstan-ignore-line to silence specific PHPStan warnings. - Fixed a few minor typographical errors in comments. - Partially replaced type comments with typehints for better IDE support. Related: #397
-
verfasst von Henning Leutz
Made several code corrections and clean up in `AttributeGroup.php`, `AttributeGroupFrontendView.php`, `Folder.php`, `InputMultiLang.php`, `MultilangFrontendView.php`, `Price.php`, `ProductAttributeList.php`, `TimePeriod.php`, `VatFrontendView.php`, `UniqueField.php`. These changes consist of fixes in unions type declarations, rearrangements of conditions, removal of unnecessary typecasts, and small alterations for better readability and performance. Related: #397
-
verfasst von Henning Leutz
- Typed parameters have been added in function signatures for better readability and type enforcement. - Replaced QUI\\Exception with just Exception for brevity and better readability. - Made corrections in comments for correct grammar and better understanding. - Removed redundant null checks and checks for method existence for concise code. - Certain unnecessary comments and variables have been removed for cleaner code. - Overall these changes contribute to improved readability and maintainability of the code. Related: #397
-
verfasst von Henning Leutz
This commit ensures compatibility with different datatypes by adding necessary checks and type conversions in ERP Products module. It also removes unused comments, thus making the code cleaner and more efficient. Changes include: - In methods expecting integer parameters, explicit type casting has been added to situations where a string could be passed instead. - Additional checks are implemented before invoking method_exists(), ensuring safety. - Inappropriate comments and annotations have been removed to make the code more readable. - getEditableFieldIdsForProduct() and getInheritedFieldIdsForProduct() methods in Products.php had a generic parameter $Product, it has been type hinted with the ProductTypeInterface. Overall, the changes ensure better type stability and increase code reliability. Related: #397
-
verfasst von Henning Leutz
This commit primarily refines PHP code in multiple classes linked to handling products in the ERP module. These changes: - Add a number of error closure checks for method_exists on several method calls. - Refine use of union types, allowing for cleaner and clearer type declaration. - Amend several git blob file changes that may or may not be relevant depending on the file diff output specifics. These changes include variable name changes, function name changes, and code reformatting. - Update function return types for optimized concise type declarations. - Add checks for method existence before calling methods in several places, to ensure valid method calls. - Correct mismatches in PHPDoc comments and actual function behaviors. Refactor: #397
-
verfasst von Henning Leutz
Significant improvements have been made on price calculation methods in src/QUI/ERP/Products/Utils/Calc.php. Enhancements include: - Checking if Product is an instance of UniqueProduct before recalculating and getting product price - Handling exceptions for PriceFactor objects that are not of the right instance - Improved checks for visibility and existence of `Vat` - Affirming method availability before checking for value text in PriceFactor class - Broadened round method support to handle different input types - More robust error handling during tax type retrieval and tax entry determination for calculating both netto and brutto prices.
-
verfasst von Henning Leutz
Related: #397
-
- Feb 12, 2025
-
-
verfasst von Henning Leutz
Small adjustments to the formatting in ProductList file have been made for better readability and standard conformity. This includes adding spaces around the "|" symbol in type declarations and method return types. No functionality changes have been introduced.
-
verfasst von Henning Leutz
NULL types set for php8.4
-
verfasst von Henning Leutz
Changed the boolean condition to check for false on `autoloadAfter` attribute. Instead of checking equality with false, the code now uses a not operator which makes it easier to read and follow. This change has been applied to both `ProductList.php` and `ManufacturerList.php` files.
-
verfasst von Henning Leutz
An attempt is made to decimate product data via ajax so that the frontend responds faster
-
- Feb 07, 2025
-
-
verfasst von Henning Leutz
-
- Feb 04, 2025
-
-
verfasst von Henning Leutz
Updated the phpstan version in `.phive/phars.xml` from `1.10.67` to `1.12.13` to use the latest features and improvements. Also, altered the specified version pattern to `1.*` to automatically pick up the latest minor version releases. In addition, removed a redundant error message in `phpstan-baseline.neon` related to the `getUrlRewrittenWithHost` method in `types/category.php`, which was causing unnecessary noise in the error report.
-
verfasst von Henning Leutz
This commit refines the type hints in the Product model. Specifically, the getUrlRewrittenWithHost() method's $Project parameter type is defined more explicitly, indicating that it can accept either a type of QUI\\Projects\\Project or null. Related: quiqqer/package-feed#15
-
- Dez 18, 2024
-
-
verfasst von Henning Leutz
-
- Dez 03, 2024
-
-
verfasst von Henning Leutz
-
- Nov 29, 2024
-
-
verfasst von Henning Leutz
-
- Nov 14, 2024
-
-
verfasst von Michael Danielczok
Related: #402
-
- Nov 07, 2024
-
-
verfasst von Henning Leutz
-
- Okt 31, 2024
-
-
verfasst von Henning Leutz
-
- Okt 30, 2024
-
-
verfasst von Henning Leutz
-
- Okt 23, 2024
-
-
verfasst von Henning Leutz
Related: #400
-
verfasst von Henning Leutz
Related: #400
-
verfasst von Patrick Müller
-
verfasst von Patrick Müller
-
- Okt 21, 2024
-
-
verfasst von Henning Leutz
Related: pcsg/buero#479
-
verfasst von Henning Leutz
-
verfasst von Henning Leutz
When creating products, checkboxes are not understandable for the product types Related: pcsg/buero#479
-
- Okt 18, 2024
-
-
verfasst von Henning Leutz
-
verfasst von Henning Leutz
-